@cratis/event-models 0.144.3 → 0.144.4

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,115 +1,115 @@
1
- import { createElement as It, useCallback as B, useEffect as pe, useId as Qo, useLayoutEffect as tt, useMemo as $, useRef as Z, useState as A } from "react";
2
- import { LayoutArrangement as V, PrototypeOverlayFrame as Yo } from "@cratis/scene/ScreenEditor";
3
- import { BindingMode as bh, BindingMode as Xn, BindingNullBehavior as yh, BindingNullBehavior as Bt, BindingSourceKind as wh, BindingSourceKind as E, CollectionOperation as be, DestinationKind as Ch, DestinationKind as De, DiagnosticCode as ve, DiagnosticSeverity as Tr, EditTarget as Nr, EditingScopeKind as Rt, FlowContainerKind as Ut, FormGenerationMode as ce, FormWidthUnit as me, GridUnitType as Pr, HorizontalAlignment as Pn, InteractionActionKind as Ke, InteractionTriggerKind as Zo, Orientation as Qe, PackageKind as Dt, PropertyValueType as x, ProvenanceKind as eo, QueryOriginKind as Ir, QueryResultShape as Rr, SceneEditKind as X, SceneNodeKind as Dr, TemplateScope as Xo, VerticalAlignment as In, Visibility as Rn, isIconReference as Or, parseIconReference as xr } from "@cratis/scene.model";
4
- import { EffectiveIconCatalog as Fr, applyEdit as Dn, baseComponentLibraries as Mr, computeSizeClass as _r, corePackage as On, createDescriptorCatalog as $r, elementNodeId as ie, findLayoutTypeDescriptor as to, inspect as xn, isCanvas as Fe, isDockPanel as Ar, isExternalComponent as st, isGrid as Fn, isPackageSelectionValid as Lr, isPanel as nt, isStackPanel as Mn, isThemeCompatible as Er, isWrapPanel as Br, packagesOfKind as no, resolveComponentName as _n, resolveEffectiveConfiguration as Ur, resolveIconLibraries as jr, resolvePackageDependencies as Vr, resolveTemplateChain as ea, toComponentCatalog as $n, validateBinding as qr } from "@cratis/scene.engine";
1
+ import { createElement as It, useCallback as B, useEffect as pe, useId as Yo, useLayoutEffect as tt, useMemo as $, useRef as Z, useState as A } from "react";
2
+ import { LayoutArrangement as V, PrototypeOverlayFrame as Zo } from "@cratis/scene/ScreenEditor";
3
+ import { BindingMode as bh, BindingMode as eo, BindingNullBehavior as yh, BindingNullBehavior as Bt, BindingSourceKind as wh, BindingSourceKind as E, CollectionOperation as be, DestinationKind as Ch, DestinationKind as De, DiagnosticCode as ve, DiagnosticSeverity as Tr, EditTarget as Pr, EditingScopeKind as Rt, FlowContainerKind as Ut, FormGenerationMode as ce, FormWidthUnit as me, GridUnitType as Ir, HorizontalAlignment as In, InteractionActionKind as Ke, InteractionTriggerKind as Xo, Orientation as Qe, PackageKind as Dt, PropertyValueType as x, ProvenanceKind as to, QueryOriginKind as Rr, QueryResultShape as Dr, SceneEditKind as X, SceneNodeKind as Or, TemplateScope as ea, VerticalAlignment as Rn, Visibility as Dn, isIconReference as xr, parseIconReference as Fr } from "@cratis/scene.model";
4
+ import { EffectiveIconCatalog as Mr, applyEdit as On, baseComponentLibraries as _r, computeSizeClass as $r, corePackage as xn, createDescriptorCatalog as Ar, elementNodeId as ie, findLayoutTypeDescriptor as no, inspect as Fn, isCanvas as Fe, isDockPanel as Lr, isExternalComponent as st, isGrid as Mn, isPackageSelectionValid as Er, isPanel as nt, isStackPanel as _n, isThemeCompatible as Br, isWrapPanel as Ur, packagesOfKind as oo, resolveComponentName as $n, resolveEffectiveConfiguration as jr, resolveIconLibraries as Vr, resolvePackageDependencies as qr, resolveTemplateChain as ta, toComponentCatalog as An, validateBinding as Wr } from "@cratis/scene.engine";
5
5
  import { Fragment as se, jsx as i, jsxs as h } from "react/jsx-runtime";
6
- import { ErrorBoundary as $t, IconButton as ze, Tabs as Wr, TextArea as zr } from "@cratis/components/Common";
7
- import { OrderedItemEditor as Gr, PropertyControls as Hr } from "@cratis/components/ConfigurationEditor";
8
- import { IconPicker as Jr, isIconPickerAllowed as Kr, isSameIconPickerValue as Qr } from "@cratis/components/IconPicker";
9
- import { IconAdapterProvider as ta, SceneElementView as na, SceneIcon as Yr, SceneThemeProvider as oa, componentRegistryKey as aa, corePackage as ra, mergeIconAdapters as Zr, mergePackageRegistries as ia } from "@cratis/scene.react";
10
- import { Toolbar as Xr, ToolbarFolder as ei } from "@cratis/components/Toolbar";
6
+ import { ErrorBoundary as $t, IconButton as ze, Tabs as zr, TextArea as Gr } from "@cratis/components/Common";
7
+ import { OrderedItemEditor as Hr, PropertyControls as Jr } from "@cratis/components/ConfigurationEditor";
8
+ import { IconPicker as Kr, isIconPickerAllowed as Qr, isSameIconPickerValue as Yr } from "@cratis/components/IconPicker";
9
+ import { IconAdapterProvider as na, SceneElementView as oa, SceneIcon as Zr, SceneThemeProvider as aa, componentRegistryKey as ra, corePackage as ia, mergeIconAdapters as Xr, mergePackageRegistries as sa } from "@cratis/scene.react";
10
+ import { Toolbar as ei, ToolbarFolder as ti } from "@cratis/components/Toolbar";
11
11
  import { PrototypeLayout as Le } from "@cratis/scene";
12
- import { FileUploadHandlerProvider as ti, QuillLoaderProvider as ni, primeReactPackage as sa, primeReactThemes as oo, usePrimeReactTheme as oi } from "@cratis/scene.primereact";
13
- import { FaAlignJustify as ao, FaAlignLeft as ai, FaAngleDoubleRight as jt, FaArrowsAltH as ri, FaBars as Ge, FaBell as ii, FaBolt as si, FaBookmark as li, FaBorderAll as ci, FaCalendarAlt as ro, FaCaretSquareDown as io, FaChartBar as la, FaCheckSquare as so, FaClock as di, FaClone as ui, FaCode as pi, FaCog as lo, FaColumns as Vt, FaCommentAlt as mi, FaCommentDots as ca, FaCompass as hi, FaCreditCard as fi, FaCube as gi, FaDatabase as vi, FaDesktop as sn, FaEdit as qt, FaEllipsisH as bi, FaExclamationCircle as Wt, FaExpandArrowsAlt as yi, FaFileAlt as ln, FaFileUpload as wi, FaFilter as co, FaFolderOpen as uo, FaFont as po, FaGripLines as Pe, FaGripLinesVertical as Ci, FaGripVertical as Si, FaHashtag as mo, FaHeading as yt, FaHistory as ki, FaHourglassHalf as Ti, FaIdBadge as Ni, FaImage as da, FaImages as ho, FaInfoCircle as Pi, FaKeyboard as ua, FaLayerGroup as Ii, FaLink as Ri, FaList as pa, FaListAlt as zt, FaListOl as Gt, FaLock as Di, FaMask as fo, FaMobileAlt as Oi, FaMousePointer as wt, FaObjectGroup as xi, FaPaintBrush as Fi, FaPalette as Ht, FaPen as Mi, FaPercent as _i, FaProjectDiagram as $i, FaPuzzlePiece as ma, FaRedo as Ai, FaRegCheckCircle as Li, FaRegCircle as Jt, FaRegSquare as An, FaSave as Ei, FaSearch as go, FaShapes as ha, FaSitemap as Kt, FaSlidersH as cn, FaSpinner as vo, FaSquare as Bi, FaStar as Ui, FaStepForward as Qt, FaStickyNote as ji, FaStream as Vi, FaTable as Xe, FaTag as pt, FaTerminal as qi, FaTh as bo, FaThLarge as fa, FaThList as Ln, FaToggleOn as ga, FaTools as Wi, FaTrash as zi, FaTree as dn, FaUndo as Gi, FaUser as Hi, FaUserCircle as Ji, FaVectorSquare as Ki, FaWindowMaximize as Ct, FaWindowRestore as Qi } from "react-icons/fa";
12
+ import { FileUploadHandlerProvider as ni, QuillLoaderProvider as oi, primeReactPackage as la, primeReactThemes as ao, usePrimeReactTheme as ai } from "@cratis/scene.primereact";
13
+ import { FaAlignJustify as ro, FaAlignLeft as ri, FaAngleDoubleRight as jt, FaArrowsAltH as ii, FaBars as Ge, FaBell as si, FaBolt as li, FaBookmark as ci, FaBorderAll as di, FaCalendarAlt as io, FaCaretSquareDown as so, FaChartBar as ca, FaCheckSquare as lo, FaClock as ui, FaClone as pi, FaCode as mi, FaCog as co, FaColumns as Vt, FaCommentAlt as hi, FaCommentDots as da, FaCompass as fi, FaCreditCard as gi, FaCube as vi, FaDatabase as bi, FaDesktop as ln, FaEdit as qt, FaEllipsisH as yi, FaExclamationCircle as Wt, FaExpandArrowsAlt as wi, FaFileAlt as cn, FaFileUpload as Ci, FaFilter as uo, FaFolderOpen as po, FaFont as mo, FaGripLines as Pe, FaGripLinesVertical as Si, FaGripVertical as ki, FaHashtag as ho, FaHeading as yt, FaHistory as Ni, FaHourglassHalf as Ti, FaIdBadge as Pi, FaImage as ua, FaImages as fo, FaInfoCircle as Ii, FaKeyboard as pa, FaLayerGroup as Ri, FaLink as Di, FaList as ma, FaListAlt as zt, FaListOl as Gt, FaLock as Oi, FaMask as go, FaMobileAlt as xi, FaMousePointer as wt, FaObjectGroup as Fi, FaPaintBrush as Mi, FaPalette as Ht, FaPen as _i, FaPercent as $i, FaProjectDiagram as Ai, FaPuzzlePiece as ha, FaRedo as Li, FaRegCheckCircle as Ei, FaRegCircle as Jt, FaRegSquare as Ln, FaSave as Bi, FaSearch as vo, FaShapes as fa, FaSitemap as Kt, FaSlidersH as dn, FaSpinner as bo, FaSquare as Ui, FaStar as ji, FaStepForward as Qt, FaStickyNote as Vi, FaStream as qi, FaTable as Xe, FaTag as pt, FaTerminal as Wi, FaTh as yo, FaThLarge as ga, FaThList as En, FaToggleOn as va, FaTools as zi, FaTrash as Gi, FaTree as un, FaUndo as Hi, FaUser as Ji, FaUserCircle as Ki, FaVectorSquare as Qi, FaWindowMaximize as Ct, FaWindowRestore as Yi } from "react-icons/fa";
14
14
  import "@cratis/scene.primereact/primeReactTheme.css";
15
- import { ColorScheme as Yi, LayoutConfigProvider as va, LayoutMode as Zi, defaultBlueprint as ba, resolveElementComponentNames as ya } from "@cratis/scene.blueprint.default";
16
- import { PrimeReactProvider as Xi } from "@primereact/core/config";
17
- import { styles as es } from "@primereact/styles/accordion";
18
- import { styles as ts } from "@primereact/styles/autocomplete";
19
- import { styles as ns } from "@primereact/styles/avatar";
20
- import { styles as os } from "@primereact/styles/avatargroup";
21
- import { styles as as } from "@primereact/styles/badge";
22
- import { styles as rs } from "@primereact/styles/breadcrumb";
23
- import { styles as is } from "@primereact/styles/button";
24
- import { styles as ss } from "@primereact/styles/buttongroup";
25
- import { styles as ls } from "@primereact/styles/card";
26
- import { styles as cs } from "@primereact/styles/carousel";
27
- import { styles as ds } from "@primereact/styles/checkbox";
28
- import { styles as us } from "@primereact/styles/checkboxgroup";
29
- import { styles as ps } from "@primereact/styles/chip";
30
- import { styles as ms } from "@primereact/styles/compare";
31
- import { styles as hs } from "@primereact/styles/contextmenu";
32
- import { styles as fs } from "@primereact/styles/datatable";
33
- import { styles as gs } from "@primereact/styles/dataview";
34
- import { styles as vs } from "@primereact/styles/datepicker";
35
- import { styles as bs } from "@primereact/styles/dialog";
36
- import { styles as ys } from "@primereact/styles/divider";
37
- import { styles as ws } from "@primereact/styles/drawer";
38
- import { styles as Cs } from "@primereact/styles/fieldset";
39
- import { styles as Ss } from "@primereact/styles/fileupload";
40
- import { styles as ks } from "@primereact/styles/floatlabel";
15
+ import { ColorScheme as Zi, LayoutConfigProvider as ba, LayoutMode as Xi, defaultBlueprint as ya, resolveElementComponentNames as wa } from "@cratis/scene.blueprint.default";
16
+ import { PrimeReactProvider as es } from "@primereact/core/config";
17
+ import { styles as ts } from "@primereact/styles/accordion";
18
+ import { styles as ns } from "@primereact/styles/autocomplete";
19
+ import { styles as os } from "@primereact/styles/avatar";
20
+ import { styles as as } from "@primereact/styles/avatargroup";
21
+ import { styles as rs } from "@primereact/styles/badge";
22
+ import { styles as is } from "@primereact/styles/breadcrumb";
23
+ import { styles as ss } from "@primereact/styles/button";
24
+ import { styles as ls } from "@primereact/styles/buttongroup";
25
+ import { styles as cs } from "@primereact/styles/card";
26
+ import { styles as ds } from "@primereact/styles/carousel";
27
+ import { styles as us } from "@primereact/styles/checkbox";
28
+ import { styles as ps } from "@primereact/styles/checkboxgroup";
29
+ import { styles as ms } from "@primereact/styles/chip";
30
+ import { styles as hs } from "@primereact/styles/compare";
31
+ import { styles as fs } from "@primereact/styles/contextmenu";
32
+ import { styles as gs } from "@primereact/styles/datatable";
33
+ import { styles as vs } from "@primereact/styles/dataview";
34
+ import { styles as bs } from "@primereact/styles/datepicker";
35
+ import { styles as ys } from "@primereact/styles/dialog";
36
+ import { styles as ws } from "@primereact/styles/divider";
37
+ import { styles as Cs } from "@primereact/styles/drawer";
38
+ import { styles as Ss } from "@primereact/styles/fieldset";
39
+ import { styles as ks } from "@primereact/styles/fileupload";
40
+ import { styles as Ns } from "@primereact/styles/floatlabel";
41
41
  import { styles as Ts } from "@primereact/styles/fluid";
42
- import { styles as Ns } from "@primereact/styles/gallery";
43
- import { styles as Ps } from "@primereact/styles/iconfield";
44
- import { styles as Is } from "@primereact/styles/iftalabel";
45
- import { styles as Rs } from "@primereact/styles/inplace";
46
- import { styles as Ds } from "@primereact/styles/inputcolor";
47
- import { styles as Os } from "@primereact/styles/inputgroup";
48
- import { styles as xs } from "@primereact/styles/inputnumber";
49
- import { styles as Fs } from "@primereact/styles/inputotp";
50
- import { styles as Ms } from "@primereact/styles/inputtags";
51
- import { styles as _s } from "@primereact/styles/inputtext";
52
- import { styles as $s } from "@primereact/styles/knob";
53
- import { styles as As } from "@primereact/styles/label";
54
- import { styles as Ls } from "@primereact/styles/listbox";
55
- import { styles as Es } from "@primereact/styles/menu";
56
- import { styles as Bs } from "@primereact/styles/message";
57
- import { styles as Us } from "@primereact/styles/metergroup";
58
- import { styles as js } from "@primereact/styles/navigationmenu";
59
- import { styles as Vs } from "@primereact/styles/organizationchart";
60
- import { styles as qs } from "@primereact/styles/overlaybadge";
61
- import { styles as Ws } from "@primereact/styles/paginator";
62
- import { styles as zs } from "@primereact/styles/panel";
63
- import { styles as Gs } from "@primereact/styles/inputpassword";
64
- import { styles as Hs } from "@primereact/styles/popover";
65
- import { styles as Js } from "@primereact/styles/progressbar";
66
- import { styles as Ks } from "@primereact/styles/progressspinner";
67
- import { styles as Qs } from "@primereact/styles/radiobutton";
68
- import { styles as Ys } from "@primereact/styles/radiobuttongroup";
69
- import { styles as Zs } from "@primereact/styles/rating";
70
- import { styles as Xs } from "@primereact/styles/scrollarea";
71
- import { styles as el } from "@primereact/styles/select";
72
- import { layoutStyles as tl, styles as nl } from "@primereact/styles/sidebar";
73
- import { styles as ol } from "@primereact/styles/skeleton";
74
- import { styles as al } from "@primereact/styles/slider";
75
- import { styles as rl } from "@primereact/styles/speeddial";
76
- import { styles as il } from "@primereact/styles/splitter";
77
- import { styles as sl } from "@primereact/styles/stepper";
78
- import { styles as ll } from "@primereact/styles/tabs";
79
- import { styles as cl } from "@primereact/styles/tag";
80
- import { styles as dl } from "@primereact/styles/terminal";
81
- import { styles as ul } from "@primereact/styles/textarea";
82
- import { styles as pl } from "@primereact/styles/timeline";
83
- import { styles as ml } from "@primereact/styles/toast";
84
- import { styles as hl } from "@primereact/styles/toaster";
85
- import { styles as fl } from "@primereact/styles/togglebutton";
86
- import { styles as gl } from "@primereact/styles/togglebuttongroup";
87
- import { styles as vl } from "@primereact/styles/toggleswitch";
88
- import { styles as bl } from "@primereact/styles/toolbar";
89
- import { styles as yl } from "@primereact/styles/tooltip";
90
- import { styles as wl } from "@primereact/styles/tree";
91
- import { loadQuill as Cl } from "@cratis/scene.primereact/quill";
92
- import { cratisComponentsPackage as wa } from "@cratis/scene.components";
93
- import { tailwindPackage as Ca } from "@cratis/scene.tailwind";
94
- import { componentsBlueprint as Sa } from "@cratis/scene.blueprint.components";
95
- import { dynamicIconImports as Sl } from "lucide-react/dynamic";
96
- var En = {
42
+ import { styles as Ps } from "@primereact/styles/gallery";
43
+ import { styles as Is } from "@primereact/styles/iconfield";
44
+ import { styles as Rs } from "@primereact/styles/iftalabel";
45
+ import { styles as Ds } from "@primereact/styles/inplace";
46
+ import { styles as Os } from "@primereact/styles/inputcolor";
47
+ import { styles as xs } from "@primereact/styles/inputgroup";
48
+ import { styles as Fs } from "@primereact/styles/inputnumber";
49
+ import { styles as Ms } from "@primereact/styles/inputotp";
50
+ import { styles as _s } from "@primereact/styles/inputtags";
51
+ import { styles as $s } from "@primereact/styles/inputtext";
52
+ import { styles as As } from "@primereact/styles/knob";
53
+ import { styles as Ls } from "@primereact/styles/label";
54
+ import { styles as Es } from "@primereact/styles/listbox";
55
+ import { styles as Bs } from "@primereact/styles/menu";
56
+ import { styles as Us } from "@primereact/styles/message";
57
+ import { styles as js } from "@primereact/styles/metergroup";
58
+ import { styles as Vs } from "@primereact/styles/navigationmenu";
59
+ import { styles as qs } from "@primereact/styles/organizationchart";
60
+ import { styles as Ws } from "@primereact/styles/overlaybadge";
61
+ import { styles as zs } from "@primereact/styles/paginator";
62
+ import { styles as Gs } from "@primereact/styles/panel";
63
+ import { styles as Hs } from "@primereact/styles/inputpassword";
64
+ import { styles as Js } from "@primereact/styles/popover";
65
+ import { styles as Ks } from "@primereact/styles/progressbar";
66
+ import { styles as Qs } from "@primereact/styles/progressspinner";
67
+ import { styles as Ys } from "@primereact/styles/radiobutton";
68
+ import { styles as Zs } from "@primereact/styles/radiobuttongroup";
69
+ import { styles as Xs } from "@primereact/styles/rating";
70
+ import { styles as el } from "@primereact/styles/scrollarea";
71
+ import { styles as tl } from "@primereact/styles/select";
72
+ import { layoutStyles as nl, styles as ol } from "@primereact/styles/sidebar";
73
+ import { styles as al } from "@primereact/styles/skeleton";
74
+ import { styles as rl } from "@primereact/styles/slider";
75
+ import { styles as il } from "@primereact/styles/speeddial";
76
+ import { styles as sl } from "@primereact/styles/splitter";
77
+ import { styles as ll } from "@primereact/styles/stepper";
78
+ import { styles as cl } from "@primereact/styles/tabs";
79
+ import { styles as dl } from "@primereact/styles/tag";
80
+ import { styles as ul } from "@primereact/styles/terminal";
81
+ import { styles as pl } from "@primereact/styles/textarea";
82
+ import { styles as ml } from "@primereact/styles/timeline";
83
+ import { styles as hl } from "@primereact/styles/toast";
84
+ import { styles as fl } from "@primereact/styles/toaster";
85
+ import { styles as gl } from "@primereact/styles/togglebutton";
86
+ import { styles as vl } from "@primereact/styles/togglebuttongroup";
87
+ import { styles as bl } from "@primereact/styles/toggleswitch";
88
+ import { styles as yl } from "@primereact/styles/toolbar";
89
+ import { styles as wl } from "@primereact/styles/tooltip";
90
+ import { styles as Cl } from "@primereact/styles/tree";
91
+ import { loadQuill as Sl } from "@cratis/scene.primereact/quill";
92
+ import { cratisComponentsPackage as Ca } from "@cratis/scene.components";
93
+ import { tailwindPackage as Sa } from "@cratis/scene.tailwind";
94
+ import { componentsBlueprint as ka } from "@cratis/scene.blueprint.components";
95
+ import { dynamicIconImports as kl } from "lucide-react/dynamic";
96
+ var Bn = {
97
97
  name: "StudioScreen",
98
98
  slots: [{ name: "content" }]
99
- }, Ot = "content", ge = "Screen", kl = "template-root", Tl = "screen-root", ka = () => ({
100
- layouts: [En],
99
+ }, Ot = "content", ge = "Screen", Nl = "template-root", Tl = "screen-root", Na = () => ({
100
+ layouts: [Bn],
101
101
  screenTemplates: [],
102
102
  dialogTemplates: [],
103
103
  screens: [],
104
104
  exposures: [],
105
105
  instanceContributions: []
106
106
  });
107
- function Nl(e, t) {
107
+ function Pl(e, t) {
108
108
  return {
109
- ...ka(),
109
+ ...Na(),
110
110
  screens: [{
111
111
  name: ge,
112
- layout: En.name,
112
+ layout: Bn.name,
113
113
  slotContent: { [Ot]: [e] },
114
114
  forms: [],
115
115
  contributions: [],
@@ -117,9 +117,9 @@ function Nl(e, t) {
117
117
  }]
118
118
  };
119
119
  }
120
- function Pl(e, t, n) {
120
+ function Il(e, t, n) {
121
121
  return {
122
- ...ka(),
122
+ ...Na(),
123
123
  screenTemplates: [{
124
124
  name: e,
125
125
  slots: [{ name: Ot }],
@@ -131,17 +131,17 @@ function Pl(e, t, n) {
131
131
  function ot(e, t) {
132
132
  return (t === void 0 ? e.screens.find((n) => n.name === ge)?.slotContent : e.screenTemplates.find((n) => n.name === t)?.content)?.[Ot]?.[0];
133
133
  }
134
- function un(e, t = !1) {
134
+ function pn(e, t = !1) {
135
135
  return t && e !== void 0 ? {
136
136
  kind: Rt.ScreenTemplate,
137
137
  name: e,
138
- layout: En.name
138
+ layout: Bn.name
139
139
  } : {
140
140
  kind: Rt.Screen,
141
141
  name: ge
142
142
  };
143
143
  }
144
- var Yt = (e, t) => typeof t == "string" ? Object.values(e).find((n) => n === t) : void 0, Il = (e) => {
144
+ var Yt = (e, t) => typeof t == "string" ? Object.values(e).find((n) => n === t) : void 0, Rl = (e) => {
145
145
  const t = e;
146
146
  return !!t && typeof t == "object" && [
147
147
  "left",
@@ -150,18 +150,18 @@ var Yt = (e, t) => typeof t == "string" ? Object.values(e).find((n) => n === t)
150
150
  "bottom"
151
151
  ].every((n) => typeof t[n] == "number");
152
152
  };
153
- function Rl(e, t, n) {
153
+ function Dl(e, t, n) {
154
154
  const o = e;
155
155
  o.zIndex = n;
156
- const a = Yt(Rn, t.visibility);
157
- a !== void 0 && (o.visibility = a), typeof t.isEnabled == "boolean" && (o.isEnabled = t.isEnabled), typeof t.opacity == "number" && (o.opacity = t.opacity), Il(t.margin) && (o.margin = { ...t.margin });
158
- const r = Yt(Pn, t.horizontalAlignment);
156
+ const a = Yt(Dn, t.visibility);
157
+ a !== void 0 && (o.visibility = a), typeof t.isEnabled == "boolean" && (o.isEnabled = t.isEnabled), typeof t.opacity == "number" && (o.opacity = t.opacity), Rl(t.margin) && (o.margin = { ...t.margin });
158
+ const r = Yt(In, t.horizontalAlignment);
159
159
  r !== void 0 && (o.horizontalAlignment = r);
160
- const s = Yt(In, t.verticalAlignment);
160
+ const s = Yt(Rn, t.verticalAlignment);
161
161
  s !== void 0 && (o.verticalAlignment = s);
162
162
  }
163
- var pn = {
164
- visibility: Rn.Visible,
163
+ var mn = {
164
+ visibility: Dn.Visible,
165
165
  isEnabled: !0,
166
166
  opacity: 1,
167
167
  margin: {
@@ -170,48 +170,48 @@ var pn = {
170
170
  right: 0,
171
171
  bottom: 0
172
172
  },
173
- horizontalAlignment: Pn.Stretch,
174
- verticalAlignment: In.Stretch
173
+ horizontalAlignment: In.Stretch,
174
+ verticalAlignment: Rn.Stretch
175
175
  };
176
- function Dl(e) {
176
+ function Ol(e) {
177
177
  const t = {
178
- ...pn,
179
- margin: { ...pn.margin }
178
+ ...mn,
179
+ margin: { ...mn.margin }
180
180
  };
181
- return Rl(t, e, 0), delete t.zIndex, t;
181
+ return Dl(t, e, 0), delete t.zIndex, t;
182
182
  }
183
- var Ol = Object.keys(pn), N = /* @__PURE__ */ (function(e) {
183
+ var xl = Object.keys(mn), T = /* @__PURE__ */ (function(e) {
184
184
  return e.Stack = "stack", e.Row = "row", e.Grid = "grid", e.Container = "container", e.Wrap = "wrap", e.Canvas = "canvas", e;
185
- })({}), xl = "StudioLayout", Fl = {
186
- Stack: N.Stack,
187
- Row: N.Row,
188
- Grid: N.Grid,
189
- Container: N.Container,
190
- Wrap: N.Wrap,
191
- Canvas: N.Canvas
185
+ })({}), Fl = "StudioLayout", Ml = {
186
+ Stack: T.Stack,
187
+ Row: T.Row,
188
+ Grid: T.Grid,
189
+ Container: T.Container,
190
+ Wrap: T.Wrap,
191
+ Canvas: T.Canvas
192
192
  };
193
- function Ml(e) {
194
- const t = Object.entries(Fl).find(([, n]) => n === e)?.[0] ?? "Container";
195
- return `${xl}.${t}`;
193
+ function _l(e) {
194
+ const t = Object.entries(Ml).find(([, n]) => n === e)?.[0] ?? "Container";
195
+ return `${Fl}.${t}`;
196
196
  }
197
- var _e = "Canvas.Left", $e = "Canvas.Top", yo = "legacyType", _l = "legacy", wo = "legacyExtras", $l = {
197
+ var _e = "Canvas.Left", $e = "Canvas.Top", wo = "legacyType", $l = "legacy", Co = "legacyExtras", Al = {
198
198
  DatePicker: "calendar",
199
199
  OrgChart: "organizationChart",
200
200
  Chips: "chips",
201
201
  ToggleButton: "toggleSwitch"
202
- }, Al = Object.fromEntries(Object.entries($l).map(([e, t]) => [t, e]));
202
+ }, Ll = Object.fromEntries(Object.entries(Al).map(([e, t]) => [t, e]));
203
203
  function Ta(e) {
204
204
  const t = e.includes(":") ? e.slice(e.lastIndexOf(":") + 1) : e;
205
- return Al[t] ?? t.charAt(0).toUpperCase() + t.slice(1);
205
+ return Ll[t] ?? t.charAt(0).toUpperCase() + t.slice(1);
206
206
  }
207
- function mn(e) {
208
- return Array.isArray(e) ? e.filter((t) => t !== null).map(mn) : e !== null && typeof e == "object" ? Object.fromEntries(Object.entries(e).filter(([, t]) => t !== null).map(([t, n]) => [t, mn(n)])) : e;
207
+ function hn(e) {
208
+ return Array.isArray(e) ? e.filter((t) => t !== null).map(hn) : e !== null && typeof e == "object" ? Object.fromEntries(Object.entries(e).filter(([, t]) => t !== null).map(([t, n]) => [t, hn(n)])) : e;
209
209
  }
210
210
  function Ze(e) {
211
211
  return nt(e) ? e.children : st(e) ? Object.values(e.slots).flat() : [];
212
212
  }
213
- function Bn(e) {
214
- return e.flatMap((t) => [t.id, ...Bn(Ze(t))]);
213
+ function Un(e) {
214
+ return e.flatMap((t) => [t.id, ...Un(Ze(t))]);
215
215
  }
216
216
  function Ye(e, t) {
217
217
  for (const n of e) {
@@ -227,29 +227,29 @@ function At(e, t) {
227
227
  if (o) return o;
228
228
  }
229
229
  }
230
- function Ll(e, t) {
230
+ function El(e, t) {
231
231
  const n = At(e, t);
232
232
  return n !== void 0 && Fe(n);
233
233
  }
234
- function Na(e) {
235
- if (Fe(e)) return N.Canvas;
236
- if (Fn(e)) return N.Grid;
237
- if (!Ar(e))
238
- return Mn(e) ? e.orientation === Qe.Horizontal ? N.Row : N.Stack : Br(e) ? N.Wrap : N.Container;
234
+ function Pa(e) {
235
+ if (Fe(e)) return T.Canvas;
236
+ if (Mn(e)) return T.Grid;
237
+ if (!Lr(e))
238
+ return _n(e) ? e.orientation === Qe.Horizontal ? T.Row : T.Stack : Ur(e) ? T.Wrap : T.Container;
239
239
  }
240
240
  function St(e, t = () => {
241
241
  }) {
242
- return mn((e?.children ?? []).map((n) => Pa(n, t)));
242
+ return hn((e?.children ?? []).map((n) => Ia(n, t)));
243
243
  }
244
244
  var le = (e, t) => typeof e == "number" ? e : t;
245
- function Pa(e, t) {
246
- const n = e, o = { ...n.properties ?? {} }, a = Ze(e).map((q) => Pa(q, t)), r = o[_l];
247
- if (r != null && typeof r == "object") return Bl(r, n, o, a);
248
- const s = o[wo], d = typeof o.legacyType == "string" && o.legacyType !== "" ? o[yo] : void 0, u = d ?? (nt(e) ? Ml(Na(e)) : t(st(e) ? e.componentName : "")), c = st(e) ? e.componentName : "", { [yo]: l, [wo]: m, [_e]: g, [$e]: b, ...f } = o, p = {};
245
+ function Ia(e, t) {
246
+ const n = e, o = { ...n.properties ?? {} }, a = Ze(e).map((q) => Ia(q, t)), r = o[$l];
247
+ if (r != null && typeof r == "object") return Ul(r, n, o, a);
248
+ const s = o[Co], d = typeof o.legacyType == "string" && o.legacyType !== "" ? o[wo] : void 0, u = d ?? (nt(e) ? _l(Pa(e)) : t(st(e) ? e.componentName : "")), c = st(e) ? e.componentName : "", { [wo]: l, [Co]: m, [_e]: g, [$e]: b, ...f } = o, p = {};
249
249
  for (const q of s?.topKeys ?? []) q in f && (p[q] = f[q], delete f[q]);
250
250
  const v = le(g, s?.position.x ?? 0), k = le(b, s?.position.y ?? 0), j = n.name ?? "", _ = s?.emptyName === !0 && j === (d ?? "");
251
251
  return {
252
- ...El(n, s),
252
+ ...Bl(n, s),
253
253
  ...p,
254
254
  _derivedTypeId: u ?? "externalComponent",
255
255
  id: n.id,
@@ -272,12 +272,12 @@ function Pa(e, t) {
272
272
  ZIndex: n.zIndex ?? 0
273
273
  };
274
274
  }
275
- function El(e, t) {
276
- const n = t?.top ?? {}, o = Dl(n), a = e, r = { ...n };
277
- for (const s of Ol) JSON.stringify(a[s]) !== JSON.stringify(o[s]) && (r[s] = a[s]);
275
+ function Bl(e, t) {
276
+ const n = t?.top ?? {}, o = Ol(n), a = e, r = { ...n };
277
+ for (const s of xl) JSON.stringify(a[s]) !== JSON.stringify(o[s]) && (r[s] = a[s]);
278
278
  return r;
279
279
  }
280
- function Bl(e, t, n, o) {
280
+ function Ul(e, t, n, o) {
281
281
  const a = { ...e }, r = e.properties ?? {}, s = r.canvas ?? {}, d = n[_e], u = n[$e];
282
282
  (typeof d == "number" || typeof u == "number") && (e.position && typeof e.position == "object" ? a.position = {
283
283
  ...e.position,
@@ -297,7 +297,7 @@ function Bl(e, t, n, o) {
297
297
  children: o
298
298
  }), a;
299
299
  }
300
- var Ul = [
300
+ var jl = [
301
301
  "input",
302
302
  "textarea",
303
303
  "select",
@@ -314,10 +314,10 @@ var Ul = [
314
314
  ".cm-editor",
315
315
  ".monaco-editor",
316
316
  "[data-studio-typing]"
317
- ].join(","), Un = (e) => {
317
+ ].join(","), jn = (e) => {
318
318
  const t = e;
319
- return !!t && typeof t.closest == "function" && (t.closest(Ul) !== null || t.isContentEditable === !0);
320
- }, Ia = (e) => (e.key === "Delete" || e.key === "Backspace") && !e.ctrlKey && !e.metaKey && !e.altKey && !e.shiftKey && !e.defaultPrevented && !e.repeat && !e.nativeEvent?.isComposing && !Un(e.target);
319
+ return !!t && typeof t.closest == "function" && (t.closest(jl) !== null || t.isContentEditable === !0);
320
+ }, Ra = (e) => (e.key === "Delete" || e.key === "Backspace") && !e.ctrlKey && !e.metaKey && !e.altKey && !e.shiftKey && !e.defaultPrevented && !e.repeat && !e.nativeEvent?.isComposing && !jn(e.target);
321
321
  function he(e, t, n, o = null) {
322
322
  for (const [a, r] of e.entries()) {
323
323
  if (n.idOf(r) === t) return {
@@ -330,12 +330,12 @@ function he(e, t, n, o = null) {
330
330
  if (s) return s;
331
331
  }
332
332
  }
333
- function Ra(e, t, n) {
334
- return n.idOf(e) === t ? !0 : n.childrenOf(e).some((o) => Ra(o, t, n));
333
+ function Da(e, t, n) {
334
+ return n.idOf(e) === t ? !0 : n.childrenOf(e).some((o) => Da(o, t, n));
335
335
  }
336
336
  var Q = /* @__PURE__ */ (function(e) {
337
337
  return e.Local = "local", e.Inherited = "inherited", e.ConfigurableInherited = "configurableInherited", e;
338
- })({}), Te = /* @__PURE__ */ (function(e) {
338
+ })({}), Ne = /* @__PURE__ */ (function(e) {
339
339
  return e.Select = "select", e.Configure = "configure", e.Move = "move", e.Resize = "resize", e.Restyle = "restyle", e.Insert = "insert", e.Delete = "delete", e;
340
340
  })({});
341
341
  function lt(e, t) {
@@ -343,22 +343,22 @@ function lt(e, t) {
343
343
  case Q.Local:
344
344
  return !0;
345
345
  case Q.ConfigurableInherited:
346
- return t === Te.Select || t === Te.Configure;
346
+ return t === Ne.Select || t === Ne.Configure;
347
347
  case Q.Inherited:
348
- return t === Te.Select;
348
+ return t === Ne.Select;
349
349
  }
350
350
  }
351
- function hn(e, t, n) {
351
+ function fn(e, t, n) {
352
352
  const o = he(e, t, n);
353
- return !!o && o.parent !== null && lt(n.ownershipOf(o.node), Te.Delete);
353
+ return !!o && o.parent !== null && lt(n.ownershipOf(o.node), Ne.Delete);
354
354
  }
355
- function Da(e, t, n) {
355
+ function Oa(e, t, n) {
356
356
  const o = he(e, t, n);
357
357
  if (!o) return;
358
358
  const a = o.siblings[o.index + 1] ?? o.siblings[o.index - 1];
359
359
  return a ? n.idOf(a) : o.parent ? n.idOf(o.parent) : void 0;
360
360
  }
361
- function Oa(e, t, n, o = 0, a = null) {
361
+ function xa(e, t, n, o = 0, a = null) {
362
362
  return e.flatMap((r) => {
363
363
  const s = n.idOf(r), d = n.childrenOf(r), u = d.length > 0 && t.has(s), c = {
364
364
  node: r,
@@ -368,13 +368,13 @@ function Oa(e, t, n, o = 0, a = null) {
368
368
  hasChildren: d.length > 0,
369
369
  isExpanded: u
370
370
  };
371
- return u ? [c, ...Oa(d, t, n, o + 1, s)] : [c];
371
+ return u ? [c, ...xa(d, t, n, o + 1, s)] : [c];
372
372
  });
373
373
  }
374
374
  var ye = /* @__PURE__ */ (function(e) {
375
375
  return e.MoveUp = "moveUp", e.MoveDown = "moveDown", e.Outdent = "outdent", e.Indent = "indent", e;
376
376
  })({});
377
- function jl(e, t, n, o) {
377
+ function Vl(e, t, n, o) {
378
378
  const a = he(e, t, o);
379
379
  if (!a) return;
380
380
  const r = a.parent === null ? null : o.idOf(a.parent);
@@ -413,7 +413,7 @@ function jl(e, t, n, o) {
413
413
  var Re = /* @__PURE__ */ (function(e) {
414
414
  return e.Before = "before", e.Inside = "inside", e.After = "after", e;
415
415
  })({});
416
- function Vl(e, t, n, o, a) {
416
+ function ql(e, t, n, o, a) {
417
417
  const r = he(e, n, a);
418
418
  if (!r) return;
419
419
  if (o === Re.Inside) return {
@@ -428,18 +428,18 @@ function Vl(e, t, n, o, a) {
428
428
  index: o === Re.Before ? s : s + 1
429
429
  };
430
430
  }
431
- function ql(e, t, n) {
431
+ function Wl(e, t, n) {
432
432
  if (t <= 0) return Re.After;
433
433
  const o = e / t;
434
434
  return o < 0.25 ? Re.Before : o > 0.75 || !n ? o < 0.5 ? Re.Before : Re.After : Re.Inside;
435
435
  }
436
- var xa = ({ ownership: e, label: t }) => e === Q.Local ? null : /* @__PURE__ */ i("span", {
436
+ var Fa = ({ ownership: e, label: t }) => e === Q.Local ? null : /* @__PURE__ */ i("span", {
437
437
  className: "studio-editor-ownership-badge",
438
438
  "data-ownership": e,
439
439
  children: t
440
440
  });
441
- function Wl({ row: e, adapter: t, strings: n, isSelected: o, isFocusable: a, dropZone: r, onSelect: s, onToggle: d, onKeyDown: u, onDragStart: c, onDragOver: l, onDrop: m, onDragEnd: g }) {
442
- const b = t.ownershipOf(e.node), f = lt(b, Te.Move);
441
+ function zl({ row: e, adapter: t, strings: n, isSelected: o, isFocusable: a, dropZone: r, onSelect: s, onToggle: d, onKeyDown: u, onDragStart: c, onDragOver: l, onDrop: m, onDragEnd: g }) {
442
+ const b = t.ownershipOf(e.node), f = lt(b, Ne.Move);
443
443
  return /* @__PURE__ */ h("li", {
444
444
  role: "treeitem",
445
445
  "aria-level": e.depth + 1,
@@ -474,21 +474,21 @@ function Wl({ row: e, adapter: t, strings: n, isSelected: o, isFocusable: a, dro
474
474
  className: "studio-editor-structure-row__name",
475
475
  children: t.nameOf(e.node)
476
476
  }),
477
- /* @__PURE__ */ i(xa, {
477
+ /* @__PURE__ */ i(Fa, {
478
478
  ownership: b,
479
479
  label: n.ownership[b]
480
480
  })
481
481
  ]
482
482
  });
483
483
  }
484
- var Co = {
484
+ var So = {
485
485
  ArrowUp: ye.MoveUp,
486
486
  ArrowDown: ye.MoveDown,
487
487
  ArrowLeft: ye.Outdent,
488
488
  ArrowRight: ye.Indent
489
489
  };
490
- function Fa({ roots: e, adapter: t, strings: n, selectedId: o, onSelect: a, onEdit: r, onRemove: s }) {
491
- const [d, u] = A(() => new Set(e.flatMap((S) => [t.idOf(S), ...t.childrenOf(S).map((I) => t.idOf(I))]))), [c, l] = A(o), [m, g] = A(), [b, f] = A(), [p, v] = A(""), k = $(() => Oa(e, d, t), [
490
+ function Ma({ roots: e, adapter: t, strings: n, selectedId: o, onSelect: a, onEdit: r, onRemove: s }) {
491
+ const [d, u] = A(() => new Set(e.flatMap((S) => [t.idOf(S), ...t.childrenOf(S).map((I) => t.idOf(I))]))), [c, l] = A(o), [m, g] = A(), [b, f] = A(), [p, v] = A(""), k = $(() => xa(e, d, t), [
492
492
  e,
493
493
  d,
494
494
  t
@@ -503,13 +503,13 @@ function Fa({ roots: e, adapter: t, strings: n, selectedId: o, onSelect: a, onEd
503
503
  S && (l(S), requestAnimationFrame(() => document.querySelector(`[data-row-id="${CSS.escape(S)}"]`)?.focus()));
504
504
  }, M = (S, I) => {
505
505
  const L = k.findIndex((y) => y.id === I), G = k[L];
506
- if (S.altKey && Co[S.key]) {
507
- S.preventDefault(), q(jl(e, I, Co[S.key], t)), C(I);
506
+ if (S.altKey && So[S.key]) {
507
+ S.preventDefault(), q(Vl(e, I, So[S.key], t)), C(I);
508
508
  return;
509
509
  }
510
- if (Ia(S) && s && hn(e, I, t)) {
510
+ if (Ra(S) && s && fn(e, I, t)) {
511
511
  S.preventDefault();
512
- const y = Da(e, I, t);
512
+ const y = Oa(e, I, t);
513
513
  s(I), C(y);
514
514
  return;
515
515
  }
@@ -542,10 +542,10 @@ function Fa({ roots: e, adapter: t, strings: n, selectedId: o, onSelect: a, onEd
542
542
  const L = S.currentTarget.getBoundingClientRect(), G = k.find((y) => y.id === I);
543
543
  f({
544
544
  id: I,
545
- zone: ql(S.clientY - L.top, L.height, !!G && t.acceptsChildren(G.node))
545
+ zone: Wl(S.clientY - L.top, L.height, !!G && t.acceptsChildren(G.node))
546
546
  });
547
547
  }, W = (S, I) => {
548
- S.preventDefault(), m && b?.id === I && q(Vl(e, m, I, b.zone, t)), g(void 0), f(void 0);
548
+ S.preventDefault(), m && b?.id === I && q(ql(e, m, I, b.zone, t)), g(void 0), f(void 0);
549
549
  };
550
550
  return k.length === 0 ? /* @__PURE__ */ i("p", {
551
551
  className: "studio-editor-structure-empty",
@@ -554,7 +554,7 @@ function Fa({ roots: e, adapter: t, strings: n, selectedId: o, onSelect: a, onEd
554
554
  role: "tree",
555
555
  "aria-label": n.structureLabel,
556
556
  className: "studio-editor-structure-tree",
557
- children: k.map((S) => /* @__PURE__ */ i(Wl, {
557
+ children: k.map((S) => /* @__PURE__ */ i(zl, {
558
558
  row: S,
559
559
  adapter: t,
560
560
  strings: n,
@@ -582,22 +582,22 @@ function Fa({ roots: e, adapter: t, strings: n, selectedId: o, onSelect: a, onEd
582
582
  }
583
583
  var Zt = /* @__PURE__ */ (function(e) {
584
584
  return e.Properties = "properties", e.Structure = "structure", e;
585
- })({}), zl = /* @__PURE__ */ new Set([_e, $e]);
586
- function Gl(e, t, n) {
587
- return t ? e : e.filter((o) => !zl.has(o.descriptor.path) || n?.[o.descriptor.path] !== void 0);
585
+ })({}), Gl = /* @__PURE__ */ new Set([_e, $e]);
586
+ function Hl(e, t, n) {
587
+ return t ? e : e.filter((o) => !Gl.has(o.descriptor.path) || n?.[o.descriptor.path] !== void 0);
588
588
  }
589
- function Hl(e, t) {
589
+ function Jl(e, t) {
590
590
  return e.replace(/\{(\w+)\}/g, (n, o) => t[o] ?? n);
591
591
  }
592
- function Jl(e, t) {
592
+ function Kl(e, t) {
593
593
  const n = e.diagnostic ? t.diagnostics[e.diagnostic.kind] : t.notAllowed;
594
- return Hl(n, {
594
+ return Jl(n, {
595
595
  library: e.reference.library,
596
596
  key: e.reference.key,
597
597
  variant: e.reference.variant
598
598
  });
599
599
  }
600
- function Kl(e, t, n, o) {
600
+ function Ql(e, t, n, o) {
601
601
  if (!n) return;
602
602
  const a = e.lookup(n);
603
603
  if (!a) return;
@@ -606,14 +606,14 @@ function Kl(e, t, n, o) {
606
606
  diagnostic: a.diagnostic,
607
607
  isNotAllowed: !1
608
608
  };
609
- const r = t.icons.find((s) => Qr(s, n));
610
- return r && o && !Kr(r, o) ? {
609
+ const r = t.icons.find((s) => Yr(s, n));
610
+ return r && o && !Qr(r, o) ? {
611
611
  reference: n,
612
612
  isNotAllowed: !0
613
613
  } : void 0;
614
614
  }
615
- var Ql = 24;
616
- function Yl(e) {
615
+ var Yl = 24;
616
+ function Zl(e) {
617
617
  return e.libraries.map((t) => ({
618
618
  id: t.library,
619
619
  name: t.package.displayName ?? t.package.name,
@@ -621,7 +621,7 @@ function Yl(e) {
621
621
  attribution: t.package.iconLibrary?.attribution
622
622
  }));
623
623
  }
624
- function Zl(e, t) {
624
+ function Xl(e, t) {
625
625
  return e.flatMap((n) => n.references.map((o) => ({
626
626
  library: o.library,
627
627
  key: o.key,
@@ -630,28 +630,28 @@ function Zl(e, t) {
630
630
  categories: n.entry.categories,
631
631
  tags: n.entry.tags,
632
632
  aliases: n.entry.aliases,
633
- renderPreview: () => /* @__PURE__ */ i(Yr, {
633
+ renderPreview: () => /* @__PURE__ */ i(Zr, {
634
634
  reference: o,
635
635
  adapters: t,
636
- size: Ql
636
+ size: Yl
637
637
  })
638
638
  })));
639
639
  }
640
- function Xl(e, t, n, o = { status: "ready" }) {
640
+ function ec(e, t, n, o = { status: "ready" }) {
641
641
  return {
642
- libraries: Yl(e),
643
- icons: Zl(t, n),
642
+ libraries: Zl(e),
643
+ icons: Xl(t, n),
644
644
  status: o.status,
645
645
  error: o.error
646
646
  };
647
647
  }
648
- function ec(e) {
648
+ function tc(e) {
649
649
  return e.error ? {
650
650
  status: "error",
651
651
  error: e.error
652
652
  } : e.diagnostics.some((t) => t.kind === "catalog-unavailable") ? { status: "error" } : { status: "ready" };
653
653
  }
654
- function tc(e, t) {
654
+ function nc(e, t) {
655
655
  const [n, o] = A(), [a, r] = A(0);
656
656
  return pe(() => {
657
657
  let s = !0;
@@ -672,9 +672,9 @@ function tc(e, t) {
672
672
  s = !1;
673
673
  };
674
674
  }, [e]), $(() => {
675
- const s = n?.source === e ? n : void 0, d = s ? ec(s) : { status: "loading" };
675
+ const s = n?.source === e ? n : void 0, d = s ? tc(s) : { status: "loading" };
676
676
  return {
677
- catalog: Xl(e, s?.entries ?? [], t, d),
677
+ catalog: ec(e, s?.entries ?? [], t, d),
678
678
  diagnostics: s?.diagnostics ?? e.diagnostics,
679
679
  loadedVersion: a
680
680
  };
@@ -685,9 +685,9 @@ function tc(e, t) {
685
685
  a
686
686
  ]);
687
687
  }
688
- function Ma({ value: e, onChange: t, catalog: n, adapters: o, allowed: a, readOnly: r, disabled: s, validationMessage: d, showMessage: u = !0, invalid: c, strings: l, pickerLabels: m, placement: g, id: b, ...f }) {
689
- const { catalog: p, loadedVersion: v } = tc(n, o), k = v > 0 ? Kl(n, p, e, a) : void 0, j = d ?? (k ? Jl(k, l) : void 0);
690
- return /* @__PURE__ */ i(Jr, {
688
+ function _a({ value: e, onChange: t, catalog: n, adapters: o, allowed: a, readOnly: r, disabled: s, validationMessage: d, showMessage: u = !0, invalid: c, strings: l, pickerLabels: m, placement: g, id: b, ...f }) {
689
+ const { catalog: p, loadedVersion: v } = nc(n, o), k = v > 0 ? Ql(n, p, e, a) : void 0, j = d ?? (k ? Kl(k, l) : void 0);
690
+ return /* @__PURE__ */ i(Kr, {
691
691
  id: b,
692
692
  value: e,
693
693
  onChange: (_) => t({
@@ -711,13 +711,13 @@ function Ma({ value: e, onChange: t, catalog: n, adapters: o, allowed: a, readOn
711
711
  "aria-describedby": f["aria-describedby"]
712
712
  });
713
713
  }
714
- var nc = (e) => typeof e == "string" ? e : "";
715
- function oc(e) {
714
+ var oc = (e) => typeof e == "string" ? e : "";
715
+ function ac(e) {
716
716
  const t = (e.items ?? []).map((n) => ({
717
717
  id: n.id,
718
- label: nc(n.values.label),
718
+ label: oc(n.values.label),
719
719
  ...n.values.icon ? { icon: n.values.icon } : {},
720
- ...lc(n.values.destination) ? {
720
+ ...cc(n.values.destination) ? {
721
721
  destinationReference: n.values.destination,
722
722
  destination: n.values.destination.screen
723
723
  } : {},
@@ -729,7 +729,7 @@ function oc(e) {
729
729
  items: t.filter((n) => n.editable)
730
730
  };
731
731
  }
732
- function ac(e) {
732
+ function rc(e) {
733
733
  const t = new Set(e.operations ?? []), n = t.has(be.EditFields), o = e.descriptor.constraints?.maximumItems;
734
734
  return {
735
735
  add: t.has(be.Add),
@@ -748,7 +748,7 @@ function ac(e) {
748
748
  } } : {}
749
749
  };
750
750
  }
751
- function rc(e, t, n) {
751
+ function ic(e, t, n) {
752
752
  const o = {
753
753
  component: e,
754
754
  path: t.descriptor.path
@@ -760,7 +760,7 @@ function rc(e, t, n) {
760
760
  ...o,
761
761
  item: {
762
762
  id: n.item.id,
763
- values: sc(n.item)
763
+ values: lc(n.item)
764
764
  },
765
765
  index: n.index
766
766
  }];
@@ -783,24 +783,24 @@ function rc(e, t, n) {
783
783
  ...o,
784
784
  itemId: n.item.id,
785
785
  field: n.field,
786
- value: ic(n.item, n.field)
786
+ value: sc(n.item, n.field)
787
787
  }];
788
788
  }
789
789
  }
790
- var ic = (e, t) => t === "destination" ? fn(e) : e[t], sc = (e) => ({
790
+ var sc = (e, t) => t === "destination" ? gn(e) : e[t], lc = (e) => ({
791
791
  ...e.values,
792
792
  label: e.label,
793
793
  ...e.icon ? { icon: e.icon } : {},
794
- ...fn(e) ? { destination: fn(e) } : {}
794
+ ...gn(e) ? { destination: gn(e) } : {}
795
795
  });
796
- function fn(e) {
796
+ function gn(e) {
797
797
  if (!(!e.destination && !e.destinationReference))
798
798
  return {
799
799
  ...e.destinationReference ?? {},
800
800
  ...e.destination ? { screen: e.destination } : {}
801
801
  };
802
802
  }
803
- function lc(e) {
803
+ function cc(e) {
804
804
  return !e || typeof e != "object" || Array.isArray(e) ? !1 : [
805
805
  "screen",
806
806
  "module",
@@ -813,11 +813,11 @@ function lc(e) {
813
813
  "routeParameterBindings"
814
814
  ].some((t) => t in e);
815
815
  }
816
- function cc(e) {
816
+ function dc(e) {
817
817
  return { types: e };
818
818
  }
819
- function dc(e, t, n, o, a) {
820
- const r = Bn(t).map((s) => uc(e, s, n)).filter((s) => !!s && s.outputs.length > 0);
819
+ function uc(e, t, n, o, a) {
820
+ const r = Un(t).map((s) => pc(e, s, n)).filter((s) => !!s && s.outputs.length > 0);
821
821
  return {
822
822
  dataContextPaths: Object.keys(o).sort((s, d) => s.localeCompare(d)),
823
823
  queryResults: a.map((s) => ({
@@ -828,8 +828,8 @@ function dc(e, t, n, o, a) {
828
828
  componentOutputs: r
829
829
  };
830
830
  }
831
- function uc(e, t, n) {
832
- const o = xn(e, ie(t), n);
831
+ function pc(e, t, n) {
832
+ const o = Fn(e, ie(t), n);
833
833
  if (!o) return;
834
834
  const a = o.properties.filter((r) => r.descriptor.output === !0).map((r) => ({
835
835
  path: r.descriptor.path,
@@ -842,16 +842,16 @@ function uc(e, t, n) {
842
842
  outputs: a
843
843
  };
844
844
  }
845
- var jn = [
845
+ var Vn = [
846
846
  E.DataContext,
847
847
  E.QueryResult,
848
848
  E.ComponentProperty,
849
849
  E.Literal
850
- ], pc = [Xn.OneWay, Xn.TwoWay], mc = [
850
+ ], mc = [eo.OneWay, eo.TwoWay], hc = [
851
851
  Bt.Propagate,
852
852
  Bt.Clear,
853
853
  Bt.Preserve
854
- ], hc = [
854
+ ], fc = [
855
855
  x.String,
856
856
  x.Number,
857
857
  x.Boolean,
@@ -863,14 +863,14 @@ var jn = [
863
863
  x.Object,
864
864
  x.Json
865
865
  ];
866
- function _a(e) {
866
+ function $a(e) {
867
867
  const t = e;
868
- return !!t && typeof t == "object" && typeof t.path == "string" && (t.kind === void 0 || jn.includes(t.kind));
868
+ return !!t && typeof t == "object" && typeof t.path == "string" && (t.kind === void 0 || Vn.includes(t.kind));
869
869
  }
870
- function $a(e) {
871
- return (e.descriptor.acceptedBindingKinds?.length ?? 0) > 0 || _a(e.effectiveValue);
870
+ function Aa(e) {
871
+ return (e.descriptor.acceptedBindingKinds?.length ?? 0) > 0 || $a(e.effectiveValue);
872
872
  }
873
- function fc(e) {
873
+ function gc(e) {
874
874
  return {
875
875
  kind: e.descriptor.acceptedBindingKinds?.[0] ?? E.DataContext,
876
876
  path: "",
@@ -878,23 +878,23 @@ function fc(e) {
878
878
  expectedValueType: e.descriptor.valueType
879
879
  };
880
880
  }
881
- var at = (e) => `${typeof e}:${String(e)}`, gc = (e) => e == null ? "" : at(e);
882
- function vc(e, t) {
881
+ var at = (e) => `${typeof e}:${String(e)}`, vc = (e) => e == null ? "" : at(e);
882
+ function bc(e, t) {
883
883
  if (t == null || t === "") return { value: void 0 };
884
884
  const n = (e.descriptor.choices ?? []).find((o) => at(o.value) === t);
885
885
  return n ? { value: n.value } : void 0;
886
886
  }
887
- var bc = /* @__PURE__ */ new Set([
887
+ var yc = /* @__PURE__ */ new Set([
888
888
  x.String,
889
889
  x.Number,
890
890
  x.Boolean,
891
891
  x.Enum
892
- ]), yc = (e) => bc.has(e.descriptor.valueType) && e.descriptor.editorKind === void 0 && !$a(e), wc = { action: /* @__PURE__ */ new Set([
892
+ ]), wc = (e) => yc.has(e.descriptor.valueType) && e.descriptor.editorKind === void 0 && !Aa(e), Cc = { action: /* @__PURE__ */ new Set([
893
893
  "command",
894
894
  "arguments",
895
895
  "presentation"
896
- ]) }, Cc = (e, t) => wc[e.slice(e.lastIndexOf(":") + 1)]?.has(t) ?? !1;
897
- function Sc(e) {
896
+ ]) }, Sc = (e, t) => Cc[e.slice(e.lastIndexOf(":") + 1)]?.has(t) ?? !1;
897
+ function kc(e) {
898
898
  const { descriptor: t } = e, n = {
899
899
  name: t.path,
900
900
  label: t.label,
@@ -938,11 +938,11 @@ function Sc(e) {
938
938
  };
939
939
  }
940
940
  }
941
- function kc(e, t = "") {
941
+ function Nc(e, t = "") {
942
942
  const n = /* @__PURE__ */ new Map(), o = {};
943
- for (const a of e.filter((r) => yc(r) && !Cc(t, r.descriptor.path))) {
943
+ for (const a of e.filter((r) => wc(r) && !Sc(t, r.descriptor.path))) {
944
944
  const r = a.descriptor.group;
945
- n.set(r, [...n.get(r) ?? [], Sc(a)]), o[a.descriptor.path] = a.descriptor.valueType === x.Enum ? gc(a.effectiveValue) : a.effectiveValue ?? "";
945
+ n.set(r, [...n.get(r) ?? [], kc(a)]), o[a.descriptor.path] = a.descriptor.valueType === x.Enum ? vc(a.effectiveValue) : a.effectiveValue ?? "";
946
946
  }
947
947
  return {
948
948
  groups: [...n.entries()].map(([a, r]) => ({
@@ -954,9 +954,9 @@ function kc(e, t = "") {
954
954
  };
955
955
  }
956
956
  var Tc = (e, t) => e.descriptor.valueType === "number" && typeof t == "string" ? t.trim() === "" ? void 0 : Number(t) : t;
957
- function gn(e, t, n) {
957
+ function vn(e, t, n) {
958
958
  const o = Tc(t, n);
959
- return t.editTarget === Nr.Instance ? o === void 0 ? {
959
+ return t.editTarget === Pr.Instance ? o === void 0 ? {
960
960
  kind: X.ResetInstanceValue,
961
961
  component: e,
962
962
  path: t.descriptor.path
@@ -976,7 +976,7 @@ function gn(e, t, n) {
976
976
  value: o
977
977
  };
978
978
  }
979
- var Aa = ({ diagnostics: e, label: t }) => {
979
+ var La = ({ diagnostics: e, label: t }) => {
980
980
  if (e.length === 0) return null;
981
981
  const n = [...e].sort((o, a) => +(a.severity === "error") - +(o.severity === "error"));
982
982
  return /* @__PURE__ */ i("ul", {
@@ -993,7 +993,7 @@ var Aa = ({ diagnostics: e, label: t }) => {
993
993
  })({}), we = /* @__PURE__ */ (function(e) {
994
994
  return e.MissingSlice = "missingSlice", e.UnmappedInput = "unmappedInput", e.UnknownInput = "unknownInput", e.UnknownSource = "unknownSource", e;
995
995
  })({});
996
- function Nc(e, t, n) {
996
+ function Pc(e, t, n) {
997
997
  const o = t.find((r) => r.id === e.sliceId);
998
998
  if (!o) return [{ kind: we.MissingSlice }];
999
999
  const a = [];
@@ -1013,13 +1013,13 @@ function Nc(e, t, n) {
1013
1013
  });
1014
1014
  return a;
1015
1015
  }
1016
- function Pc(e, t) {
1016
+ function Ic(e, t) {
1017
1017
  return Object.fromEntries(e.inputs.flatMap((n) => {
1018
1018
  const o = t(n.name);
1019
1019
  return o === void 0 ? [] : [[n.name, o]];
1020
1020
  }));
1021
1021
  }
1022
- var Ic = (e, t) => {
1022
+ var Rc = (e, t) => {
1023
1023
  const n = e.input ?? "";
1024
1024
  switch (e.kind) {
1025
1025
  case we.MissingSlice:
@@ -1031,8 +1031,8 @@ var Ic = (e, t) => {
1031
1031
  case we.UnknownSource:
1032
1032
  return t.unknownSource(n);
1033
1033
  }
1034
- }, Rc = ({ action: e, slices: t, sources: n, strings: o, disabled: a, suggestSource: r, onChange: s }) => {
1035
- const d = o.properties.action, u = e ? t.find((l) => l.id === e.sliceId) : void 0, c = e ? Nc(e, t, new Set(n)) : [];
1034
+ }, Dc = ({ action: e, slices: t, sources: n, strings: o, disabled: a, suggestSource: r, onChange: s }) => {
1035
+ const d = o.properties.action, u = e ? t.find((l) => l.id === e.sliceId) : void 0, c = e ? Pc(e, t, new Set(n)) : [];
1036
1036
  return /* @__PURE__ */ h("fieldset", {
1037
1037
  className: "studio-editor-query",
1038
1038
  disabled: a,
@@ -1045,7 +1045,7 @@ var Ic = (e, t) => {
1045
1045
  s(m ? {
1046
1046
  sliceId: m.id,
1047
1047
  sliceName: m.name,
1048
- inputs: Pc(m, r),
1048
+ inputs: Ic(m, r),
1049
1049
  presentation: e?.presentation ?? de.None
1050
1050
  } : void 0);
1051
1051
  },
@@ -1110,7 +1110,7 @@ var Ic = (e, t) => {
1110
1110
  "aria-label": o.properties.diagnostics,
1111
1111
  children: c.map((l, m) => /* @__PURE__ */ i("li", {
1112
1112
  "data-severity": "error",
1113
- children: Ic(l, d.problems)
1113
+ children: Rc(l, d.problems)
1114
1114
  }, m))
1115
1115
  })
1116
1116
  ]
@@ -1140,14 +1140,14 @@ function lg(e) {
1140
1140
  }
1141
1141
  ];
1142
1142
  }
1143
- function Dc(e, t) {
1143
+ function Oc(e, t) {
1144
1144
  let n;
1145
1145
  try {
1146
1146
  n = e.execute(t.actionContext);
1147
1147
  } catch (r) {
1148
1148
  return {
1149
1149
  document: t.document,
1150
- diagnostics: [Oc(r)],
1150
+ diagnostics: [xc(r)],
1151
1151
  edits: [],
1152
1152
  applied: !1
1153
1153
  };
@@ -1155,7 +1155,7 @@ function Dc(e, t) {
1155
1155
  let o = t.document;
1156
1156
  const a = [...n.diagnostics];
1157
1157
  for (const r of n.edits) {
1158
- const s = Dn(o, r, t.editing);
1158
+ const s = On(o, r, t.editing);
1159
1159
  if (a.push(...s.diagnostics), !s.applied) return {
1160
1160
  document: t.document,
1161
1161
  diagnostics: a,
@@ -1171,10 +1171,10 @@ function Dc(e, t) {
1171
1171
  applied: n.edits.length > 0
1172
1172
  };
1173
1173
  }
1174
- function Oc(e) {
1174
+ function xc(e) {
1175
1175
  return e instanceof Error ? e.message : String(e);
1176
1176
  }
1177
- function La(e, t, n, o, a) {
1177
+ function Ea(e, t, n, o, a) {
1178
1178
  return {
1179
1179
  element: e,
1180
1180
  root: n.composition.element,
@@ -1189,23 +1189,23 @@ function La(e, t, n, o, a) {
1189
1189
  submitAction: (r, s) => n.applyAll(s, a)
1190
1190
  };
1191
1191
  }
1192
- var xc = ({ component: e, descriptor: t, controller: n, environment: o, strings: a, disabled: r }) => {
1193
- const s = $(() => Fc(o, t), [o, t]), [d, u] = A([]);
1192
+ var Fc = ({ component: e, descriptor: t, controller: n, environment: o, strings: a, disabled: r }) => {
1193
+ const s = $(() => Mc(o, t), [o, t]), [d, u] = A([]);
1194
1194
  return s.length === 0 ? null : /* @__PURE__ */ h("section", {
1195
1195
  className: "studio-editor-properties__actions",
1196
1196
  children: [
1197
1197
  /* @__PURE__ */ i("strong", { children: a.properties.designTimeActions }),
1198
1198
  s.map(({ id: c, action: l }) => {
1199
- const m = La(e, t, n, o, l?.descriptor.label ?? c);
1200
- if (!(!l || So(() => l.isVisible(m), !0))) return null;
1201
- const g = !r && (l ? So(() => l.isEnabled(m), !1) : !1);
1199
+ const m = Ea(e, t, n, o, l?.descriptor.label ?? c);
1200
+ if (!(!l || ko(() => l.isVisible(m), !0))) return null;
1201
+ const g = !r && (l ? ko(() => l.isEnabled(m), !1) : !1);
1202
1202
  return /* @__PURE__ */ i("button", {
1203
1203
  type: "button",
1204
1204
  disabled: !g,
1205
1205
  title: l?.descriptor.description,
1206
1206
  onClick: () => {
1207
1207
  if (!l) return;
1208
- const b = Dc(l, {
1208
+ const b = Oc(l, {
1209
1209
  document: n.document,
1210
1210
  editing: n.context,
1211
1211
  actionContext: m
@@ -1222,7 +1222,7 @@ var xc = ({ component: e, descriptor: t, controller: n, environment: o, strings:
1222
1222
  ]
1223
1223
  });
1224
1224
  };
1225
- function Fc(e, t) {
1225
+ function Mc(e, t) {
1226
1226
  const n = /* @__PURE__ */ new Map();
1227
1227
  for (const o of e.runtime.bundles) for (const [a, r] of Object.entries(o.designTime?.actions ?? {}))
1228
1228
  n.set(r.descriptor.id, r), n.set(a, r);
@@ -1231,21 +1231,21 @@ function Fc(e, t) {
1231
1231
  action: n.get(o.id)
1232
1232
  }));
1233
1233
  }
1234
- function So(e, t) {
1234
+ function ko(e, t) {
1235
1235
  try {
1236
1236
  return e();
1237
1237
  } catch {
1238
1238
  return t;
1239
1239
  }
1240
1240
  }
1241
- var Mc = ({ component: e, descriptor: t, controller: n, environment: o, strings: a }) => {
1242
- const r = $(() => _c(o, t, e), [
1241
+ var _c = ({ component: e, descriptor: t, controller: n, environment: o, strings: a }) => {
1242
+ const r = $(() => $c(o, t, e), [
1243
1243
  o,
1244
1244
  t,
1245
1245
  e
1246
1246
  ]);
1247
1247
  if (r.length === 0) return null;
1248
- const s = La(e, t, n, o, a.properties.designTimeDesigners);
1248
+ const s = Ea(e, t, n, o, a.properties.designTimeDesigners);
1249
1249
  return /* @__PURE__ */ h("section", {
1250
1250
  className: "studio-editor-properties__designers",
1251
1251
  children: [/* @__PURE__ */ i("strong", { children: a.properties.designTimeDesigners }), r.map(({ id: d, Designer: u }) => /* @__PURE__ */ i($t, {
@@ -1258,11 +1258,11 @@ var Mc = ({ component: e, descriptor: t, controller: n, environment: o, strings:
1258
1258
  }, d))]
1259
1259
  });
1260
1260
  };
1261
- function _c(e, t, n) {
1261
+ function $c(e, t, n) {
1262
1262
  const o = /* @__PURE__ */ new Set([
1263
1263
  t.component,
1264
1264
  n.componentName,
1265
- $c(n.componentName),
1265
+ Ac(n.componentName),
1266
1266
  ...t.editorKind ? [t.editorKind] : []
1267
1267
  ]);
1268
1268
  return e.runtime.bundles.flatMap((a) => Object.entries(a.designTime?.designers ?? {}).filter(([r]) => o.has(r)).map(([r, s]) => ({
@@ -1270,20 +1270,20 @@ function _c(e, t, n) {
1270
1270
  Designer: s
1271
1271
  })));
1272
1272
  }
1273
- function $c(e) {
1273
+ function Ac(e) {
1274
1274
  const t = e.lastIndexOf(":");
1275
1275
  return t >= 0 ? e.slice(t + 1) : e;
1276
1276
  }
1277
1277
  var Ce = /* @__PURE__ */ (function(e) {
1278
1278
  return e.AutoMapped = "autoMapped", e.Renamed = "renamed", e.Composed = "composed", e.Broken = "broken", e;
1279
1279
  })({});
1280
- function Ac(e, t) {
1280
+ function Lc(e, t) {
1281
1281
  return e.fields.map((n) => ({
1282
1282
  field: n,
1283
- kind: Lc(n, t)
1283
+ kind: Ec(n, t)
1284
1284
  }));
1285
1285
  }
1286
- function Lc(e, t) {
1286
+ function Ec(e, t) {
1287
1287
  if (e.composeUsing) return Ce.Composed;
1288
1288
  const n = e.sourceProperty ?? e.name;
1289
1289
  return t.includes(n) ? e.sourceProperty ? Ce.Renamed : Ce.AutoMapped : Ce.Broken;
@@ -1291,8 +1291,8 @@ function Lc(e, t) {
1291
1291
  var Oe = /* @__PURE__ */ (function(e) {
1292
1292
  return e.None = "none", e.ViaQuery = "viaQuery", e.FromItem = "fromItem", e;
1293
1293
  })({});
1294
- function Ec(e) {
1295
- return e ? Bc(e) ? {
1294
+ function Bc(e) {
1295
+ return e ? Uc(e) ? {
1296
1296
  kind: Oe.ViaQuery,
1297
1297
  queryName: e.queryName,
1298
1298
  parameterNames: Object.keys(e.parameterBindings)
@@ -1304,26 +1304,26 @@ function Ec(e) {
1304
1304
  parameterNames: []
1305
1305
  };
1306
1306
  }
1307
- function Bc(e) {
1307
+ function Uc(e) {
1308
1308
  return "queryName" in e;
1309
1309
  }
1310
- var Uc = {
1310
+ var jc = {
1311
1311
  [Ce.AutoMapped]: "Auto-mapped",
1312
1312
  [Ce.Renamed]: "Renamed",
1313
1313
  [Ce.Composed]: "Composed",
1314
1314
  [Ce.Broken]: "Broken"
1315
- }, jc = {
1315
+ }, Vc = {
1316
1316
  [Oe.None]: "No populate source",
1317
1317
  [Oe.ViaQuery]: "Populate via query",
1318
1318
  [Oe.FromItem]: "Populate from item"
1319
1319
  };
1320
- function Vc({ form: e, commandProperties: t, onFieldSelected: n }) {
1321
- const o = Ec(e.populateSource), a = Ac(e, t);
1320
+ function qc({ form: e, commandProperties: t, onFieldSelected: n }) {
1321
+ const o = Bc(e.populateSource), a = Lc(e, t);
1322
1322
  return /* @__PURE__ */ h("div", {
1323
1323
  className: "studio-editor-form-designer",
1324
1324
  children: [/* @__PURE__ */ h("div", {
1325
1325
  className: "studio-editor-form-designer-populate-source",
1326
- children: [/* @__PURE__ */ i("span", { children: jc[o.kind] }), o.kind === Oe.ViaQuery && /* @__PURE__ */ h("span", {
1326
+ children: [/* @__PURE__ */ i("span", { children: Vc[o.kind] }), o.kind === Oe.ViaQuery && /* @__PURE__ */ h("span", {
1327
1327
  className: "studio-editor-form-designer-populate-source-detail",
1328
1328
  children: [o.queryName, o.parameterNames.length > 0 && ` by ${o.parameterNames.join(", ")}`]
1329
1329
  })]
@@ -1339,7 +1339,7 @@ function Vc({ form: e, commandProperties: t, onFieldSelected: n }) {
1339
1339
  }),
1340
1340
  /* @__PURE__ */ i("span", {
1341
1341
  className: "studio-editor-form-designer-field-kind",
1342
- children: Uc[s]
1342
+ children: jc[s]
1343
1343
  }),
1344
1344
  r.sourceProperty && /* @__PURE__ */ h("span", {
1345
1345
  className: "studio-editor-form-designer-field-detail",
@@ -1358,7 +1358,7 @@ var Se = (e = 1, t = me.Fraction) => t === me.Auto ? { unit: t } : {
1358
1358
  unit: t,
1359
1359
  value: e
1360
1360
  };
1361
- function qc(e) {
1361
+ function Wc(e) {
1362
1362
  return {
1363
1363
  columns: [{
1364
1364
  index: 0,
@@ -1367,13 +1367,13 @@ function qc(e) {
1367
1367
  index: 1,
1368
1368
  width: Se(1)
1369
1369
  }],
1370
- placements: e.map((t, n) => Vn(t.name, n)),
1370
+ placements: e.map((t, n) => qn(t.name, n)),
1371
1371
  columnGap: Se(16, me.Pixels),
1372
1372
  rowGap: Se(12, me.Pixels)
1373
1373
  };
1374
1374
  }
1375
1375
  function ct(e) {
1376
- const t = e.layout ?? qc(e.fields), n = e.fields.map((o, a) => Ea(t, o.name) ?? o.placement ?? Vn(o.name, a));
1376
+ const t = e.layout ?? Wc(e.fields), n = e.fields.map((o, a) => Ba(t, o.name) ?? o.placement ?? qn(o.name, a));
1377
1377
  return {
1378
1378
  ...e,
1379
1379
  layout: {
@@ -1386,8 +1386,8 @@ function ct(e) {
1386
1386
  }))
1387
1387
  };
1388
1388
  }
1389
- function Wc(e, t, n) {
1390
- const o = ct(e), a = Gc(n(Ea(o.layout, t) ?? Vn(t, o.fields.findIndex((r) => r.name === t))));
1389
+ function zc(e, t, n) {
1390
+ const o = ct(e), a = Hc(n(Ba(o.layout, t) ?? qn(t, o.fields.findIndex((r) => r.name === t))));
1391
1391
  return {
1392
1392
  ...o,
1393
1393
  layout: {
@@ -1400,7 +1400,7 @@ function Wc(e, t, n) {
1400
1400
  } : r)
1401
1401
  };
1402
1402
  }
1403
- function zc(e, t, n) {
1403
+ function Gc(e, t, n) {
1404
1404
  const o = ct(e), a = o.layout.columns.some((r) => r.index === t) ? o.layout.columns.map((r) => r.index === t ? {
1405
1405
  ...r,
1406
1406
  width: n
@@ -1416,7 +1416,7 @@ function zc(e, t, n) {
1416
1416
  }
1417
1417
  };
1418
1418
  }
1419
- function ko(e, t, n) {
1419
+ function No(e, t, n) {
1420
1420
  const o = ct(e);
1421
1421
  return {
1422
1422
  ...o,
@@ -1426,10 +1426,10 @@ function ko(e, t, n) {
1426
1426
  }
1427
1427
  };
1428
1428
  }
1429
- function Ea(e, t) {
1429
+ function Ba(e, t) {
1430
1430
  return e.placements.find((n) => n.field === t);
1431
1431
  }
1432
- function Vn(e, t) {
1432
+ function qn(e, t) {
1433
1433
  return {
1434
1434
  field: e,
1435
1435
  row: Math.floor(t / 2),
@@ -1438,7 +1438,7 @@ function Vn(e, t) {
1438
1438
  columnSpan: 1
1439
1439
  };
1440
1440
  }
1441
- function Gc(e) {
1441
+ function Hc(e) {
1442
1442
  return {
1443
1443
  ...e,
1444
1444
  row: Math.max(0, e.row),
@@ -1447,7 +1447,7 @@ function Gc(e) {
1447
1447
  columnSpan: Math.max(1, e.columnSpan ?? 1)
1448
1448
  };
1449
1449
  }
1450
- var Hc = ({ form: e, strings: t, onChange: n }) => {
1450
+ var Jc = ({ form: e, strings: t, onChange: n }) => {
1451
1451
  const o = ct(e), a = o.layout;
1452
1452
  return /* @__PURE__ */ h("div", {
1453
1453
  className: "studio-editor-properties__form-layout",
@@ -1458,7 +1458,7 @@ var Hc = ({ form: e, strings: t, onChange: n }) => {
1458
1458
  name: t.column(r.index + 1),
1459
1459
  value: r.width ?? Se(),
1460
1460
  strings: t,
1461
- onChange: (s) => n(zc(o, r.index, s))
1461
+ onChange: (s) => n(Gc(o, r.index, s))
1462
1462
  })]
1463
1463
  }, r.index))] }),
1464
1464
  /* @__PURE__ */ h("fieldset", { children: [
@@ -1469,7 +1469,7 @@ var Hc = ({ form: e, strings: t, onChange: n }) => {
1469
1469
  name: t.columnGap,
1470
1470
  value: a.columnGap ?? Se(0, me.Pixels),
1471
1471
  strings: t,
1472
- onChange: (r) => n(ko(o, "columnGap", r))
1472
+ onChange: (r) => n(No(o, "columnGap", r))
1473
1473
  })]
1474
1474
  }),
1475
1475
  /* @__PURE__ */ h("div", {
@@ -1478,21 +1478,21 @@ var Hc = ({ form: e, strings: t, onChange: n }) => {
1478
1478
  name: t.rowGap,
1479
1479
  value: a.rowGap ?? Se(0, me.Pixels),
1480
1480
  strings: t,
1481
- onChange: (r) => n(ko(o, "rowGap", r))
1481
+ onChange: (r) => n(No(o, "rowGap", r))
1482
1482
  })]
1483
1483
  })
1484
1484
  ] }),
1485
1485
  /* @__PURE__ */ h("fieldset", { children: [/* @__PURE__ */ i("legend", { children: t.placements }), o.fields.map((r) => {
1486
1486
  const s = a.placements.find((d) => d.field === r.name) ?? r.placement;
1487
- return /* @__PURE__ */ h("fieldset", { children: [/* @__PURE__ */ i("legend", { children: r.label || r.name }), /* @__PURE__ */ i(Jc, {
1487
+ return /* @__PURE__ */ h("fieldset", { children: [/* @__PURE__ */ i("legend", { children: r.label || r.name }), /* @__PURE__ */ i(Kc, {
1488
1488
  placement: s,
1489
1489
  strings: t,
1490
- onChange: (d) => n(Wc(o, r.name, () => d))
1490
+ onChange: (d) => n(zc(o, r.name, () => d))
1491
1491
  })] }, r.name);
1492
1492
  })] })
1493
1493
  ]
1494
1494
  });
1495
- }, Jc = ({ placement: e, strings: t, onChange: n }) => /* @__PURE__ */ h(se, { children: [
1495
+ }, Kc = ({ placement: e, strings: t, onChange: n }) => /* @__PURE__ */ h(se, { children: [
1496
1496
  /* @__PURE__ */ i(mt, {
1497
1497
  label: t.row,
1498
1498
  value: e.row,
@@ -1569,7 +1569,7 @@ function To(e, t) {
1569
1569
  value: Number.isFinite(n) ? n : 0
1570
1570
  };
1571
1571
  }
1572
- var Kc = ({ controller: e, slices: t, strings: n, disabled: o }) => {
1572
+ var Qc = ({ controller: e, slices: t, strings: n, disabled: o }) => {
1573
1573
  const a = e.document.screens.find((c) => c.name === ge);
1574
1574
  if (!a) return null;
1575
1575
  const r = a.forms ?? [], s = n.properties.forms, d = (c, l = s.label) => e.setScreenForms(c, l), u = (c, l) => d(r.map((m, g) => g === c ? l : m));
@@ -1582,7 +1582,7 @@ var Kc = ({ controller: e, slices: t, strings: n, disabled: o }) => {
1582
1582
  disabled: o || t.length === 0,
1583
1583
  onChange: (c) => {
1584
1584
  const l = t.find((m) => m.id === c.target.value);
1585
- l && d([...r, No(l)], s.add);
1585
+ l && d([...r, Po(l)], s.add);
1586
1586
  },
1587
1587
  children: [/* @__PURE__ */ i("option", {
1588
1588
  value: "",
@@ -1593,7 +1593,7 @@ var Kc = ({ controller: e, slices: t, strings: n, disabled: o }) => {
1593
1593
  }, c.id))]
1594
1594
  })] }),
1595
1595
  r.map((c, l) => {
1596
- const m = t.find((f) => f.name === c.forCommand), g = m?.inputs.map((f) => f.name) ?? c.fields.map((f) => f.sourceProperty ?? f.name), b = Zc(c, m) === ce.Auto;
1596
+ const m = t.find((f) => f.name === c.forCommand), g = m?.inputs.map((f) => f.name) ?? c.fields.map((f) => f.sourceProperty ?? f.name), b = Xc(c, m) === ce.Auto;
1597
1597
  return /* @__PURE__ */ h("fieldset", {
1598
1598
  className: "studio-editor-properties__form",
1599
1599
  disabled: o,
@@ -1601,7 +1601,7 @@ var Kc = ({ controller: e, slices: t, strings: n, disabled: o }) => {
1601
1601
  /* @__PURE__ */ i("legend", { children: c.name }),
1602
1602
  /* @__PURE__ */ h("label", { children: [/* @__PURE__ */ i("span", { children: s.mode }), /* @__PURE__ */ h("select", {
1603
1603
  value: b ? ce.Auto : ce.Manual,
1604
- onChange: (f) => m && u(l, f.target.value === ce.Auto ? No(m) : Qc(c, m)),
1604
+ onChange: (f) => m && u(l, f.target.value === ce.Auto ? Po(m) : Yc(c, m)),
1605
1605
  children: [/* @__PURE__ */ i("option", {
1606
1606
  value: ce.Auto,
1607
1607
  children: s.auto
@@ -1610,7 +1610,7 @@ var Kc = ({ controller: e, slices: t, strings: n, disabled: o }) => {
1610
1610
  children: s.manual
1611
1611
  })]
1612
1612
  })] }),
1613
- /* @__PURE__ */ i(Vc, {
1613
+ /* @__PURE__ */ i(qc, {
1614
1614
  form: c,
1615
1615
  commandProperties: g
1616
1616
  }),
@@ -1620,7 +1620,7 @@ var Kc = ({ controller: e, slices: t, strings: n, disabled: o }) => {
1620
1620
  /* @__PURE__ */ i("legend", { children: f.name }),
1621
1621
  /* @__PURE__ */ h("label", { children: [/* @__PURE__ */ i("span", { children: s.fieldLabel }), /* @__PURE__ */ i("input", {
1622
1622
  value: f.label ?? "",
1623
- onChange: (v) => u(l, Po(c, p, {
1623
+ onChange: (v) => u(l, Io(c, p, {
1624
1624
  ...f,
1625
1625
  label: v.target.value || void 0
1626
1626
  }))
@@ -1628,7 +1628,7 @@ var Kc = ({ controller: e, slices: t, strings: n, disabled: o }) => {
1628
1628
  /* @__PURE__ */ h("label", { children: [/* @__PURE__ */ i("span", { children: s.sourceProperty }), /* @__PURE__ */ i("input", {
1629
1629
  list: `form-${l}-sources`,
1630
1630
  value: f.sourceProperty ?? "",
1631
- onChange: (v) => u(l, Po(c, p, {
1631
+ onChange: (v) => u(l, Io(c, p, {
1632
1632
  ...f,
1633
1633
  sourceProperty: v.target.value || void 0
1634
1634
  }))
@@ -1638,7 +1638,7 @@ var Kc = ({ controller: e, slices: t, strings: n, disabled: o }) => {
1638
1638
  children: g.map((f) => /* @__PURE__ */ i("option", { value: f }, f))
1639
1639
  })]
1640
1640
  }),
1641
- !b && /* @__PURE__ */ i(Hc, {
1641
+ !b && /* @__PURE__ */ i(Jc, {
1642
1642
  form: c,
1643
1643
  strings: s,
1644
1644
  onChange: (f) => u(l, f)
@@ -1654,7 +1654,7 @@ var Kc = ({ controller: e, slices: t, strings: n, disabled: o }) => {
1654
1654
  ]
1655
1655
  });
1656
1656
  };
1657
- function No(e) {
1657
+ function Po(e) {
1658
1658
  return {
1659
1659
  name: e.name,
1660
1660
  forCommand: e.name,
@@ -1662,24 +1662,24 @@ function No(e) {
1662
1662
  fields: e.inputs.map((t) => ({ name: t.name }))
1663
1663
  };
1664
1664
  }
1665
- function Qc(e, t) {
1665
+ function Yc(e, t) {
1666
1666
  return ct({
1667
1667
  ...e,
1668
1668
  generationMode: ce.Manual,
1669
- fields: Yc(t)
1669
+ fields: Zc(t)
1670
1670
  });
1671
1671
  }
1672
- function Yc(e) {
1672
+ function Zc(e) {
1673
1673
  return e.inputs.map((t) => ({
1674
1674
  name: t.name,
1675
1675
  sourceProperty: t.name,
1676
1676
  label: t.name
1677
1677
  }));
1678
1678
  }
1679
- function Zc(e, t) {
1679
+ function Xc(e, t) {
1680
1680
  return e.generationMode ? e.generationMode : t !== void 0 && e.fields.length === t.inputs.length && e.fields.every((n, o) => n.name === t.inputs[o]?.name && !n.sourceProperty && !n.composeUsing && !n.label && !n.placement) ? ce.Auto : ce.Manual;
1681
1681
  }
1682
- function Po(e, t, n) {
1682
+ function Io(e, t, n) {
1683
1683
  return {
1684
1684
  ...e,
1685
1685
  fields: e.fields.map((o, a) => a === t ? n : o)
@@ -1687,8 +1687,8 @@ function Po(e, t, n) {
1687
1687
  }
1688
1688
  var U = /* @__PURE__ */ (function(e) {
1689
1689
  return e.String = "string", e.Number = "number", e.Boolean = "boolean", e.Null = "null", e.Json = "json", e;
1690
- })(U || {}), Xc = ({ property: e, sources: t, strings: n, disabled: o, onChange: a }) => {
1691
- const r = n.properties.binding, s = _a(e.effectiveValue) ? e.effectiveValue : void 0, d = s ? void 0 : nd(e.effectiveValue), u = fc(e), c = s ?? u, l = td(c, e.descriptor.acceptedBindingKinds?.length ? e.descriptor.acceptedBindingKinds : jn, t, r), m = c.query ? t.queryResults.find((p) => p.id === c.query || p.name === c.query) : void 0, g = c.componentId ? t.componentOutputs.find((p) => p.componentId === c.componentId) : void 0, b = (p) => a(od({
1690
+ })(U || {}), ed = ({ property: e, sources: t, strings: n, disabled: o, onChange: a }) => {
1691
+ const r = n.properties.binding, s = $a(e.effectiveValue) ? e.effectiveValue : void 0, d = s ? void 0 : od(e.effectiveValue), u = gc(e), c = s ?? u, l = nd(c, e.descriptor.acceptedBindingKinds?.length ? e.descriptor.acceptedBindingKinds : Vn, t, r), m = c.query ? t.queryResults.find((p) => p.id === c.query || p.name === c.query) : void 0, g = c.componentId ? t.componentOutputs.find((p) => p.componentId === c.componentId) : void 0, b = (p) => a(ad({
1692
1692
  ...c,
1693
1693
  ...p
1694
1694
  })), f = () => a(void 0);
@@ -1725,7 +1725,7 @@ var U = /* @__PURE__ */ (function(e) {
1725
1725
  children: [
1726
1726
  /* @__PURE__ */ h("label", { children: [/* @__PURE__ */ i("span", { children: r.source }), /* @__PURE__ */ i("select", {
1727
1727
  value: c.kind ?? E.DataContext,
1728
- onChange: (p) => b(ad(p.target.value, c)),
1728
+ onChange: (p) => b(rd(p.target.value, c)),
1729
1729
  children: l.map((p) => /* @__PURE__ */ i("option", {
1730
1730
  value: p.kind,
1731
1731
  disabled: p.disabled,
@@ -1738,7 +1738,7 @@ var U = /* @__PURE__ */ (function(e) {
1738
1738
  children: [/* @__PURE__ */ i("option", {
1739
1739
  value: "",
1740
1740
  children: r.inheritedMode
1741
- }), pc.map((p) => /* @__PURE__ */ i("option", {
1741
+ }), mc.map((p) => /* @__PURE__ */ i("option", {
1742
1742
  value: p,
1743
1743
  children: p
1744
1744
  }, p))]
@@ -1749,7 +1749,7 @@ var U = /* @__PURE__ */ (function(e) {
1749
1749
  children: [/* @__PURE__ */ i("option", {
1750
1750
  value: "",
1751
1751
  children: r.defaultNullBehavior
1752
- }), mc.map((p) => /* @__PURE__ */ i("option", {
1752
+ }), hc.map((p) => /* @__PURE__ */ i("option", {
1753
1753
  value: p,
1754
1754
  children: p
1755
1755
  }, p))]
@@ -1760,7 +1760,7 @@ var U = /* @__PURE__ */ (function(e) {
1760
1760
  children: [/* @__PURE__ */ i("option", {
1761
1761
  value: "",
1762
1762
  children: r.inferType
1763
- }), hc.map((p) => /* @__PURE__ */ i("option", {
1763
+ }), fc.map((p) => /* @__PURE__ */ i("option", {
1764
1764
  value: p,
1765
1765
  children: p
1766
1766
  }, p))]
@@ -1861,7 +1861,7 @@ var U = /* @__PURE__ */ (function(e) {
1861
1861
  children: r.missingComponent(c.componentId)
1862
1862
  })
1863
1863
  ] }),
1864
- He(c) === E.Literal && /* @__PURE__ */ i(ed, {
1864
+ He(c) === E.Literal && /* @__PURE__ */ i(td, {
1865
1865
  value: c.value,
1866
1866
  targetType: c.expectedValueType ?? e.descriptor.valueType,
1867
1867
  strings: r,
@@ -1888,17 +1888,17 @@ var U = /* @__PURE__ */ (function(e) {
1888
1888
  id: e,
1889
1889
  children: o.map((r) => /* @__PURE__ */ i("option", { value: r }, r))
1890
1890
  })
1891
- ] }), ed = ({ value: e, targetType: t, strings: n, onChange: o }) => {
1892
- const a = vn(e, t), r = et(e, t), s = Z(r), [d, u] = A(a), [c, l] = A(() => en(e, a)), [m, g] = A();
1891
+ ] }), td = ({ value: e, targetType: t, strings: n, onChange: o }) => {
1892
+ const a = bn(e, t), r = et(e, t), s = Z(r), [d, u] = A(a), [c, l] = A(() => en(e, a)), [m, g] = A();
1893
1893
  pe(() => {
1894
1894
  const f = et(e, t);
1895
1895
  if (f === s.current) return;
1896
- const p = vn(e, t);
1896
+ const p = bn(e, t);
1897
1897
  s.current = f, u(p), l(en(e, p)), g(void 0);
1898
1898
  }, [e, t]);
1899
1899
  const b = (f) => {
1900
1900
  u(f), g(void 0);
1901
- const p = rd(f);
1901
+ const p = id(f);
1902
1902
  l(en(p, f)), s.current = et(p, t), o(p);
1903
1903
  };
1904
1904
  return /* @__PURE__ */ h("div", {
@@ -1972,13 +1972,13 @@ var U = /* @__PURE__ */ (function(e) {
1972
1972
  ]
1973
1973
  });
1974
1974
  };
1975
- function td(e, t, n, o) {
1975
+ function nd(e, t, n, o) {
1976
1976
  const a = He(e);
1977
- return jn.map((r) => {
1977
+ return Vn.map((r) => {
1978
1978
  const s = t.includes(r), d = r === E.QueryResult && n.queryResults.length === 0 || r === E.ComponentProperty && n.componentOutputs.length === 0;
1979
1979
  return {
1980
1980
  kind: r,
1981
- label: id(r, o.sources),
1981
+ label: sd(r, o.sources),
1982
1982
  disabled: r !== a && (!s || d),
1983
1983
  reason: s ? d ? o.unavailableSource : void 0 : o.incompatibleSource
1984
1984
  };
@@ -1987,7 +1987,7 @@ function td(e, t, n, o) {
1987
1987
  function He(e) {
1988
1988
  return e.kind ?? E.DataContext;
1989
1989
  }
1990
- function nd(e) {
1990
+ function od(e) {
1991
1991
  if (!(!e || typeof e != "object" || Array.isArray(e)))
1992
1992
  return [
1993
1993
  "kind",
@@ -1998,7 +1998,7 @@ function nd(e) {
1998
1998
  "value"
1999
1999
  ].some((t) => t in e) ? e : void 0;
2000
2000
  }
2001
- function od(e) {
2001
+ function ad(e) {
2002
2002
  switch (He(e)) {
2003
2003
  case E.Literal:
2004
2004
  return {
@@ -2032,7 +2032,7 @@ function od(e) {
2032
2032
  };
2033
2033
  }
2034
2034
  }
2035
- function ad(e, t) {
2035
+ function rd(e, t) {
2036
2036
  switch (e) {
2037
2037
  case E.Literal:
2038
2038
  return {
@@ -2060,7 +2060,7 @@ function ad(e, t) {
2060
2060
  };
2061
2061
  }
2062
2062
  }
2063
- function vn(e, t) {
2063
+ function bn(e, t) {
2064
2064
  return e === null ? U.Null : typeof e == "number" ? U.Number : typeof e == "boolean" ? U.Boolean : typeof e == "object" ? U.Json : t === x.Number ? U.Number : t === x.Boolean ? U.Boolean : t === x.Object || t === x.Collection || t === x.Json ? U.Json : U.String;
2065
2065
  }
2066
2066
  function en(e, t) {
@@ -2068,11 +2068,11 @@ function en(e, t) {
2068
2068
  }
2069
2069
  function et(e, t) {
2070
2070
  return JSON.stringify({
2071
- kind: vn(e, t),
2071
+ kind: bn(e, t),
2072
2072
  value: e
2073
2073
  }) ?? "undefined";
2074
2074
  }
2075
- function rd(e) {
2075
+ function id(e) {
2076
2076
  switch (e) {
2077
2077
  case U.String:
2078
2078
  return "";
@@ -2086,7 +2086,7 @@ function rd(e) {
2086
2086
  return {};
2087
2087
  }
2088
2088
  }
2089
- function id(e, t) {
2089
+ function sd(e, t) {
2090
2090
  switch (e) {
2091
2091
  case E.DataContext:
2092
2092
  return t.dataContext;
@@ -2098,7 +2098,7 @@ function id(e, t) {
2098
2098
  return t.literal;
2099
2099
  }
2100
2100
  }
2101
- function sd(e) {
2101
+ function ld(e) {
2102
2102
  return {
2103
2103
  queryId: e.id,
2104
2104
  query: e.name,
@@ -2106,11 +2106,11 @@ function sd(e) {
2106
2106
  results: []
2107
2107
  };
2108
2108
  }
2109
- function ld(e) {
2109
+ function cd(e) {
2110
2110
  const t = e;
2111
2111
  return !!t && typeof t == "object" && typeof t.queryId == "string" && Array.isArray(t.arguments) && Array.isArray(t.results);
2112
2112
  }
2113
- function cd(e, t, n) {
2113
+ function dd(e, t, n) {
2114
2114
  const o = e.arguments.filter((a) => a.parameter !== t);
2115
2115
  return {
2116
2116
  ...e,
@@ -2120,7 +2120,7 @@ function cd(e, t, n) {
2120
2120
  }]
2121
2121
  };
2122
2122
  }
2123
- function dd(e, t, n = t) {
2123
+ function ud(e, t, n = t) {
2124
2124
  return e.results.some((o) => o.field === t) ? e : {
2125
2125
  ...e,
2126
2126
  results: [...e.results, {
@@ -2129,34 +2129,34 @@ function dd(e, t, n = t) {
2129
2129
  }]
2130
2130
  };
2131
2131
  }
2132
- function ud(e, t) {
2132
+ function pd(e, t) {
2133
2133
  return {
2134
2134
  ...e,
2135
2135
  results: e.results.filter((n) => n.field !== t)
2136
2136
  };
2137
2137
  }
2138
- var pd = (e, t) => e.arguments.find((n) => n.parameter === t.name)?.source.path ?? "", md = (e, t) => e.results.some((n) => n.field === t.name), re = /* @__PURE__ */ (function(e) {
2138
+ var md = (e, t) => e.arguments.find((n) => n.parameter === t.name)?.source.path ?? "", hd = (e, t) => e.results.some((n) => n.field === t.name), re = /* @__PURE__ */ (function(e) {
2139
2139
  return e.NoQuery = "noQuery", e.MissingQuery = "missingQuery", e.Loading = "loading", e.Empty = "empty", e.Error = "error", e.Ready = "ready", e;
2140
2140
  })({});
2141
- function hd({ binding: e, candidate: t, isLoading: n, error: o, rowCount: a }) {
2141
+ function fd({ binding: e, candidate: t, isLoading: n, error: o, rowCount: a }) {
2142
2142
  return e ? t ? o != null ? re.Error : n ? re.Loading : a === 0 ? re.Empty : re.Ready : re.MissingQuery : re.NoQuery;
2143
2143
  }
2144
- function Io(e, t, n, o) {
2145
- const a = qr(e, t, n, o);
2144
+ function Ro(e, t, n, o) {
2145
+ const a = Wr(e, t, n, o);
2146
2146
  return {
2147
2147
  diagnostics: a,
2148
2148
  isStorable: a.every((r) => r.severity !== "error")
2149
2149
  };
2150
2150
  }
2151
- var fd = (e) => e.origin.map((t) => t.name).join(" / "), gd = ({ property: e, candidates: t, scope: n, strings: o, disabled: a, onChange: r }) => {
2152
- const s = o.properties.query, [d, u] = A(), c = ld(e.effectiveValue) ? e.effectiveValue : void 0, l = d ?? c, m = l ? t.find((v) => v.id === l.queryId) : void 0, g = l ? Io(e.descriptor, m, l, n).diagnostics : [], b = (v) => {
2151
+ var gd = (e) => e.origin.map((t) => t.name).join(" / "), vd = ({ property: e, candidates: t, scope: n, strings: o, disabled: a, onChange: r }) => {
2152
+ const s = o.properties.query, [d, u] = A(), c = cd(e.effectiveValue) ? e.effectiveValue : void 0, l = d ?? c, m = l ? t.find((v) => v.id === l.queryId) : void 0, g = l ? Ro(e.descriptor, m, l, n).diagnostics : [], b = (v) => {
2153
2153
  if (!v) {
2154
2154
  u(void 0), r(void 0);
2155
2155
  return;
2156
2156
  }
2157
- const k = Io(e.descriptor, t.find((j) => j.id === v.queryId), v, n);
2157
+ const k = Ro(e.descriptor, t.find((j) => j.id === v.queryId), v, n);
2158
2158
  u(k.isStorable ? void 0 : v), k.isStorable && r(v);
2159
- }, f = hd({
2159
+ }, f = fd({
2160
2160
  binding: l,
2161
2161
  candidate: m,
2162
2162
  isLoading: !1
@@ -2170,7 +2170,7 @@ var fd = (e) => e.origin.map((t) => t.name).join(" / "), gd = ({ property: e, ca
2170
2170
  value: l?.queryId ?? "",
2171
2171
  onChange: (v) => {
2172
2172
  const k = t.find((j) => j.id === v.target.value);
2173
- b(k ? sd(k) : void 0);
2173
+ b(k ? ld(k) : void 0);
2174
2174
  },
2175
2175
  children: [
2176
2176
  /* @__PURE__ */ i("option", {
@@ -2186,7 +2186,7 @@ var fd = (e) => e.origin.map((t) => t.name).join(" / "), gd = ({ property: e, ca
2186
2186
  children: [
2187
2187
  v.name,
2188
2188
  " - ",
2189
- fd(v)
2189
+ gd(v)
2190
2190
  ]
2191
2191
  }, v.id))
2192
2192
  ]
@@ -2199,8 +2199,8 @@ var fd = (e) => e.origin.map((t) => t.name).join(" / "), gd = ({ property: e, ca
2199
2199
  l && m && /* @__PURE__ */ h(se, { children: [m.parameters.length > 0 && /* @__PURE__ */ h("div", {
2200
2200
  className: "studio-editor-query__group",
2201
2201
  children: [/* @__PURE__ */ i("strong", { children: s.parameters }), m.parameters.map((v) => /* @__PURE__ */ h("label", { children: [/* @__PURE__ */ h("span", { children: [s.sourceFor(v.name), v.required ? " *" : ""] }), /* @__PURE__ */ h("select", {
2202
- value: pd(l, v),
2203
- onChange: (k) => b(cd(l, v.name, k.target.value)),
2202
+ value: md(l, v),
2203
+ onChange: (k) => b(dd(l, v.name, k.target.value)),
2204
2204
  children: [/* @__PURE__ */ i("option", {
2205
2205
  value: "",
2206
2206
  children: s.noSource
@@ -2215,8 +2215,8 @@ var fd = (e) => e.origin.map((t) => t.name).join(" / "), gd = ({ property: e, ca
2215
2215
  className: "studio-editor-query__column",
2216
2216
  children: [/* @__PURE__ */ i("input", {
2217
2217
  type: "checkbox",
2218
- checked: md(l, v),
2219
- onChange: (k) => b(k.target.checked ? dd(l, v.name) : ud(l, v.name))
2218
+ checked: hd(l, v),
2219
+ onChange: (k) => b(k.target.checked ? ud(l, v.name) : pd(l, v.name))
2220
2220
  }), /* @__PURE__ */ i("span", { children: s.showColumn(v.name) })]
2221
2221
  }, v.name))]
2222
2222
  })] }),
@@ -2224,16 +2224,16 @@ var fd = (e) => e.origin.map((t) => t.name).join(" / "), gd = ({ property: e, ca
2224
2224
  className: "studio-editor-query__preview",
2225
2225
  role: "status",
2226
2226
  "data-state": f,
2227
- children: vd(f, s.preview)
2227
+ children: bd(f, s.preview)
2228
2228
  }),
2229
- /* @__PURE__ */ i(Aa, {
2229
+ /* @__PURE__ */ i(La, {
2230
2230
  diagnostics: g,
2231
2231
  label: o.properties.diagnostics
2232
2232
  })
2233
2233
  ]
2234
2234
  });
2235
2235
  };
2236
- function vd(e, t) {
2236
+ function bd(e, t) {
2237
2237
  switch (e) {
2238
2238
  case re.NoQuery:
2239
2239
  return t.noQuery;
@@ -2249,8 +2249,8 @@ function vd(e, t) {
2249
2249
  return "";
2250
2250
  }
2251
2251
  }
2252
- var bd = ({ outlets: e, disabled: t, strings: n, onChange: o }) => {
2253
- const a = (u, c) => o(e.map((l, m) => m === u ? yd(c) : l)), r = (u) => o(e.filter((c, l) => l !== u)), s = (u, c) => o(wd(e, u, c)), d = () => o([...e, { name: Cd(e, n.newOutletName) }]);
2252
+ var yd = ({ outlets: e, disabled: t, strings: n, onChange: o }) => {
2253
+ const a = (u, c) => o(e.map((l, m) => m === u ? wd(c) : l)), r = (u) => o(e.filter((c, l) => l !== u)), s = (u, c) => o(Cd(e, u, c)), d = () => o([...e, { name: Sd(e, n.newOutletName) }]);
2254
2254
  return /* @__PURE__ */ h("section", {
2255
2255
  className: "studio-editor-outlets",
2256
2256
  children: [
@@ -2307,17 +2307,17 @@ var bd = ({ outlets: e, disabled: t, strings: n, onChange: o }) => {
2307
2307
  ]
2308
2308
  });
2309
2309
  };
2310
- function yd(e) {
2310
+ function wd(e) {
2311
2311
  return {
2312
2312
  name: e.name,
2313
2313
  ...e.description ? { description: e.description } : {}
2314
2314
  };
2315
2315
  }
2316
- function wd(e, t, n) {
2316
+ function Cd(e, t, n) {
2317
2317
  const o = [...e], [a] = o.splice(t, 1);
2318
2318
  return a && o.splice(n, 0, a), o;
2319
2319
  }
2320
- function Cd(e, t) {
2320
+ function Sd(e, t) {
2321
2321
  const n = new Set(e.map((o) => o.name));
2322
2322
  if (!n.has(t)) return t;
2323
2323
  for (let o = 2; ; o++) {
@@ -2328,7 +2328,7 @@ function Cd(e, t) {
2328
2328
  var xt = /* @__PURE__ */ (function(e) {
2329
2329
  return e.OutOfScope = "outOfScope", e.ShellOutsideApplication = "shellOutsideApplication", e;
2330
2330
  })({});
2331
- function Sd(e, t, n) {
2331
+ function kd(e, t, n) {
2332
2332
  const o = n.trim().toLocaleLowerCase(), a = /* @__PURE__ */ new Map();
2333
2333
  for (const s of e) for (const d of s.screenTemplates ?? []) a.set(d.name, {
2334
2334
  template: d,
@@ -2338,26 +2338,26 @@ function Sd(e, t, n) {
2338
2338
  });
2339
2339
  const r = /* @__PURE__ */ new Map();
2340
2340
  for (const s of a.values()) {
2341
- if (o && !Nd(s, o)) continue;
2341
+ if (o && !Pd(s, o)) continue;
2342
2342
  const d = s.template.metadata?.category ?? "";
2343
2343
  r.set(d, [...r.get(d) ?? [], s]);
2344
2344
  }
2345
2345
  return [...r.entries()].map(([s, d]) => ({
2346
2346
  name: s,
2347
2347
  entries: d.sort((u, c) => u.label.localeCompare(c.label))
2348
- })).sort(Pd);
2348
+ })).sort(Id);
2349
2349
  }
2350
- function kd(e, t) {
2350
+ function Nd(e, t) {
2351
2351
  if (!t) return;
2352
- if (e.metadata?.type === "ApplicationShell" && t !== Xo.Application) return xt.ShellOutsideApplication;
2352
+ if (e.metadata?.type === "ApplicationShell" && t !== ea.Application) return xt.ShellOutsideApplication;
2353
2353
  const n = e.metadata?.scopes ?? [];
2354
2354
  if (n.length > 0 && !n.includes(t)) return xt.OutOfScope;
2355
2355
  }
2356
2356
  function Td(e, t) {
2357
- const n = kd(e, t);
2357
+ const n = Nd(e, t);
2358
2358
  return n ? { inapplicable: n } : {};
2359
2359
  }
2360
- function Nd(e, t) {
2360
+ function Pd(e, t) {
2361
2361
  const n = e.template.metadata;
2362
2362
  return [
2363
2363
  e.template.name,
@@ -2368,11 +2368,11 @@ function Nd(e, t) {
2368
2368
  n?.type
2369
2369
  ].some((o) => o?.toLocaleLowerCase().includes(t));
2370
2370
  }
2371
- function Pd(e, t) {
2371
+ function Id(e, t) {
2372
2372
  return e.name === "" ? t.name === "" ? 0 : 1 : t.name === "" ? -1 : e.name.localeCompare(t.name);
2373
2373
  }
2374
- var Id = ({ packages: e, scope: t, selected: n, disabled: o, strings: a, onSelect: r }) => {
2375
- const [s, d] = A(""), u = Qo(), c = $(() => Sd(e, t, s), [
2374
+ var Rd = ({ packages: e, scope: t, selected: n, disabled: o, strings: a, onSelect: r }) => {
2375
+ const [s, d] = A(""), u = Yo(), c = $(() => kd(e, t, s), [
2376
2376
  e,
2377
2377
  t,
2378
2378
  s
@@ -2441,7 +2441,7 @@ var Id = ({ packages: e, scope: t, selected: n, disabled: o, strings: a, onSelec
2441
2441
  }, m.name))
2442
2442
  ]
2443
2443
  });
2444
- }, Rd = ({ controller: e, environment: t, strings: n, disabled: o, authoringTemplate: a }) => {
2444
+ }, tn = ({ controller: e, environment: t, strings: n, disabled: o, authoringTemplate: a }) => {
2445
2445
  const r = n.properties.templates;
2446
2446
  if (a) {
2447
2447
  const d = e.document.screenTemplates.find((c) => c.name === a);
@@ -2454,7 +2454,7 @@ var Id = ({ packages: e, scope: t, selected: n, disabled: o, strings: a, onSelec
2454
2454
  /* @__PURE__ */ h("label", { children: [/* @__PURE__ */ i("span", { children: r.category }), /* @__PURE__ */ i("input", {
2455
2455
  value: u.category ?? "",
2456
2456
  disabled: o,
2457
- onChange: (c) => e.setScreenTemplateMetadata(a, Ro({
2457
+ onChange: (c) => e.setScreenTemplateMetadata(a, Do({
2458
2458
  ...u,
2459
2459
  category: c.target.value || void 0
2460
2460
  }), r.category)
@@ -2462,19 +2462,19 @@ var Id = ({ packages: e, scope: t, selected: n, disabled: o, strings: a, onSelec
2462
2462
  /* @__PURE__ */ h("label", { children: [/* @__PURE__ */ i("span", { children: r.scope }), /* @__PURE__ */ h("select", {
2463
2463
  value: u.scopes?.[0] ?? "",
2464
2464
  disabled: o,
2465
- onChange: (c) => e.setScreenTemplateMetadata(a, Ro({
2465
+ onChange: (c) => e.setScreenTemplateMetadata(a, Do({
2466
2466
  ...u,
2467
2467
  scopes: c.target.value ? [c.target.value] : void 0
2468
2468
  }), r.scope),
2469
2469
  children: [/* @__PURE__ */ i("option", {
2470
2470
  value: "",
2471
2471
  children: r.anyScope
2472
- }), Object.values(Xo).map((c) => /* @__PURE__ */ i("option", {
2472
+ }), Object.values(ea).map((c) => /* @__PURE__ */ i("option", {
2473
2473
  value: c,
2474
2474
  children: c
2475
2475
  }, c))]
2476
2476
  })] }),
2477
- /* @__PURE__ */ i(bd, {
2477
+ /* @__PURE__ */ i(yd, {
2478
2478
  outlets: d.outlets ?? [],
2479
2479
  disabled: o,
2480
2480
  strings: n.properties.outlets,
@@ -2486,7 +2486,7 @@ var Id = ({ packages: e, scope: t, selected: n, disabled: o, strings: a, onSelec
2486
2486
  const s = e.document.screens.find((d) => d.name === ge);
2487
2487
  return s ? /* @__PURE__ */ h("section", {
2488
2488
  className: "studio-editor-properties__templates",
2489
- children: [/* @__PURE__ */ i("strong", { children: r.label }), /* @__PURE__ */ i(Id, {
2489
+ children: [/* @__PURE__ */ i("strong", { children: r.label }), /* @__PURE__ */ i(Rd, {
2490
2490
  packages: t.runtime.bundles,
2491
2491
  scope: t.templateScope,
2492
2492
  selected: s.screenTemplate,
@@ -2496,7 +2496,7 @@ var Id = ({ packages: e, scope: t, selected: n, disabled: o, strings: a, onSelec
2496
2496
  })]
2497
2497
  }) : null;
2498
2498
  };
2499
- function Ro(e) {
2499
+ function Do(e) {
2500
2500
  const t = Object.fromEntries(Object.entries(e).filter(([, n]) => n !== void 0 && n !== ""));
2501
2501
  return Object.keys(t).length > 0 ? t : void 0;
2502
2502
  }
@@ -2644,7 +2644,7 @@ function Ld(e, t, n) {
2644
2644
  };
2645
2645
  }
2646
2646
  var Ed = ({ inspection: e, controller: t, strings: n, disabled: o }) => {
2647
- const a = n.properties, [r, s] = A(), d = to(t.context.catalog, e.typeId), u = d?.capabilities.convertibleTo ?? [];
2647
+ const a = n.properties, [r, s] = A(), d = no(t.context.catalog, e.typeId), u = d?.capabilities.convertibleTo ?? [];
2648
2648
  if (!d || u.length === 0) return null;
2649
2649
  const c = (l) => {
2650
2650
  const m = t.tryApply(l, a.changeLayout), g = Ld(l, m.applied, m.diagnostics);
@@ -2664,7 +2664,7 @@ var Ed = ({ inspection: e, controller: t, strings: n, disabled: o }) => {
2664
2664
  children: d.label
2665
2665
  }), u.map((l) => /* @__PURE__ */ i("option", {
2666
2666
  value: l,
2667
- children: to(t.context.catalog, l)?.label ?? l
2667
+ children: no(t.context.catalog, l)?.label ?? l
2668
2668
  }, l))]
2669
2669
  })] }), r && /* @__PURE__ */ h("div", {
2670
2670
  className: "studio-editor-properties__confirm",
@@ -2736,9 +2736,9 @@ var jd = (e, t, n, o) => e.exposures.some((a) => a.owner === t && a.properties.s
2736
2736
  }) })]
2737
2737
  });
2738
2738
  };
2739
- function Ba(e) {
2739
+ function Ua(e) {
2740
2740
  if (e !== void 0)
2741
- return e.filter((t) => typeof t.value == "string").map((t) => xr(t.value)).filter((t) => t !== void 0);
2741
+ return e.filter((t) => typeof t.value == "string").map((t) => Fr(t.value)).filter((t) => t !== void 0);
2742
2742
  }
2743
2743
  var Wd = /* @__PURE__ */ new Set([
2744
2744
  ve.MissingIconLibrary,
@@ -2747,17 +2747,17 @@ var Wd = /* @__PURE__ */ new Set([
2747
2747
  ve.IncompatibleIconLibrary,
2748
2748
  ve.IconCatalogUnavailable,
2749
2749
  ve.IconNotVerified
2750
- ]), Ua = (e) => Wd.has(e.code), zd = (e) => e.code === ve.IconNotVerified;
2751
- function ja(e, t, n) {
2752
- const o = e.filter((a) => Ua(a) && !zd(a) && a.path === t && a.itemId === n);
2750
+ ]), ja = (e) => Wd.has(e.code), zd = (e) => e.code === ve.IconNotVerified;
2751
+ function Va(e, t, n) {
2752
+ const o = e.filter((a) => ja(a) && !zd(a) && a.path === t && a.itemId === n);
2753
2753
  return (o.find((a) => a.severity === Tr.Error) ?? o[0])?.message;
2754
2754
  }
2755
- var Gd = (e) => e.filter((t) => !Ua(t));
2755
+ var Gd = (e) => e.filter((t) => !ja(t));
2756
2756
  function Hd(e, t) {
2757
2757
  const n = {};
2758
2758
  for (const o of e) {
2759
2759
  if (o.itemId === void 0) continue;
2760
- const a = ja(e, t, o.itemId);
2760
+ const a = Va(e, t, o.itemId);
2761
2761
  a && (n[o.itemId] = { icon: a });
2762
2762
  }
2763
2763
  return n;
@@ -2768,7 +2768,7 @@ var Jd = ({ properties: e, controller: t, catalog: n, adapters: o, diagnostics:
2768
2768
  return /* @__PURE__ */ i("section", {
2769
2769
  className: "studio-editor-properties__icons",
2770
2770
  children: e.map((d) => {
2771
- const { path: u, label: c } = d.descriptor, l = Or(d.effectiveValue) ? d.effectiveValue : void 0, m = `studio-editor-icon-${u}`;
2771
+ const { path: u, label: c } = d.descriptor, l = xr(d.effectiveValue) ? d.effectiveValue : void 0, m = `studio-editor-icon-${u}`;
2772
2772
  return /* @__PURE__ */ h("div", {
2773
2773
  className: "studio-editor-properties__icon",
2774
2774
  children: [
@@ -2777,14 +2777,14 @@ var Jd = ({ properties: e, controller: t, catalog: n, adapters: o, diagnostics:
2777
2777
  className: "studio-editor-properties__icon-label",
2778
2778
  children: c
2779
2779
  }),
2780
- /* @__PURE__ */ i(Ma, {
2780
+ /* @__PURE__ */ i(_a, {
2781
2781
  value: l,
2782
2782
  onChange: (g) => t.setProperty(d, g),
2783
2783
  catalog: n,
2784
2784
  adapters: o,
2785
- allowed: Ba(d.descriptor.choices),
2785
+ allowed: Ua(d.descriptor.choices),
2786
2786
  readOnly: !d.editable,
2787
- validationMessage: ja(a, u),
2787
+ validationMessage: Va(a, u),
2788
2788
  strings: s.icon,
2789
2789
  pickerLabels: s.iconPickerLabels,
2790
2790
  "aria-labelledby": m
@@ -2797,7 +2797,7 @@ var Jd = ({ properties: e, controller: t, catalog: n, adapters: o, diagnostics:
2797
2797
  }, u);
2798
2798
  })
2799
2799
  });
2800
- }, Va = {
2800
+ }, qa = {
2801
2801
  placeholder: 'Empty means not set. Type JSON, such as {"a": 1}, [1, 2] or null.',
2802
2802
  problems: {
2803
2803
  required: "This setting needs a value.",
@@ -2822,7 +2822,7 @@ function Kd(e, t) {
2822
2822
  return t.problems.outOfRange(e.detail);
2823
2823
  }
2824
2824
  }
2825
- var qa = (e) => e === void 0 ? "" : JSON.stringify(e, null, 2) ?? "", Do = /-?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?/y;
2825
+ var Wa = (e) => e === void 0 ? "" : JSON.stringify(e, null, 2) ?? "", Oo = /-?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?/y;
2826
2826
  function Qd(e) {
2827
2827
  const t = [];
2828
2828
  let n = 0;
@@ -2834,8 +2834,8 @@ function Qd(e) {
2834
2834
  continue;
2835
2835
  }
2836
2836
  if (o === "-" || o >= "0" && o <= "9") {
2837
- Do.lastIndex = n;
2838
- const a = Do.exec(e);
2837
+ Oo.lastIndex = n;
2838
+ const a = Oo.exec(e);
2839
2839
  if (a) {
2840
2840
  t.push(a[0]), n += a[0].length;
2841
2841
  continue;
@@ -2882,14 +2882,14 @@ function Ft(e, t) {
2882
2882
  const n = Object.keys(e), o = Object.keys(t);
2883
2883
  return n.length === o.length && n.every((a, r) => a === o[r] && Ft(e[a], t[a]));
2884
2884
  }
2885
- var qn = (e) => ({
2886
- text: qa(e),
2885
+ var Wn = (e) => ({
2886
+ text: Wa(e),
2887
2887
  base: e
2888
2888
  }), tu = (e, t) => ({
2889
2889
  ...e,
2890
2890
  text: t
2891
- }), nu = (e, t) => Ft(e.base, t) ? e : qn(t), Wa = (e) => qn(e.base);
2892
- function za(e, t) {
2891
+ }), nu = (e, t) => Ft(e.base, t) ? e : Wn(t), za = (e) => Wn(e.base);
2892
+ function Ga(e, t) {
2893
2893
  if (e.text.trim() === "")
2894
2894
  return t ? {
2895
2895
  kind: ae.Invalid,
@@ -2898,7 +2898,7 @@ function za(e, t) {
2898
2898
  detail: ""
2899
2899
  }
2900
2900
  } : e.base === void 0 ? { kind: ae.Unchanged } : { kind: ae.Unset };
2901
- if (e.text === qa(e.base)) return { kind: ae.Unchanged };
2901
+ if (e.text === Wa(e.base)) return { kind: ae.Unchanged };
2902
2902
  const n = eu(e.text);
2903
2903
  return n.problem ? {
2904
2904
  kind: ae.Invalid,
@@ -2915,19 +2915,19 @@ function za(e, t) {
2915
2915
  };
2916
2916
  }
2917
2917
  function ou(e, t) {
2918
- const n = za(e, t);
2918
+ const n = Ga(e, t);
2919
2919
  return {
2920
- state: n.kind === ae.Unchanged ? Wa(e) : e,
2920
+ state: n.kind === ae.Unchanged ? za(e) : e,
2921
2921
  outcome: n
2922
2922
  };
2923
2923
  }
2924
2924
  function au(e, t, n) {
2925
- const [o, a] = A(() => qn(e)), r = nu(o, e);
2925
+ const [o, a] = A(() => Wn(e)), r = nu(o, e);
2926
2926
  return r !== o && a(r), {
2927
2927
  text: r.text,
2928
- outcome: za(r, t),
2928
+ outcome: Ga(r, t),
2929
2929
  edit: (s) => a(tu(r, s)),
2930
- revert: () => a(Wa(r)),
2930
+ revert: () => a(za(r)),
2931
2931
  commit: () => {
2932
2932
  const s = ou(r, t);
2933
2933
  a(s.state), s.outcome.kind === ae.Set && n(s.outcome.value), s.outcome.kind === ae.Unset && n(void 0);
@@ -2935,7 +2935,7 @@ function au(e, t, n) {
2935
2935
  };
2936
2936
  }
2937
2937
  var ru = (e) => e.key === "Enter" && (e.ctrlKey || e.metaKey), iu = ({ label: e, description: t, value: n, onApply: o, readOnly: a = !1, reason: r, required: s = !1, strings: d, rows: u = 6 }) => {
2938
- const c = au(n, s, o), l = Qo(), m = c.outcome.kind === ae.Invalid ? Kd(c.outcome.problem, d) : void 0, g = [
2938
+ const c = au(n, s, o), l = Yo(), m = c.outcome.kind === ae.Invalid ? Kd(c.outcome.problem, d) : void 0, g = [
2939
2939
  t && `${l}-description`,
2940
2940
  m && `${l}-problem`,
2941
2941
  r && `${l}-reason`
@@ -2953,7 +2953,7 @@ var ru = (e) => e.key === "Enter" && (e.ctrlKey || e.metaKey), iu = ({ label: e,
2953
2953
  className: "studio-editor-json__description",
2954
2954
  children: t
2955
2955
  }),
2956
- /* @__PURE__ */ i(zr, {
2956
+ /* @__PURE__ */ i(Gr, {
2957
2957
  id: l,
2958
2958
  className: "studio-editor-json__text",
2959
2959
  value: c.text,
@@ -2982,7 +2982,7 @@ var ru = (e) => e.key === "Enter" && (e.ctrlKey || e.metaKey), iu = ({ label: e,
2982
2982
  })
2983
2983
  ]
2984
2984
  });
2985
- }, su = ({ properties: e, componentId: t, setProperty: n, strings: o = Va }) => e.length === 0 ? null : /* @__PURE__ */ i("section", {
2985
+ }, su = ({ properties: e, componentId: t, setProperty: n, strings: o = qa }) => e.length === 0 ? null : /* @__PURE__ */ i("section", {
2986
2986
  className: "studio-editor-json-properties",
2987
2987
  children: e.map((a) => /* @__PURE__ */ i(iu, {
2988
2988
  label: a.descriptor.label,
@@ -3115,19 +3115,19 @@ function uu(e) {
3115
3115
  }
3116
3116
  var z = /* @__PURE__ */ (function(e) {
3117
3117
  return e.None = "none", e.Navigate = "navigate", e.OpenDialog = "openDialog", e.ExecuteCommand = "executeCommand", e;
3118
- })({}), bn = "studio.toolbarButton.click", Ga = {
3118
+ })({}), yn = "studio.toolbarButton.click", Ha = {
3119
3119
  kind: z.None,
3120
3120
  target: ""
3121
3121
  };
3122
3122
  function pu(e) {
3123
- const t = e?.find((n) => n.name === bn)?.bindings.find((n) => fu(n.trigger))?.actions[0];
3124
- return t ? hu(t) : Ga;
3123
+ const t = e?.find((n) => n.name === yn)?.bindings.find((n) => fu(n.trigger))?.actions[0];
3124
+ return t ? hu(t) : Ha;
3125
3125
  }
3126
- function Oo(e, t) {
3127
- const n = (e ?? []).filter((r) => r.name !== bn), o = mu(t), a = o ? [...n, {
3128
- name: bn,
3126
+ function xo(e, t) {
3127
+ const n = (e ?? []).filter((r) => r.name !== yn), o = mu(t), a = o ? [...n, {
3128
+ name: yn,
3129
3129
  bindings: [{
3130
- trigger: { kind: Zo.Click },
3130
+ trigger: { kind: Xo.Click },
3131
3131
  actions: [o]
3132
3132
  }]
3133
3133
  }] : n;
@@ -3173,23 +3173,23 @@ function hu(e) {
3173
3173
  target: e.command
3174
3174
  };
3175
3175
  default:
3176
- return Ga;
3176
+ return Ha;
3177
3177
  }
3178
3178
  }
3179
3179
  function fu(e) {
3180
- return e?.kind === Zo.Click;
3180
+ return e?.kind === Xo.Click;
3181
3181
  }
3182
3182
  var gu = ({ behaviors: e, targets: t, destinations: n, slices: o, strings: a, disabled: r, onChange: s }) => {
3183
3183
  const d = pu(e), [u, c] = A(z.None), l = d.kind === z.None ? {
3184
3184
  kind: u,
3185
3185
  target: ""
3186
3186
  } : d, m = vu(l.kind, t, n, o), g = l.target !== "" && !m.some((p) => p.value === l.target), b = (p) => {
3187
- c(p), d.kind !== z.None && s(Oo(e, {
3187
+ c(p), d.kind !== z.None && s(xo(e, {
3188
3188
  kind: z.None,
3189
3189
  target: ""
3190
3190
  }));
3191
3191
  }, f = (p) => {
3192
- p === "" && d.kind === z.None || (p === "" && c(l.kind), s(Oo(e, {
3192
+ p === "" && d.kind === z.None || (p === "" && c(l.kind), s(xo(e, {
3193
3193
  kind: l.kind,
3194
3194
  target: p
3195
3195
  })));
@@ -3294,7 +3294,7 @@ function Cu(e) {
3294
3294
  return !1;
3295
3295
  }
3296
3296
  }
3297
- function Ha(e, t) {
3297
+ function Ja(e, t) {
3298
3298
  const n = e.runtime.bundles;
3299
3299
  return {
3300
3300
  screens: Je(e.destinations.map((o) => o.id)),
@@ -3310,11 +3310,11 @@ function Ha(e, t) {
3310
3310
  function Je(e) {
3311
3311
  return [...new Set(e.filter((t) => t.length > 0))].sort((t, n) => t.localeCompare(n));
3312
3312
  }
3313
- var Su = x.Json, ku = (e) => e === Su, Tu = (e) => ku(e.descriptor.valueType), Nu = "action", Wn = "presentation", zn = "arguments", ht = (e) => typeof e == "string" ? e : "";
3313
+ var Su = x.Json, ku = (e) => e === Su, Nu = (e) => ku(e.descriptor.valueType), Tu = "action", zn = "presentation", Gn = "arguments", ht = (e) => typeof e == "string" ? e : "";
3314
3314
  function Pu(e, t = "") {
3315
3315
  const n = ht(e?.command);
3316
3316
  if (n === "") return;
3317
- const o = Array.isArray(e?.arguments) ? e[zn] : [], a = Object.fromEntries(o.map((s) => [ht(s.name), ht(s.source)]).filter(([s]) => s !== "")), r = ht(e?.[Wn]);
3317
+ const o = Array.isArray(e?.arguments) ? e[Gn] : [], a = Object.fromEntries(o.map((s) => [ht(s.name), ht(s.source)]).filter(([s]) => s !== "")), r = ht(e?.[zn]);
3318
3318
  return {
3319
3319
  sliceId: n,
3320
3320
  sliceName: t,
@@ -3325,8 +3325,8 @@ function Pu(e, t = "") {
3325
3325
  function Iu(e) {
3326
3326
  return {
3327
3327
  command: e.sliceId,
3328
- [Wn]: e.presentation,
3329
- [zn]: Object.entries(e.inputs).filter(([, t]) => t.trim() !== "").map(([t, n]) => ({
3328
+ [zn]: e.presentation,
3329
+ [Gn]: Object.entries(e.inputs).filter(([, t]) => t.trim() !== "").map(([t, n]) => ({
3330
3330
  id: t,
3331
3331
  name: t,
3332
3332
  source: n.trim()
@@ -3342,25 +3342,57 @@ function Ru(e, t) {
3342
3342
  value: a
3343
3343
  }));
3344
3344
  }
3345
- var Du = (e) => e.descriptor.valueType === x.QueryReference, Ou = (e, t) => e.find((n) => n.component === t), xu = /* @__PURE__ */ new Set([zn]), Fu = (e) => e.descriptor.valueType === x.Collection && !!e.descriptor.item && !xu.has(e.descriptor.path), Mu = ({ controller: e, environment: t, strings: n, ownership: o, authoringTemplate: a }) => {
3346
- const { inspection: r, selectedId: s, selection: d } = e, u = n.properties, c = $(() => cc(t.availableSources), [t.availableSources]), l = $(() => dc(e.document, e.composition.roots, e.context, t.availableSources, t.queryCandidates), [
3345
+ var Du = (e) => e.descriptor.valueType === x.QueryReference, Ou = (e, t) => e.find((n) => n.component === t), xu = /* @__PURE__ */ new Set([Gn]), Fu = (e) => e.descriptor.valueType === x.Collection && !!e.descriptor.item && !xu.has(e.descriptor.path), Mu = ({ controller: e, environment: t, strings: n, ownership: o, authoringTemplate: a }) => {
3346
+ const { inspection: r, selectedId: s, selection: d } = e, u = n.properties, c = $(() => dc(t.availableSources), [t.availableSources]), l = $(() => uc(e.document, e.composition.roots, e.context, t.availableSources, t.queryCandidates), [
3347
3347
  e.document,
3348
3348
  e.composition.roots,
3349
3349
  e.context,
3350
3350
  t.availableSources,
3351
3351
  t.queryCandidates
3352
3352
  ]);
3353
- if (!s || !d || !r) return /* @__PURE__ */ i("p", {
3354
- className: "studio-editor-properties-empty",
3355
- children: n.noSelection
3356
- });
3357
- const m = Ll(e.composition.roots, s), g = Gl(r.properties, m, d.properties), b = kc(g, r.typeId), f = new Map(r.properties.map((y) => [y.descriptor.path, y])), p = r.properties.filter(Du), v = r.properties.filter($a), k = r.properties.filter(Fu), j = r.properties.filter((y) => y.descriptor.valueType === x.Icon), _ = r.properties.filter(Tu), q = [...r.diagnostics, ...e.diagnostics], { runtime: C } = t, M = r.typeId.endsWith("action"), D = r.typeId.endsWith("toolbarButton"), W = o !== void 0 && o !== "local", S = d.properties, I = Ou(e.context.catalog.components, r.typeId), L = (y) => {
3353
+ if (!s || !d || !r)
3354
+ return a ? /* @__PURE__ */ i("div", {
3355
+ className: "studio-editor-properties",
3356
+ children: /* @__PURE__ */ i(tn, {
3357
+ controller: e,
3358
+ environment: t,
3359
+ strings: n,
3360
+ disabled: !1,
3361
+ authoringTemplate: a
3362
+ })
3363
+ }) : /* @__PURE__ */ h("div", {
3364
+ className: "studio-editor-properties",
3365
+ children: [
3366
+ /* @__PURE__ */ i("header", {
3367
+ className: "studio-editor-properties__header",
3368
+ children: /* @__PURE__ */ i("strong", { children: u.screenLabel })
3369
+ }),
3370
+ /* @__PURE__ */ i(tn, {
3371
+ controller: e,
3372
+ environment: t,
3373
+ strings: n,
3374
+ disabled: !1
3375
+ }),
3376
+ /* @__PURE__ */ i(_d, {
3377
+ controller: e,
3378
+ strings: n,
3379
+ disabled: !1
3380
+ }),
3381
+ /* @__PURE__ */ i(Qc, {
3382
+ controller: e,
3383
+ slices: t.stateChangeSlices,
3384
+ strings: n,
3385
+ disabled: !1
3386
+ })
3387
+ ]
3388
+ });
3389
+ const m = El(e.composition.roots, s), g = Hl(r.properties, m, d.properties), b = Nc(g, r.typeId), f = new Map(r.properties.map((y) => [y.descriptor.path, y])), p = r.properties.filter(Du), v = r.properties.filter(Aa), k = r.properties.filter(Fu), j = r.properties.filter((y) => y.descriptor.valueType === x.Icon), _ = r.properties.filter(Nu), q = [...r.diagnostics, ...e.diagnostics], { runtime: C } = t, M = r.typeId.endsWith("action"), D = r.typeId.endsWith("toolbarButton"), W = o !== void 0 && o !== "local", S = d.properties, I = Ou(e.context.catalog.components, r.typeId), L = (y) => {
3358
3390
  const F = f.get(y.name);
3359
3391
  if (!F) return;
3360
3392
  if (F.descriptor.valueType !== x.Enum) return e.setProperty(F, y.value);
3361
- const Y = vc(F, y.value);
3393
+ const Y = bc(F, y.value);
3362
3394
  Y && e.setProperty(F, Y.value);
3363
- }, G = (y, F) => e.apply(gn(s, y, F), "Bind query");
3395
+ }, G = (y, F) => e.apply(vn(s, y, F), "Bind query");
3364
3396
  return /* @__PURE__ */ h("div", {
3365
3397
  className: "studio-editor-properties",
3366
3398
  children: [
@@ -3369,7 +3401,7 @@ var Du = (e) => e.descriptor.valueType === x.QueryReference, Ou = (e, t) => e.fi
3369
3401
  children: [
3370
3402
  /* @__PURE__ */ i("strong", { children: r.label }),
3371
3403
  /* @__PURE__ */ i("span", { children: r.typeId }),
3372
- o && /* @__PURE__ */ i(xa, {
3404
+ o && /* @__PURE__ */ i(Fa, {
3373
3405
  ownership: o,
3374
3406
  label: n.ownership[o]
3375
3407
  })
@@ -3379,7 +3411,7 @@ var Du = (e) => e.descriptor.valueType === x.QueryReference, Ou = (e, t) => e.fi
3379
3411
  className: "studio-editor-properties__hint",
3380
3412
  children: n.ownershipHint[o]
3381
3413
  }),
3382
- /* @__PURE__ */ i(Aa, {
3414
+ /* @__PURE__ */ i(La, {
3383
3415
  diagnostics: Gd(q),
3384
3416
  label: u.diagnostics
3385
3417
  }),
@@ -3389,31 +3421,20 @@ var Du = (e) => e.descriptor.valueType === x.QueryReference, Ou = (e, t) => e.fi
3389
3421
  strings: n,
3390
3422
  disabled: o !== void 0 && o !== "local"
3391
3423
  }),
3392
- /* @__PURE__ */ i(Rd, {
3424
+ a && /* @__PURE__ */ i(tn, {
3393
3425
  controller: e,
3394
3426
  environment: t,
3395
3427
  strings: n,
3396
3428
  disabled: o !== void 0 && o !== "local",
3397
3429
  authoringTemplate: a
3398
3430
  }),
3399
- /* @__PURE__ */ i(_d, {
3400
- controller: e,
3401
- strings: n,
3402
- disabled: o !== void 0 && o !== "local"
3403
- }),
3404
- /* @__PURE__ */ i(Kc, {
3405
- controller: e,
3406
- slices: t.stateChangeSlices,
3407
- strings: n,
3408
- disabled: o !== void 0 && o !== "local"
3409
- }),
3410
- I && st(d) && /* @__PURE__ */ h(se, { children: [/* @__PURE__ */ i(Mc, {
3431
+ I && st(d) && /* @__PURE__ */ h(se, { children: [/* @__PURE__ */ i(_c, {
3411
3432
  component: d,
3412
3433
  descriptor: I,
3413
3434
  controller: e,
3414
3435
  environment: t,
3415
3436
  strings: n
3416
- }), /* @__PURE__ */ i(xc, {
3437
+ }), /* @__PURE__ */ i(Fc, {
3417
3438
  component: d,
3418
3439
  descriptor: I,
3419
3440
  controller: e,
@@ -3421,7 +3442,7 @@ var Du = (e) => e.descriptor.valueType === x.QueryReference, Ou = (e, t) => e.fi
3421
3442
  strings: n,
3422
3443
  disabled: o !== void 0 && o !== "local"
3423
3444
  })] }),
3424
- b.groups.length > 0 ? /* @__PURE__ */ i(Hr, {
3445
+ b.groups.length > 0 ? /* @__PURE__ */ i(Jr, {
3425
3446
  groups: b.groups,
3426
3447
  values: b.values,
3427
3448
  onChange: L,
@@ -3457,14 +3478,14 @@ var Du = (e) => e.descriptor.valueType === x.QueryReference, Ou = (e, t) => e.fi
3457
3478
  diagnostics: q
3458
3479
  }
3459
3480
  }, y.descriptor.path)),
3460
- v.map((y) => /* @__PURE__ */ i(Xc, {
3481
+ v.map((y) => /* @__PURE__ */ i(ed, {
3461
3482
  property: y,
3462
3483
  sources: l,
3463
3484
  strings: n,
3464
3485
  disabled: !y.editable,
3465
- onChange: (F) => e.apply(gn(s, y, F), "Bind value")
3486
+ onChange: (F) => e.apply(vn(s, y, F), "Bind value")
3466
3487
  }, `${s}:${y.descriptor.path}:binding`)),
3467
- p.map((y) => /* @__PURE__ */ i(gd, {
3488
+ p.map((y) => /* @__PURE__ */ i(vd, {
3468
3489
  property: y,
3469
3490
  candidates: t.queryCandidates,
3470
3491
  scope: c,
@@ -3472,7 +3493,7 @@ var Du = (e) => e.descriptor.valueType === x.QueryReference, Ou = (e, t) => e.fi
3472
3493
  disabled: !y.editable,
3473
3494
  onChange: (F) => G(y, F)
3474
3495
  }, `${s}:${y.descriptor.path}`)),
3475
- M && /* @__PURE__ */ i(Rc, {
3496
+ M && /* @__PURE__ */ i(Dc, {
3476
3497
  action: Pu(S, t.stateChangeSlices.find((y) => y.id === S?.command)?.name ?? ""),
3477
3498
  slices: t.stateChangeSlices,
3478
3499
  sources: Object.keys(t.availableSources),
@@ -3483,7 +3504,7 @@ var Du = (e) => e.descriptor.valueType === x.QueryReference, Ou = (e, t) => e.fi
3483
3504
  }),
3484
3505
  D && /* @__PURE__ */ i(gu, {
3485
3506
  behaviors: d.behaviors,
3486
- targets: Ha(t, e.document),
3507
+ targets: Ja(t, e.document),
3487
3508
  destinations: t.destinations,
3488
3509
  slices: t.stateChangeSlices,
3489
3510
  strings: n.properties.toolbarButton,
@@ -3500,21 +3521,21 @@ var Du = (e) => e.descriptor.valueType === x.QueryReference, Ou = (e, t) => e.fi
3500
3521
  ]
3501
3522
  });
3502
3523
  }, _u = ({ property: e, componentId: t, controller: n, strings: o, destinations: a, environment: r, icons: s }) => {
3503
- const { items: d, fixed: u } = oc(e), c = Hd(s.diagnostics, e.descriptor.path), l = ac(e), m = l.fields.destination !== "readonly" || e.editable, g = [...u, ...d].filter((v) => v.destination !== void 0 || v.destinationReference !== void 0 || m), b = Ha(r, n.document), f = $u(b, e), p = (v, k) => {
3524
+ const { items: d, fixed: u } = ac(e), c = Hd(s.diagnostics, e.descriptor.path), l = rc(e), m = l.fields.destination !== "readonly" || e.editable, g = [...u, ...d].filter((v) => v.destination !== void 0 || v.destinationReference !== void 0 || m), b = Ja(r, n.document), f = $u(b, e), p = (v, k) => {
3504
3525
  n.setCollectionItemDestination(t, e.descriptor.path, v.id, k, o.properties.destination.label);
3505
3526
  };
3506
3527
  return /* @__PURE__ */ h("section", {
3507
3528
  className: "studio-editor-properties__collection",
3508
- children: [/* @__PURE__ */ i(Gr, {
3529
+ children: [/* @__PURE__ */ i(Hr, {
3509
3530
  items: d,
3510
3531
  fixedItems: u,
3511
3532
  capabilities: l,
3512
3533
  destinations: a,
3513
3534
  validation: c,
3514
- renderIconField: (v) => /* @__PURE__ */ i(Ma, {
3535
+ renderIconField: (v) => /* @__PURE__ */ i(_a, {
3515
3536
  value: v.value,
3516
3537
  onChange: v.onChange,
3517
- allowed: Ba(e.descriptor.item?.properties.find((k) => k.path === "icon")?.choices),
3538
+ allowed: Ua(e.descriptor.item?.properties.find((k) => k.path === "icon")?.choices),
3518
3539
  catalog: s.catalog,
3519
3540
  adapters: s.adapters,
3520
3541
  readOnly: v.readOnly,
@@ -3531,7 +3552,7 @@ var Du = (e) => e.descriptor.valueType === x.QueryReference, Ou = (e, t) => e.fi
3531
3552
  label: "",
3532
3553
  values: {}
3533
3554
  }),
3534
- onChange: (v) => n.applyAll(rc(t, e, v), o.properties.itemsLabel)
3555
+ onChange: (v) => n.applyAll(ic(t, e, v), o.properties.itemsLabel)
3535
3556
  }), g.length > 0 && /* @__PURE__ */ h("div", {
3536
3557
  className: "studio-editor-destinations",
3537
3558
  children: [/* @__PURE__ */ i("strong", { children: o.properties.destination.label }), g.map((v) => /* @__PURE__ */ i(lu, {
@@ -3550,19 +3571,19 @@ var Du = (e) => e.descriptor.valueType === x.QueryReference, Ou = (e, t) => e.fi
3550
3571
  });
3551
3572
  };
3552
3573
  function $u(e, t) {
3553
- const n = (t.items ?? []).map((a) => Fo(a.values.destination) ? a.values.destination.outlet : void 0).filter(xo), o = (t.items ?? []).map((a) => Fo(a.values.destination) ? a.values.destination.dialog : void 0).filter(xo);
3574
+ const n = (t.items ?? []).map((a) => Mo(a.values.destination) ? a.values.destination.outlet : void 0).filter(Fo), o = (t.items ?? []).map((a) => Mo(a.values.destination) ? a.values.destination.dialog : void 0).filter(Fo);
3554
3575
  return {
3555
3576
  outlets: Je([...e.outlets, ...n]),
3556
3577
  dialogTemplates: Je([...e.dialogTemplates, ...o])
3557
3578
  };
3558
3579
  }
3559
- function xo(e) {
3580
+ function Fo(e) {
3560
3581
  return typeof e == "string";
3561
3582
  }
3562
- function Fo(e) {
3583
+ function Mo(e) {
3563
3584
  return !!e && typeof e == "object" && !Array.isArray(e);
3564
3585
  }
3565
- var Ja = ({ strings: e, controller: t, environment: n, authoringTemplate: o, structure: a, onClose: r }) => {
3586
+ var Ka = ({ strings: e, controller: t, environment: n, authoringTemplate: o, structure: a, onClose: r }) => {
3566
3587
  const [s, d] = A(Zt.Properties), u = t.selectedId ? t.ownershipOf(t.selectedId) : void 0;
3567
3588
  return /* @__PURE__ */ h("section", {
3568
3589
  className: "studio-editor-inspector",
@@ -3580,7 +3601,7 @@ var Ja = ({ strings: e, controller: t, environment: n, authoringTemplate: o, str
3580
3601
  onClick: r,
3581
3602
  children: "×"
3582
3603
  })]
3583
- }), /* @__PURE__ */ i(Wr, {
3604
+ }), /* @__PURE__ */ i(zr, {
3584
3605
  className: "studio-editor-inspector__tabs",
3585
3606
  "aria-label": e.inspectorTitle,
3586
3607
  value: s,
@@ -3605,25 +3626,25 @@ var Ja = ({ strings: e, controller: t, environment: n, authoringTemplate: o, str
3605
3626
  }, Lt = (e) => {
3606
3627
  const t = e;
3607
3628
  return !!t && (t.kind === "layout" && typeof t.item == "string" || t.kind === "component" && typeof t.componentName == "string" && typeof t.package == "string");
3608
- }, Gn = "application/x-studio-palette-item", Ka = "application/x-studio-element";
3609
- function Qa(e, t, n) {
3629
+ }, Hn = "application/x-studio-palette-item", Qa = "application/x-studio-element";
3630
+ function Ya(e, t, n) {
3610
3631
  const o = document.createElement("div");
3611
3632
  o.className = "studio-drag-preview", n && o.append(n.cloneNode(!0)), o.append(Object.assign(document.createElement("span"), { textContent: t })), document.body.append(o), e.dataTransfer.setDragImage(o, 14, 14), setTimeout(() => o.remove(), 0);
3612
3633
  }
3613
3634
  var Au = (e, t, n) => {
3614
- e.dataTransfer.setData(Gn, JSON.stringify(t)), e.dataTransfer.effectAllowed = "copyMove", n && Qa(e, n, e.currentTarget instanceof Element ? e.currentTarget.querySelector("svg") : null);
3635
+ e.dataTransfer.setData(Hn, JSON.stringify(t)), e.dataTransfer.effectAllowed = "copyMove", n && Ya(e, n, e.currentTarget instanceof Element ? e.currentTarget.querySelector("svg") : null);
3615
3636
  }, Lu = (e, t, n) => {
3616
- e.dataTransfer.setData(Ka, t), e.dataTransfer.effectAllowed = "move", Qa(e, n);
3617
- }, Eu = (e) => e.dataTransfer.getData("application/x-studio-element") || void 0, yn = (e) => e.dataTransfer.types.includes(Ka), ft = (e) => Uu(e) || yn(e);
3637
+ e.dataTransfer.setData(Qa, t), e.dataTransfer.effectAllowed = "move", Ya(e, n);
3638
+ }, Eu = (e) => e.dataTransfer.getData("application/x-studio-element") || void 0, wn = (e) => e.dataTransfer.types.includes(Qa), ft = (e) => Uu(e) || wn(e);
3618
3639
  function Bu(e) {
3619
3640
  try {
3620
- const t = JSON.parse(e.dataTransfer.getData(Gn));
3641
+ const t = JSON.parse(e.dataTransfer.getData(Hn));
3621
3642
  return Lt(t) ? t : void 0;
3622
3643
  } catch {
3623
3644
  return;
3624
3645
  }
3625
3646
  }
3626
- var Uu = (e) => e.dataTransfer.types.includes(Gn), Ya = ({ drawers: e, closeLabel: t, onActivate: n }) => /* @__PURE__ */ i(se, { children: e.map((o) => /* @__PURE__ */ i(ei, {
3647
+ var Uu = (e) => e.dataTransfer.types.includes(Hn), Za = ({ drawers: e, closeLabel: t, onActivate: n }) => /* @__PURE__ */ i(se, { children: e.map((o) => /* @__PURE__ */ i(ti, {
3627
3648
  className: "studio-palette-folder",
3628
3649
  icon: o.icon,
3629
3650
  title: o.title,
@@ -3638,40 +3659,40 @@ var Uu = (e) => e.dataTransfer.types.includes(Gn), Ya = ({ drawers: e, closeLabe
3638
3659
  return e.Panel = "Panel", e.StackPanel = "StackPanel", e.WrapPanel = "WrapPanel", e.Grid = "Grid", e.Canvas = "Canvas", e;
3639
3660
  })({}), ju = [
3640
3661
  {
3641
- item: N.Stack,
3662
+ item: T.Stack,
3642
3663
  type: "Stack",
3643
3664
  panel: Ee.StackPanel,
3644
3665
  flowKind: Ut.Column,
3645
3666
  arrangement: V.Column
3646
3667
  },
3647
3668
  {
3648
- item: N.Row,
3669
+ item: T.Row,
3649
3670
  type: "Row",
3650
3671
  panel: Ee.StackPanel,
3651
3672
  flowKind: Ut.Row,
3652
3673
  arrangement: V.Row
3653
3674
  },
3654
3675
  {
3655
- item: N.Grid,
3676
+ item: T.Grid,
3656
3677
  type: "Grid",
3657
3678
  panel: Ee.Grid,
3658
3679
  flowKind: Ut.Grid,
3659
3680
  arrangement: V.Grid
3660
3681
  },
3661
3682
  {
3662
- item: N.Container,
3683
+ item: T.Container,
3663
3684
  type: "Container",
3664
3685
  panel: Ee.Panel,
3665
3686
  arrangement: V.Grouping
3666
3687
  },
3667
3688
  {
3668
- item: N.Wrap,
3689
+ item: T.Wrap,
3669
3690
  type: "Wrap",
3670
3691
  panel: Ee.WrapPanel,
3671
3692
  arrangement: V.Wrap
3672
3693
  },
3673
3694
  {
3674
- item: N.Canvas,
3695
+ item: T.Canvas,
3675
3696
  type: "Canvas",
3676
3697
  panel: Ee.Canvas,
3677
3698
  arrangement: V.Freeform
@@ -3680,8 +3701,8 @@ var Uu = (e) => e.dataTransfer.types.includes(Gn), Ya = ({ drawers: e, closeLabe
3680
3701
  "column",
3681
3702
  "screenShell",
3682
3703
  "shell"
3683
- ]), Za = (e) => e.replace(/([A-Z])/g, " $1").replace(/^./, (t) => t.toUpperCase()).trim(), qu = (e) => e.split(".").map(Za).join(" ");
3684
- function Xa(e, t, n, o, a = {}) {
3704
+ ]), Xa = (e) => e.replace(/([A-Z])/g, " $1").replace(/^./, (t) => t.toUpperCase()).trim(), qu = (e) => e.split(".").map(Xa).join(" ");
3705
+ function er(e, t, n, o, a = {}) {
3685
3706
  return [{
3686
3707
  id: "layout",
3687
3708
  title: e,
@@ -3701,7 +3722,7 @@ function Xa(e, t, n, o, a = {}) {
3701
3722
  icon: n.drawer.package(r.package),
3702
3723
  items: r.components.filter((s) => !Vu.has(s)).map((s) => ({
3703
3724
  id: `component:${r.package}:${s}`,
3704
- title: Za(s),
3725
+ title: Xa(s),
3705
3726
  icon: n.component(s),
3706
3727
  payload: {
3707
3728
  kind: "component",
@@ -3711,18 +3732,18 @@ function Xa(e, t, n, o, a = {}) {
3711
3732
  }))
3712
3733
  })).filter((r) => r.items.length > 0)];
3713
3734
  }
3714
- var Wu = "core", zu = /* @__PURE__ */ new Set([Nu]);
3715
- function Hn(e, t) {
3735
+ var Wu = "core", zu = /* @__PURE__ */ new Set([Tu]);
3736
+ function Jn(e, t) {
3716
3737
  return zu.has(e) && t === "core" ? `${Wu}:${e}` : e;
3717
3738
  }
3718
- function Tt(e) {
3719
- return e ? Fn(e) ? Le.grid : Mn(e) ? e.orientation === Qe.Horizontal ? Le.flexRow : Le.flexColumn : Fe(e) ? Le.absolute : Le.flexColumn : Le.absolute;
3739
+ function Nt(e) {
3740
+ return e ? Mn(e) ? Le.grid : _n(e) ? e.orientation === Qe.Horizontal ? Le.flexRow : Le.flexColumn : Fe(e) ? Le.absolute : Le.flexColumn : Le.absolute;
3720
3741
  }
3721
- function er(e, t) {
3742
+ function tr(e, t) {
3722
3743
  return {
3723
3744
  id: e,
3724
3745
  name: t,
3725
- visibility: Rn.Visible,
3746
+ visibility: Dn.Visible,
3726
3747
  isEnabled: !0,
3727
3748
  opacity: 1,
3728
3749
  size: {},
@@ -3735,53 +3756,53 @@ function er(e, t) {
3735
3756
  right: 0,
3736
3757
  bottom: 0
3737
3758
  },
3738
- horizontalAlignment: Pn.Stretch,
3739
- verticalAlignment: In.Stretch,
3759
+ horizontalAlignment: In.Stretch,
3760
+ verticalAlignment: Rn.Stretch,
3740
3761
  properties: {}
3741
3762
  };
3742
3763
  }
3743
- var Mo = {
3744
- unitType: Pr.Star,
3764
+ var _o = {
3765
+ unitType: Ir.Star,
3745
3766
  value: 1
3746
3767
  };
3747
3768
  function Mt(e, t, n, o = [], a = {}) {
3748
3769
  const r = Gu(e, a);
3749
3770
  return {
3750
- ...er(t, n),
3771
+ ...tr(t, n),
3751
3772
  children: o,
3752
3773
  ...r
3753
3774
  };
3754
3775
  }
3755
3776
  function Gu(e, t) {
3756
3777
  switch (e) {
3757
- case N.Stack:
3778
+ case T.Stack:
3758
3779
  return {
3759
3780
  orientation: Qe.Vertical,
3760
3781
  spacing: 8
3761
3782
  };
3762
- case N.Row:
3783
+ case T.Row:
3763
3784
  return {
3764
3785
  orientation: Qe.Horizontal,
3765
3786
  spacing: 8
3766
3787
  };
3767
- case N.Grid:
3788
+ case T.Grid:
3768
3789
  return {
3769
3790
  rows: [],
3770
3791
  columns: [{
3771
- width: Mo,
3792
+ width: _o,
3772
3793
  minimumWidth: 0,
3773
3794
  maximumWidth: Number.POSITIVE_INFINITY
3774
3795
  }, {
3775
- width: Mo,
3796
+ width: _o,
3776
3797
  minimumWidth: 0,
3777
3798
  maximumWidth: Number.POSITIVE_INFINITY
3778
3799
  }]
3779
3800
  };
3780
- case N.Wrap:
3801
+ case T.Wrap:
3781
3802
  return { orientation: Qe.Horizontal };
3782
- case N.Canvas:
3803
+ case T.Canvas:
3783
3804
  return { extent: t };
3784
- case N.Container:
3805
+ case T.Container:
3785
3806
  return {};
3786
3807
  }
3787
3808
  }
@@ -3795,7 +3816,7 @@ var ke = /* @__PURE__ */ (function(e) {
3795
3816
  "exposures",
3796
3817
  "instanceContributions"
3797
3818
  ];
3798
- function tr(e, t) {
3819
+ function nr(e, t) {
3799
3820
  let n = e;
3800
3821
  if (typeof e == "string") try {
3801
3822
  n = JSON.parse(e);
@@ -3825,10 +3846,10 @@ function tr(e, t) {
3825
3846
  problem: ke.MissingScreen
3826
3847
  };
3827
3848
  }
3828
- function nr(e) {
3849
+ function or(e) {
3829
3850
  const t = e.documentText ?? e.document;
3830
3851
  if (t !== void 0) {
3831
- const n = tr(t, e.authoringTemplate);
3852
+ const n = nr(t, e.authoringTemplate);
3832
3853
  return n.readable ? {
3833
3854
  opened: !0,
3834
3855
  subject: { document: n.document }
@@ -3843,14 +3864,14 @@ function nr(e) {
3843
3864
  };
3844
3865
  }
3845
3866
  function Ju(e) {
3846
- return e.authoringTemplate !== void 0 ? Pl(e.authoringTemplate, Mt(N.Stack, kl, "Template")) : Nl(Mt(N.Stack, Tl, "Screen"), e.screenTemplate);
3867
+ return e.authoringTemplate !== void 0 ? Il(e.authoringTemplate, Mt(T.Stack, Nl, "Template")) : Pl(Mt(T.Stack, Tl, "Screen"), e.screenTemplate);
3847
3868
  }
3848
- var or = ({ placement: e, children: t }) => /* @__PURE__ */ i("div", {
3869
+ var ar = ({ placement: e, children: t }) => /* @__PURE__ */ i("div", {
3849
3870
  className: "studio-screen-editor-palette-host",
3850
3871
  "data-placement": e,
3851
3872
  "data-cratis-part": "screen-editor-palette",
3852
- children: /* @__PURE__ */ i(Xr, { children: t })
3853
- }), ar = ({ strings: e, onClose: t, children: n }) => /* @__PURE__ */ i($t, {
3873
+ children: /* @__PURE__ */ i(ei, { children: t })
3874
+ }), rr = ({ strings: e, onClose: t, children: n }) => /* @__PURE__ */ i($t, {
3854
3875
  fallback: /* @__PURE__ */ h("div", {
3855
3876
  className: "studio-screen-editor-unreadable",
3856
3877
  role: "alertdialog",
@@ -3866,7 +3887,7 @@ var or = ({ placement: e, children: t }) => /* @__PURE__ */ i("div", {
3866
3887
  ]
3867
3888
  }),
3868
3889
  children: n
3869
- }), rr = ({ problem: e, strings: t, onClose: n }) => /* @__PURE__ */ h("div", {
3890
+ }), ir = ({ problem: e, strings: t, onClose: n }) => /* @__PURE__ */ h("div", {
3870
3891
  className: "studio-screen-editor-unreadable",
3871
3892
  role: "alertdialog",
3872
3893
  "aria-label": t.unreadable.title,
@@ -3880,7 +3901,7 @@ var or = ({ placement: e, children: t }) => /* @__PURE__ */ i("div", {
3880
3901
  children: t.unreadable.close
3881
3902
  }) })
3882
3903
  ]
3883
- }), wn = "studio.screenEditor.windowSize.v1", _o = `${wn}:last`, $o = (e) => {
3904
+ }), Cn = "studio.screenEditor.windowSize.v1", $o = `${Cn}:last`, Ao = (e) => {
3884
3905
  if (e !== null)
3885
3906
  try {
3886
3907
  const t = JSON.parse(e);
@@ -3891,27 +3912,27 @@ var or = ({ placement: e, children: t }) => /* @__PURE__ */ i("div", {
3891
3912
  } catch {
3892
3913
  return;
3893
3914
  }
3894
- }, Nt = (e) => {
3915
+ }, Tt = (e) => {
3895
3916
  try {
3896
3917
  return e();
3897
3918
  } catch {
3898
3919
  return;
3899
3920
  }
3900
- }, Ku = () => Nt(() => typeof window < "u" ? window.localStorage : void 0);
3921
+ }, Ku = () => Tt(() => typeof window < "u" ? window.localStorage : void 0);
3901
3922
  function Qu(e = Ku()) {
3902
3923
  return {
3903
- read: (t) => e ? $o(Nt(() => e.getItem(`${wn}:${t}`)) ?? null) : void 0,
3924
+ read: (t) => e ? Ao(Tt(() => e.getItem(`${Cn}:${t}`)) ?? null) : void 0,
3904
3925
  write: (t, n) => {
3905
3926
  if (!e) return;
3906
3927
  const o = JSON.stringify({
3907
3928
  width: Math.round(n.width),
3908
3929
  height: Math.round(n.height)
3909
3930
  });
3910
- Nt(() => {
3911
- e.setItem(`${wn}:${t}`, o), e.setItem(_o, o);
3931
+ Tt(() => {
3932
+ e.setItem(`${Cn}:${t}`, o), e.setItem($o, o);
3912
3933
  });
3913
3934
  },
3914
- readLastUsed: () => e ? $o(Nt(() => e.getItem(_o)) ?? null) : void 0
3935
+ readLastUsed: () => e ? Ao(Tt(() => e.getItem($o)) ?? null) : void 0
3915
3936
  };
3916
3937
  }
3917
3938
  var Me = /* @__PURE__ */ (function(e) {
@@ -3926,27 +3947,27 @@ var Me = /* @__PURE__ */ (function(e) {
3926
3947
  height: 844
3927
3948
  }
3928
3949
  };
3929
- function Jn(e, t) {
3950
+ function Kn(e, t) {
3930
3951
  return {
3931
3952
  width: Math.min(e.width, t.width),
3932
3953
  height: Math.min(e.height + 40, t.height)
3933
3954
  };
3934
3955
  }
3935
- function ir(e) {
3956
+ function sr(e) {
3936
3957
  return {
3937
3958
  width: e.width,
3938
3959
  height: Math.max(0, e.height - 40)
3939
3960
  };
3940
3961
  }
3941
- var Ao = {
3962
+ var Lo = {
3942
3963
  width: 900,
3943
3964
  height: 640
3944
3965
  }, Yu = (e) => !!e && Number.isFinite(e.width) && Number.isFinite(e.height) && e.width > 0 && e.height > 0;
3945
- function sr(e) {
3946
- return Jn(Et[Me.Desktop], e);
3966
+ function lr(e) {
3967
+ return Kn(Et[Me.Desktop], e);
3947
3968
  }
3948
3969
  function Zu(e) {
3949
- return !!e && e.width === Ao.width && e.height === Ao.height;
3970
+ return !!e && e.width === Lo.width && e.height === Lo.height;
3950
3971
  }
3951
3972
  function Xu(e, t) {
3952
3973
  const n = Zu(e.saved) ? void 0 : e.saved;
@@ -3954,7 +3975,7 @@ function Xu(e, t) {
3954
3975
  e.remembered,
3955
3976
  n,
3956
3977
  e.lastUsed
3957
- ].find(Yu) ?? sr(t), t);
3978
+ ].find(Yu) ?? lr(t), t);
3958
3979
  }
3959
3980
  function ep(e, t) {
3960
3981
  return {
@@ -3962,13 +3983,13 @@ function ep(e, t) {
3962
3983
  height: Math.round(Math.min(e.height, t.height))
3963
3984
  };
3964
3985
  }
3965
- var lr = ({ environment: e, children: t }) => {
3966
- const n = /* @__PURE__ */ i(ti, {
3986
+ var cr = ({ environment: e, children: t }) => {
3987
+ const n = /* @__PURE__ */ i(ni, {
3967
3988
  handler: e.fileUpload?.handler,
3968
3989
  allowedOrigins: e.fileUpload?.allowedOrigins,
3969
3990
  children: t
3970
3991
  });
3971
- return e.richText ? /* @__PURE__ */ i(ni, {
3992
+ return e.richText ? /* @__PURE__ */ i(oi, {
3972
3993
  loader: e.richText,
3973
3994
  children: n
3974
3995
  }) : n;
@@ -3982,31 +4003,31 @@ var lr = ({ environment: e, children: t }) => {
3982
4003
  });
3983
4004
  function np(e, t) {
3984
4005
  return Object.values(Me).find((n) => {
3985
- const o = Jn(Et[n], t);
4006
+ const o = Kn(Et[n], t);
3986
4007
  return o.width === e.width && o.height === e.height;
3987
4008
  });
3988
4009
  }
3989
4010
  function op(e) {
3990
- const t = ir(e);
3991
- return _r(t.width, t.height);
4011
+ const t = sr(e);
4012
+ return $r(t.width, t.height);
3992
4013
  }
3993
4014
  var ap = ({ windowSize: e, available: t, strings: n, onResize: o }) => {
3994
- const a = np(e, t), r = ir(e), s = op(e), d = (u, c, l) => /* @__PURE__ */ i(ze, {
4015
+ const a = np(e, t), r = sr(e), s = op(e), d = (u, c, l) => /* @__PURE__ */ i(ze, {
3995
4016
  icon: c,
3996
4017
  "aria-label": l,
3997
4018
  "aria-pressed": a === u,
3998
4019
  title: l,
3999
4020
  variant: "ghost",
4000
4021
  size: "small",
4001
- onClick: () => o(Jn(Et[u], t))
4022
+ onClick: () => o(Kn(Et[u], t))
4002
4023
  });
4003
4024
  return /* @__PURE__ */ h("div", {
4004
4025
  className: "studio-editor-viewport-controls",
4005
4026
  role: "group",
4006
4027
  "aria-label": n.sizeClass(s.width, s.height),
4007
4028
  children: [
4008
- d(Me.Desktop, /* @__PURE__ */ i(sn, { "aria-hidden": "true" }), n.desktopPreview),
4009
- d(Me.Mobile, /* @__PURE__ */ i(Oi, { "aria-hidden": "true" }), n.mobilePreview),
4029
+ d(Me.Desktop, /* @__PURE__ */ i(ln, { "aria-hidden": "true" }), n.desktopPreview),
4030
+ d(Me.Mobile, /* @__PURE__ */ i(xi, { "aria-hidden": "true" }), n.mobilePreview),
4010
4031
  /* @__PURE__ */ h("span", {
4011
4032
  className: "studio-editor-viewport-controls__size",
4012
4033
  role: "status",
@@ -4019,15 +4040,15 @@ var ap = ({ windowSize: e, available: t, strings: n, onResize: o }) => {
4019
4040
  ]
4020
4041
  });
4021
4042
  };
4022
- function Kn(e) {
4043
+ function Qn(e) {
4023
4044
  return e === void 0 ? "" : e.isDark ? "cratis-theme cratis-dark" : "cratis-theme cratis-light";
4024
4045
  }
4025
- function Qn(e) {
4046
+ function Yn(e) {
4026
4047
  if (e.appearance) return e.appearance.theme;
4027
4048
  const t = e.bundles.flatMap((n) => n.themes ?? []);
4028
4049
  return t.find((n) => n.name === e.profile.theme) ?? t[0];
4029
4050
  }
4030
- var Cn = ({ elementId: e, tone: t, text: n }) => /* @__PURE__ */ i("div", {
4051
+ var Sn = ({ elementId: e, tone: t, text: n }) => /* @__PURE__ */ i("div", {
4031
4052
  className: "studio-design-placeholder",
4032
4053
  "data-studio-placeholder-for": e,
4033
4054
  "data-tone": t,
@@ -4037,7 +4058,7 @@ var Cn = ({ elementId: e, tone: t, text: n }) => /* @__PURE__ */ i("div", {
4037
4058
  return e.Empty = "empty", e.Failed = "failed", e.Declaration = "declaration", e;
4038
4059
  })({}), te = /* @__PURE__ */ (function(e) {
4039
4060
  return e.Window = "window", e.Toast = "toast", e.Tooltip = "tooltip", e.Mask = "mask", e.Busy = "busy", e;
4040
- })({}), cr = {
4061
+ })({}), dr = {
4041
4062
  dialog: te.Window,
4042
4063
  confirmDialog: te.Window,
4043
4064
  confirmationDialog: te.Window,
@@ -4133,7 +4154,7 @@ function rp({ kind: e, tag: t, element: n, slots: o, message: a }) {
4133
4154
  }), u()]
4134
4155
  });
4135
4156
  }
4136
- var tn = (e) => `data:image/svg+xml;utf8,${encodeURIComponent(`<svg xmlns="http://www.w3.org/2000/svg" width="320" height="200"><rect width="320" height="200" fill="hsl(${e} 40% 40%)"/></svg>`)}`, Lo = [{
4157
+ var nn = (e) => `data:image/svg+xml;utf8,${encodeURIComponent(`<svg xmlns="http://www.w3.org/2000/svg" width="320" height="200"><rect width="320" height="200" fill="hsl(${e} 40% 40%)"/></svg>`)}`, Eo = [{
4137
4158
  label: "Documents",
4138
4159
  children: ["Work", "Home"]
4139
4160
  }], ip = [
@@ -4151,7 +4172,7 @@ var tn = (e) => `data:image/svg+xml;utf8,${encodeURIComponent(`<svg xmlns="http:
4151
4172
  "Draft",
4152
4173
  "In review",
4153
4174
  "Published"
4154
- ], nn = {
4175
+ ], on = {
4155
4176
  text: { text: "Text" },
4156
4177
  title: {
4157
4178
  text: "Title",
@@ -4264,7 +4285,7 @@ var tn = (e) => `data:image/svg+xml;utf8,${encodeURIComponent(`<svg xmlns="http:
4264
4285
  colorPicker: { value: "#6366f1" },
4265
4286
  chips: { value: ["one", "two"] },
4266
4287
  autoComplete: { options: Ue },
4267
- treeSelect: { options: Lo },
4288
+ treeSelect: { options: Eo },
4268
4289
  editor: { value: "<p>Rich <strong>text</strong></p>" },
4269
4290
  fileUpload: {},
4270
4291
  splitButton: {
@@ -4295,7 +4316,7 @@ var tn = (e) => `data:image/svg+xml;utf8,${encodeURIComponent(`<svg xmlns="http:
4295
4316
  inline: !0,
4296
4317
  scrollHeight: 96
4297
4318
  },
4298
- tree: { nodes: Lo },
4319
+ tree: { nodes: Eo },
4299
4320
  treeTable: {
4300
4321
  columns: [{
4301
4322
  field: "name",
@@ -4459,17 +4480,17 @@ var tn = (e) => `data:image/svg+xml;utf8,${encodeURIComponent(`<svg xmlns="http:
4459
4480
  },
4460
4481
  blockUI: { blocked: !0 },
4461
4482
  image: {
4462
- src: tn(220),
4483
+ src: nn(220),
4463
4484
  alt: "Image",
4464
4485
  width: "200"
4465
4486
  },
4466
4487
  galleria: {
4467
4488
  maxWidth: 320,
4468
4489
  items: [{
4469
- src: tn(220),
4490
+ src: nn(220),
4470
4491
  alt: "One"
4471
4492
  }, {
4472
- src: tn(10),
4493
+ src: nn(10),
4473
4494
  alt: "Two"
4474
4495
  }]
4475
4496
  },
@@ -4617,27 +4638,27 @@ var tn = (e) => `data:image/svg+xml;utf8,${encodeURIComponent(`<svg xmlns="http:
4617
4638
  footer: { text: "Footer" },
4618
4639
  topbar: { title: "Application" },
4619
4640
  userMenu: { name: "User" }
4620
- }, dr = /* @__PURE__ */ new Set([
4641
+ }, ur = /* @__PURE__ */ new Set([
4621
4642
  "data",
4622
4643
  "navigate",
4623
4644
  "errorBoundary",
4624
4645
  "toolbarSeparator"
4625
- ]), _t = (e) => e.slice(e.lastIndexOf(":") + 1), Yn = (e, t) => nn[e] ?? nn[t] ?? nn[_t(t)];
4626
- function ur(e, t, n) {
4627
- const o = Yn(e, t), a = n ?? {};
4646
+ ]), _t = (e) => e.slice(e.lastIndexOf(":") + 1), Zn = (e, t) => on[e] ?? on[t] ?? on[_t(t)];
4647
+ function pr(e, t, n) {
4648
+ const o = Zn(e, t), a = n ?? {};
4628
4649
  if (!o) return { ...a };
4629
4650
  const r = { ...o };
4630
4651
  for (const [s, d] of Object.entries(a)) d !== void 0 && (r[s] = d);
4631
4652
  return r;
4632
4653
  }
4633
4654
  function sp(e, t, n) {
4634
- const o = Yn(e, t);
4655
+ const o = Zn(e, t);
4635
4656
  return o ? Object.keys(o).filter((a) => n?.[a] === void 0) : [];
4636
4657
  }
4637
4658
  var lp = (e) => {
4638
4659
  const { width: t, height: n } = e.getBoundingClientRect();
4639
4660
  return t > 0 && n > 0;
4640
- }, Sn = (e) => Array.from(e.children).filter((t) => !t.hasAttribute("data-studio-placeholder-for")).some((t) => lp(t) || getComputedStyle(t).display === "contents" && Sn(t)), cp = 150;
4661
+ }, kn = (e) => Array.from(e.children).filter((t) => !t.hasAttribute("data-studio-placeholder-for")).some((t) => lp(t) || getComputedStyle(t).display === "contents" && kn(t)), cp = 150;
4641
4662
  function dp(e, t) {
4642
4663
  const [n, o] = A(!0), a = Z(!0);
4643
4664
  return tt(() => {
@@ -4648,7 +4669,7 @@ function dp(e, t) {
4648
4669
  };
4649
4670
  let d;
4650
4671
  const u = () => {
4651
- clearTimeout(d), Sn(r) ? s(!0) : d = setTimeout(() => s(Sn(r)), cp);
4672
+ clearTimeout(d), kn(r) ? s(!0) : d = setTimeout(() => s(kn(r)), cp);
4652
4673
  }, c = typeof ResizeObserver > "u" ? void 0 : new ResizeObserver(u), l = () => {
4653
4674
  c?.disconnect(), Array.from(r.children).forEach((g) => c?.observe(g));
4654
4675
  }, m = new MutationObserver(() => {
@@ -4667,8 +4688,8 @@ function mp(e, t, n, o) {
4667
4688
  const a = (r) => {
4668
4689
  const s = Z(null), d = $(() => ({
4669
4690
  ...r.element,
4670
- properties: ur(e, r.element.componentName, r.element.properties)
4671
- }), [r.element]), u = $(() => sp(e, r.element.componentName, r.element.properties), [r.element]), c = dr.has(_t(r.element.componentName)), l = cr[_t(r.element.componentName)], [m, g] = A(), b = dp(s, r.element), f = up(r), p = pp(r.element, m !== void 0);
4691
+ properties: pr(e, r.element.componentName, r.element.properties)
4692
+ }), [r.element]), u = $(() => sp(e, r.element.componentName, r.element.properties), [r.element]), c = ur.has(_t(r.element.componentName)), l = dr[_t(r.element.componentName)], [m, g] = A(), b = dp(s, r.element), f = up(r), p = pp(r.element, m !== void 0);
4672
4693
  return /* @__PURE__ */ h("span", {
4673
4694
  ref: s,
4674
4695
  "data-studio-element": r.element.id,
@@ -4677,7 +4698,7 @@ function mp(e, t, n, o) {
4677
4698
  title: u.length > 0 ? n.sampleContent(u) : void 0,
4678
4699
  children: [/* @__PURE__ */ i($t, {
4679
4700
  onError: (v) => g(v instanceof Error ? v.message : String(v)),
4680
- fallback: /* @__PURE__ */ i(Cn, {
4701
+ fallback: /* @__PURE__ */ i(Sn, {
4681
4702
  elementId: r.element.id,
4682
4703
  tone: Pt.Failed,
4683
4704
  text: n.failedToDraw(f, m ?? "")
@@ -4692,7 +4713,7 @@ function mp(e, t, n, o) {
4692
4713
  ...r,
4693
4714
  element: d
4694
4715
  })
4695
- }, p), !b && /* @__PURE__ */ i(Cn, {
4716
+ }, p), !b && /* @__PURE__ */ i(Sn, {
4696
4717
  elementId: r.element.id,
4697
4718
  tone: c ? Pt.Declaration : Pt.Empty,
4698
4719
  text: c ? n.declaration(f) : n.nothingToShow(f)
@@ -4711,7 +4732,7 @@ function hp(e, t) {
4711
4732
  var fp = (e) => ({ element: t }) => It("span", {
4712
4733
  "data-studio-element": t.id,
4713
4734
  style: { display: "contents" }
4714
- }, It(Cn, {
4735
+ }, It(Sn, {
4715
4736
  elementId: t.id,
4716
4737
  tone: Pt.Failed,
4717
4738
  text: e.unavailable(t.name || t.componentName)
@@ -4751,7 +4772,7 @@ var xe = /* @__PURE__ */ (function(e) {
4751
4772
  })({}), vt = ({ width: e, height: t }) => e * t, bp = (e, t, n) => t >= e.left && t <= e.left + e.width && n >= e.top && n <= e.top + e.height, yp = (e, t, n, o) => {
4752
4773
  const a = Math.min(o, e.width / 4), r = Math.min(o, e.height / 4);
4753
4774
  return t - e.left < a || e.left + e.width - t < a || n - e.top < r || e.top + e.height - n < r;
4754
- }, Eo = ({ region: e, rect: t }, n, o) => e.axis === xe.Vertical ? Math.abs(n - (t.left + t.width / 2)) : Math.abs(o - (t.top + t.height / 2));
4775
+ }, Bo = ({ region: e, rect: t }, n, o) => e.axis === xe.Vertical ? Math.abs(n - (t.left + t.width / 2)) : Math.abs(o - (t.top + t.height / 2));
4755
4776
  function wp(e, t, n, o = 6) {
4756
4777
  const a = e.filter((c) => c.region.kind === fe.Container);
4757
4778
  if (a.length === 0) return;
@@ -4763,7 +4784,7 @@ function wp(e, t, n, o = 6) {
4763
4784
  target: d,
4764
4785
  container: d.rect
4765
4786
  } : {
4766
- target: u.reduce((c, l) => Eo(l, t, n) < Eo(c, t, n) ? l : c),
4787
+ target: u.reduce((c, l) => Bo(l, t, n) < Bo(c, t, n) ? l : c),
4767
4788
  container: d.rect
4768
4789
  };
4769
4790
  }
@@ -4800,7 +4821,7 @@ function kp(e, t, n) {
4800
4821
  }, p = (C) => {
4801
4822
  const M = e.current.getBoundingClientRect(), D = wp(t(), C.clientX - M.left, C.clientY - M.top), W = C.target.closest("[data-scene-id], [data-studio-element]"), S = W?.dataset.sceneId ?? W?.dataset.studioElement, I = !!S && n.ownershipOf(S) !== Q.Local;
4802
4823
  if (!D || I) return { denied: !0 };
4803
- if (yn(C)) {
4824
+ if (wn(C)) {
4804
4825
  const L = b(D), G = L ? n.validateMove(L) : J.NodeNotFound;
4805
4826
  if (G && G !== J.NoChange) return { denied: !0 };
4806
4827
  }
@@ -4827,7 +4848,7 @@ function kp(e, t, n) {
4827
4848
  onDragOver: (C) => {
4828
4849
  if (!ft(C) || (C.preventDefault(), m.current)) return;
4829
4850
  const M = p(C);
4830
- C.dataTransfer.dropEffect = M.denied ? "none" : yn(C) ? "move" : "copy", a((D) => Sp(D, M) ? D : M);
4851
+ C.dataTransfer.dropEffect = M.denied ? "none" : wn(C) ? "move" : "copy", a((D) => Sp(D, M) ? D : M);
4831
4852
  },
4832
4853
  onDragLeave: (C) => {
4833
4854
  ft(C) && (u.current = Math.max(0, u.current - 1), u.current === 0 && a(void 0));
@@ -4842,20 +4863,20 @@ function kp(e, t, n) {
4842
4863
  }
4843
4864
  if (!D) return;
4844
4865
  const { region: G } = W.target, y = G.containerId ?? void 0, F = G.kind === fe.Container ? void 0 : G.index, Y = v(C, W);
4845
- D.kind === "layout" ? n.insertLayout(D.item, y, F, Y) : n.insertComponent(Hn(D.componentName, D.package), y, F, Y);
4866
+ D.kind === "layout" ? n.insertLayout(D.item, y, F, Y) : n.insertComponent(Jn(D.componentName, D.package), y, F, Y);
4846
4867
  }
4847
4868
  }
4848
4869
  };
4849
4870
  }
4850
- var Tp = (e) => e.width > 0 && e.height > 0;
4851
- function pr(e) {
4871
+ var Np = (e) => e.width > 0 && e.height > 0;
4872
+ function mr(e) {
4852
4873
  const t = e.getBoundingClientRect();
4853
- return Tp(t) ? [t] : Array.from(e.children).flatMap(pr);
4874
+ return Np(t) ? [t] : Array.from(e.children).flatMap(mr);
4854
4875
  }
4855
- function kn(e, t, n) {
4876
+ function Nn(e, t, n) {
4856
4877
  const o = CSS.escape(t), a = [...Array.from(e.querySelectorAll(`[data-studio-element="${o}"]`)), ...Array.from(e.querySelectorAll(`[data-scene-id="${o}"]`))];
4857
4878
  for (const r of a) {
4858
- const s = pr(r);
4879
+ const s = mr(r);
4859
4880
  if (s.length === 0) continue;
4860
4881
  const d = Math.min(...s.map((m) => m.left)), u = Math.min(...s.map((m) => m.top)), c = Math.max(...s.map((m) => m.right)), l = Math.max(...s.map((m) => m.bottom));
4861
4882
  return {
@@ -4867,7 +4888,7 @@ function kn(e, t, n) {
4867
4888
  }
4868
4889
  }
4869
4890
  var je = 3;
4870
- function Np(e, t, n) {
4891
+ function Tp(e, t, n) {
4871
4892
  const o = e.containerId === null ? t : n(e.containerId);
4872
4893
  if (!o) return;
4873
4894
  if (e.kind === fe.Container) return o;
@@ -4888,19 +4909,19 @@ function Np(e, t, n) {
4888
4909
  height: o.height
4889
4910
  };
4890
4911
  }
4891
- var mr = (e, t) => e === t || !!e && !!t && e.left === t.left && e.top === t.top && e.width === t.width && e.height === t.height, Pp = (e, t) => e.length === t.length && e.every((n, o) => n.region.id === t[o].region.id && mr(n.rect, t[o].rect)), Ip = mr;
4912
+ var hr = (e, t) => e === t || !!e && !!t && e.left === t.left && e.top === t.top && e.width === t.width && e.height === t.height, Pp = (e, t) => e.length === t.length && e.every((n, o) => n.region.id === t[o].region.id && hr(n.rect, t[o].rect)), Ip = hr;
4892
4913
  function Rp(e, t, n) {
4893
4914
  const [o, a] = A([]), [r, s] = A(), d = Z([]), u = B(() => {
4894
4915
  const l = e.current;
4895
4916
  if (!l) return [];
4896
- const m = l.getBoundingClientRect(), g = (f) => kn(l, f, m), b = {
4917
+ const m = l.getBoundingClientRect(), g = (f) => Nn(l, f, m), b = {
4897
4918
  left: 0,
4898
4919
  top: 0,
4899
4920
  width: m.width,
4900
4921
  height: m.height
4901
4922
  };
4902
4923
  return t.flatMap((f) => {
4903
- const p = Np(f, b, g);
4924
+ const p = Tp(f, b, g);
4904
4925
  return p ? [{
4905
4926
  region: f,
4906
4927
  rect: p
@@ -4911,7 +4932,7 @@ function Rp(e, t, n) {
4911
4932
  if (!l) return;
4912
4933
  const m = u();
4913
4934
  d.current = m, a((b) => Pp(b, m) ? b : m);
4914
- const g = n ? kn(l, n, l.getBoundingClientRect()) : void 0;
4935
+ const g = n ? Nn(l, n, l.getBoundingClientRect()) : void 0;
4915
4936
  s((b) => Ip(b, g) ? b : g);
4916
4937
  }, [
4917
4938
  e,
@@ -4946,7 +4967,7 @@ function Rp(e, t, n) {
4946
4967
  measureNow: u
4947
4968
  };
4948
4969
  }
4949
- var Bo = [
4970
+ var Uo = [
4950
4971
  "pointerdown",
4951
4972
  "pointerup",
4952
4973
  "mousedown",
@@ -4955,7 +4976,7 @@ var Bo = [
4955
4976
  "dblclick"
4956
4977
  ], Dp = "[data-scene-id], [data-studio-element], [data-studio-placeholder-for]";
4957
4978
  function Op(e, t, n = 0) {
4958
- const o = Un(t);
4979
+ const o = jn(t);
4959
4980
  return {
4960
4981
  select: e === "pointerdown" && n === 0 || e === "click",
4961
4982
  swallow: !o,
@@ -4975,11 +4996,11 @@ function Fp(e, t) {
4975
4996
  const s = r.target;
4976
4997
  if (s?.closest?.(".studio-screen-surface__chrome")) return;
4977
4998
  const d = Op(r.type, s, r.button);
4978
- d.select && (Un(s) || o.focus({ preventScroll: !0 }), n.current(xp(s))), d.cancelDefault && r.preventDefault(), d.swallow && r.stopPropagation();
4999
+ d.select && (jn(s) || o.focus({ preventScroll: !0 }), n.current(xp(s))), d.cancelDefault && r.preventDefault(), d.swallow && r.stopPropagation();
4979
5000
  };
4980
- for (const r of Bo) o.addEventListener(r, a, !0);
5001
+ for (const r of Uo) o.addEventListener(r, a, !0);
4981
5002
  return () => {
4982
- for (const r of Bo) o.removeEventListener(r, a, !0);
5003
+ for (const r of Uo) o.removeEventListener(r, a, !0);
4983
5004
  };
4984
5005
  }, [e]);
4985
5006
  }
@@ -4993,7 +5014,7 @@ var Mp = () => {
4993
5014
  return j(y.clientHeight), F.observe(y), () => F.disconnect();
4994
5015
  }, [r]);
4995
5016
  const _ = (y) => {
4996
- !Ia(y) || !e.selectedId || !e.canRemove(e.selectedId) || (y.preventDefault(), e.remove(e.selectedId));
5017
+ !Ra(y) || !e.selectedId || !e.canRemove(e.selectedId) || (y.preventDefault(), e.remove(e.selectedId));
4997
5018
  }, q = !!e.selectedId && e.ownershipOf(e.selectedId) === Q.Local && e.canRemove(e.selectedId), C = e.selection && (e.selection.name || e.selection.componentName) || "";
4998
5019
  Fp(s, (y) => e.select(y));
4999
5020
  const { setMeasurer: M } = e;
@@ -5007,23 +5028,23 @@ var Mp = () => {
5007
5028
  width: ne.width,
5008
5029
  height: ne.height
5009
5030
  };
5010
- const Ne = kn(F, y, Y);
5011
- return Ne && {
5012
- left: Ne.left,
5013
- top: Ne.top,
5014
- width: Ne.width,
5015
- height: Ne.height
5031
+ const Te = Nn(F, y, Y);
5032
+ return Te && {
5033
+ left: Te.left,
5034
+ top: Te.top,
5035
+ width: Te.width,
5036
+ height: Te.height
5016
5037
  };
5017
5038
  }), () => M(void 0)), [M]);
5018
- const D = $(() => ya(d.element, t.runtime.profile, t.runtime.packages), [
5039
+ const D = $(() => wa(d.element, t.runtime.profile, t.runtime.packages), [
5019
5040
  d,
5020
5041
  t.runtime.profile,
5021
5042
  t.runtime.packages
5022
- ]), W = $(() => hp(t.runtime.registry, a), [t.runtime.registry, a]), S = $(() => Qn(t.runtime), [t.runtime]), I = $(() => /* @__PURE__ */ i(ta, {
5043
+ ]), W = $(() => hp(t.runtime.registry, a), [t.runtime.registry, a]), S = $(() => Yn(t.runtime), [t.runtime]), I = $(() => /* @__PURE__ */ i(na, {
5023
5044
  registry: t.runtime.iconAdapters,
5024
- children: /* @__PURE__ */ i(va, {
5045
+ children: /* @__PURE__ */ i(ba, {
5025
5046
  storage: null,
5026
- children: /* @__PURE__ */ i(na, {
5047
+ children: /* @__PURE__ */ i(oa, {
5027
5048
  element: D,
5028
5049
  registry: W,
5029
5050
  resolveBinding: n,
@@ -5040,9 +5061,9 @@ var Mp = () => {
5040
5061
  ...L === void 0 ? {} : { "--studio-surface-viewport-height": `${L}px` },
5041
5062
  "--studio-empty-container-label": JSON.stringify(a.emptyContainer)
5042
5063
  };
5043
- return /* @__PURE__ */ i(oa, {
5064
+ return /* @__PURE__ */ i(aa, {
5044
5065
  theme: S,
5045
- className: `studio-profile-theme studio-screen-surface-theme ${Kn(S)}`,
5066
+ className: `studio-profile-theme studio-screen-surface-theme ${Qn(S)}`,
5046
5067
  children: /* @__PURE__ */ h("div", {
5047
5068
  ref: s,
5048
5069
  className: "studio-screen-surface",
@@ -5072,7 +5093,7 @@ var Mp = () => {
5072
5093
  f(e.selectedId), Lu(y, e.selectedId, C);
5073
5094
  },
5074
5095
  onDragEnd: p,
5075
- children: /* @__PURE__ */ i(Si, { "aria-hidden": "true" })
5096
+ children: /* @__PURE__ */ i(ki, { "aria-hidden": "true" })
5076
5097
  }),
5077
5098
  g && /* @__PURE__ */ i(gp, {
5078
5099
  feedback: g,
@@ -5088,7 +5109,7 @@ var Mp = () => {
5088
5109
  })]
5089
5110
  })
5090
5111
  });
5091
- }, Uo = 40, hr = ({ controller: e, environment: t, strings: n, window: o, deviceFrame: a = !1, saveFailure: r, onSave: s, isSaving: d = !1 }) => {
5112
+ }, jo = 40, fr = ({ controller: e, environment: t, strings: n, window: o, deviceFrame: a = !1, saveFailure: r, onSave: s, isSaving: d = !1 }) => {
5092
5113
  const u = !!e.selectedId && e.canRemove(e.selectedId), c = /* @__PURE__ */ h(se, { children: [
5093
5114
  /* @__PURE__ */ i("span", {
5094
5115
  className: "studio-screen-editor-window__state",
@@ -5103,7 +5124,7 @@ var Mp = () => {
5103
5124
  onResize: o.setSize
5104
5125
  }),
5105
5126
  s && /* @__PURE__ */ i(ze, {
5106
- icon: /* @__PURE__ */ i(Ei, { "aria-hidden": "true" }),
5127
+ icon: /* @__PURE__ */ i(Bi, { "aria-hidden": "true" }),
5107
5128
  "aria-label": n.save,
5108
5129
  title: n.save,
5109
5130
  variant: "ghost",
@@ -5112,7 +5133,7 @@ var Mp = () => {
5112
5133
  onClick: s
5113
5134
  }),
5114
5135
  /* @__PURE__ */ i(ze, {
5115
- icon: /* @__PURE__ */ i(Gi, { "aria-hidden": "true" }),
5136
+ icon: /* @__PURE__ */ i(Hi, { "aria-hidden": "true" }),
5116
5137
  "aria-label": n.undo,
5117
5138
  title: n.undo,
5118
5139
  variant: "ghost",
@@ -5121,7 +5142,7 @@ var Mp = () => {
5121
5142
  onClick: e.undo
5122
5143
  }),
5123
5144
  /* @__PURE__ */ i(ze, {
5124
- icon: /* @__PURE__ */ i(Ai, { "aria-hidden": "true" }),
5145
+ icon: /* @__PURE__ */ i(Li, { "aria-hidden": "true" }),
5125
5146
  "aria-label": n.redo,
5126
5147
  title: n.redo,
5127
5148
  variant: "ghost",
@@ -5130,7 +5151,7 @@ var Mp = () => {
5130
5151
  onClick: e.redo
5131
5152
  }),
5132
5153
  /* @__PURE__ */ i(ze, {
5133
- icon: /* @__PURE__ */ i(zi, { "aria-hidden": "true" }),
5154
+ icon: /* @__PURE__ */ i(Gi, { "aria-hidden": "true" }),
5134
5155
  "aria-label": n.deleteElement,
5135
5156
  title: n.deleteElement,
5136
5157
  variant: "ghost",
@@ -5139,7 +5160,7 @@ var Mp = () => {
5139
5160
  onClick: () => e.selectedId && e.remove(e.selectedId)
5140
5161
  }),
5141
5162
  /* @__PURE__ */ i(ze, {
5142
- icon: /* @__PURE__ */ i(cn, { "aria-hidden": "true" }),
5163
+ icon: /* @__PURE__ */ i(dn, { "aria-hidden": "true" }),
5143
5164
  "aria-label": o.isInspectorOpen ? n.closeInspector : n.openInspector,
5144
5165
  "aria-pressed": o.isInspectorOpen,
5145
5166
  title: o.isInspectorOpen ? n.closeInspector : n.openInspector,
@@ -5170,7 +5191,7 @@ var Mp = () => {
5170
5191
  className: a ? "studio-screen-editor-window__viewport studio-screen-editor-window__device" : "studio-screen-editor-window__viewport",
5171
5192
  style: a ? {
5172
5193
  width: o.size.width,
5173
- minHeight: o.size.height - Uo
5194
+ minHeight: o.size.height - jo
5174
5195
  } : void 0,
5175
5196
  children: /* @__PURE__ */ i(_p, {
5176
5197
  controller: e,
@@ -5178,7 +5199,7 @@ var Mp = () => {
5178
5199
  resolveBinding: () => {
5179
5200
  },
5180
5201
  strings: n.surface,
5181
- viewportHeight: a ? o.size.height - Uo : void 0
5202
+ viewportHeight: a ? o.size.height - jo : void 0
5182
5203
  })
5183
5204
  })
5184
5205
  })
@@ -5210,26 +5231,26 @@ function Ap(e, t, n, o) {
5210
5231
  }
5211
5232
  function Lp(e, t, n, o = {}, a = {}) {
5212
5233
  return {
5213
- ...er(e, t),
5234
+ ...tr(e, t),
5214
5235
  componentName: n,
5215
5236
  properties: o,
5216
5237
  slots: a
5217
5238
  };
5218
5239
  }
5219
- var on = 16;
5220
- function fr(e) {
5240
+ var an = 16;
5241
+ function gr(e) {
5221
5242
  if (e.length === 0) return {
5222
- left: on,
5223
- top: on
5243
+ left: an,
5244
+ top: an
5224
5245
  };
5225
5246
  let t = 0;
5226
5247
  const n = e.map((o) => o.bottom !== void 0 ? o.bottom : o.placement ? o.placement.top + (o.height ?? 40) : (t += o.height ?? 40, t));
5227
5248
  return {
5228
- left: on,
5249
+ left: an,
5229
5250
  top: Math.max(...n) + 16
5230
5251
  };
5231
5252
  }
5232
- function gr(e, t) {
5253
+ function vr(e, t) {
5233
5254
  const n = e.properties ?? {};
5234
5255
  return {
5235
5256
  ...e,
@@ -5240,7 +5261,7 @@ function gr(e, t) {
5240
5261
  }
5241
5262
  };
5242
5263
  }
5243
- function vr(e) {
5264
+ function br(e) {
5244
5265
  const t = e.properties ?? {}, n = t[_e], o = t[$e];
5245
5266
  return typeof n == "number" && typeof o == "number" ? {
5246
5267
  left: n,
@@ -5263,7 +5284,7 @@ function Bp(e) {
5263
5284
  index: e.index
5264
5285
  };
5265
5286
  }
5266
- function br(e, t, n) {
5287
+ function yr(e, t, n) {
5267
5288
  return {
5268
5289
  kind: X.InsertNode,
5269
5290
  target: ie(e),
@@ -5277,10 +5298,10 @@ function Up(e) {
5277
5298
  nodeId: ie(e)
5278
5299
  };
5279
5300
  }
5280
- var yr = (e, t) => (e?.children ?? []).map((n) => {
5301
+ var wr = (e, t) => (e?.children ?? []).map((n) => {
5281
5302
  const o = t?.(n.id, e.id);
5282
5303
  return {
5283
- placement: vr(n),
5304
+ placement: br(n),
5284
5305
  height: o?.height,
5285
5306
  bottom: o?.bottom
5286
5307
  };
@@ -5290,11 +5311,11 @@ function jp(e, t, n, o) {
5290
5311
  if (!a || t.targetParentId === null) return;
5291
5312
  const r = At(e, t.nodeId), s = Ye(e, t.targetParentId), d = !!r && Fe(r), u = !!s && Fe(s);
5292
5313
  if (!d && !u) return;
5293
- const c = d && u && r.id === t.targetParentId, l = c ? r.children.findIndex((g) => g.id === t.nodeId) : t.index, m = u ? gr(a, n ?? (c ? vr(a) : void 0) ?? fr(yr(s, o))) : Ep(a);
5314
+ const c = d && u && r.id === t.targetParentId, l = c ? r.children.findIndex((g) => g.id === t.nodeId) : t.index, m = u ? vr(a, n ?? (c ? br(a) : void 0) ?? gr(wr(s, o))) : Ep(a);
5294
5315
  return [{
5295
5316
  kind: X.RemoveNode,
5296
5317
  nodeId: ie(t.nodeId)
5297
- }, br(t.targetParentId, l, m)];
5318
+ }, yr(t.targetParentId, l, m)];
5298
5319
  }
5299
5320
  function Vp(e) {
5300
5321
  switch (e) {
@@ -5310,7 +5331,7 @@ function Vp(e) {
5310
5331
  return xe.None;
5311
5332
  }
5312
5333
  }
5313
- function jo(e, t, n, o) {
5334
+ function Vo(e, t, n, o) {
5314
5335
  const a = e ?? "screen", r = Vp(n), s = {
5315
5336
  id: `${a}:container`,
5316
5337
  kind: fe.Container,
@@ -5334,9 +5355,9 @@ function qp(e, t, n) {
5334
5355
  const o = (a) => a.flatMap((r) => {
5335
5356
  if (!n.acceptsChildren(r)) return [];
5336
5357
  const s = n.childrenOf(r);
5337
- return [...lt(n.ownershipOf(r), Te.Insert) ? jo(n.idOf(r), s, n.arrangementOf(r), n) : [], ...o(s)];
5358
+ return [...lt(n.ownershipOf(r), Ne.Insert) ? Vo(n.idOf(r), s, n.arrangementOf(r), n) : [], ...o(s)];
5338
5359
  });
5339
- return [...jo(null, e, t, n), ...o(e)];
5360
+ return [...Vo(null, e, t, n), ...o(e)];
5340
5361
  }
5341
5362
  var Wp = class {
5342
5363
  latest;
@@ -5362,7 +5383,7 @@ function zp(e) {
5362
5383
  };
5363
5384
  }
5364
5385
  function Gp(e, t, n, o) {
5365
- const a = Dn(e.document, t, n);
5386
+ const a = On(e.document, t, n);
5366
5387
  return a.applied ? {
5367
5388
  ...e,
5368
5389
  document: a.model,
@@ -5395,7 +5416,7 @@ function Hp(e, t, n, o) {
5395
5416
  let a = e.document;
5396
5417
  const r = [];
5397
5418
  for (const s of t) {
5398
- const d = Dn(a, s, n);
5419
+ const d = On(a, s, n);
5399
5420
  if (r.push(...d.diagnostics), !d.applied) return {
5400
5421
  ...e,
5401
5422
  diagnostics: r
@@ -5450,7 +5471,7 @@ function Zp(e) {
5450
5471
  isDirty: !1
5451
5472
  };
5452
5473
  }
5453
- function Vo(e, t, n) {
5474
+ function qo(e, t, n) {
5454
5475
  const o = globalThis.structuredClone(e);
5455
5476
  for (const a of [o.screenTemplates, o.dialogTemplates]) for (const r of a) for (const s of Object.values(r.content ?? {})) it(s, t, n);
5456
5477
  for (const a of o.screens) {
@@ -5468,17 +5489,17 @@ function it(e, t, n) {
5468
5489
  }
5469
5490
  var Tn = (e) => e.id, Xp = (e) => e.name || Tn(e), em = (e) => {
5470
5491
  switch (e) {
5471
- case N.Stack:
5492
+ case T.Stack:
5472
5493
  return V.Column;
5473
- case N.Row:
5494
+ case T.Row:
5474
5495
  return V.Row;
5475
- case N.Grid:
5496
+ case T.Grid:
5476
5497
  return V.Grid;
5477
- case N.Wrap:
5498
+ case T.Wrap:
5478
5499
  return V.Wrap;
5479
- case N.Canvas:
5500
+ case T.Canvas:
5480
5501
  return V.Freeform;
5481
- case N.Container:
5502
+ case T.Container:
5482
5503
  return V.Grouping;
5483
5504
  case void 0:
5484
5505
  return;
@@ -5498,24 +5519,24 @@ function tm(e) {
5498
5519
  } : t,
5499
5520
  acceptsChildren: (t) => nt(t),
5500
5521
  ownershipOf: (t) => e(Tn(t)) ?? Q.Local,
5501
- arrangementOf: (t) => nt(t) ? em(Na(t)) : void 0
5522
+ arrangementOf: (t) => nt(t) ? em(Pa(t)) : void 0
5502
5523
  };
5503
5524
  }
5504
5525
  function nm(e) {
5505
- return e ? Fe(e) ? V.Freeform : Fn(e) ? V.Grid : Mn(e) ? e.orientation === Qe.Horizontal ? V.Row : V.Column : V.Column : V.Column;
5526
+ return e ? Fe(e) ? V.Freeform : Mn(e) ? V.Grid : _n(e) ? e.orientation === Qe.Horizontal ? V.Row : V.Column : V.Column : V.Column;
5506
5527
  }
5507
5528
  var om = (e, t) => Math.max(0, Math.min(e, t));
5508
- function qo(e, t, n) {
5529
+ function Wo(e, t, n) {
5509
5530
  const o = he(e, t.nodeId, n);
5510
5531
  if (!o) return J.NodeNotFound;
5511
- if (!lt(n.ownershipOf(o.node), Te.Move)) return J.NodeLocked;
5532
+ if (!lt(n.ownershipOf(o.node), Ne.Move)) return J.NodeLocked;
5512
5533
  let a = e;
5513
5534
  if (t.targetParentId !== null) {
5514
5535
  const r = he(e, t.targetParentId, n);
5515
5536
  if (!r) return J.TargetNotFound;
5516
- if (Ra(o.node, t.targetParentId, n)) return J.WouldCreateCycle;
5537
+ if (Da(o.node, t.targetParentId, n)) return J.WouldCreateCycle;
5517
5538
  if (!n.acceptsChildren(r.node)) return J.TargetNotContainer;
5518
- if (!lt(n.ownershipOf(r.node), Te.Insert)) return J.TargetLocked;
5539
+ if (!lt(n.ownershipOf(r.node), Ne.Insert)) return J.TargetLocked;
5519
5540
  a = n.childrenOf(r.node);
5520
5541
  }
5521
5542
  if ((o.parent === null ? null : n.idOf(o.parent)) === t.targetParentId) {
@@ -5524,24 +5545,24 @@ function qo(e, t, n) {
5524
5545
  }
5525
5546
  }
5526
5547
  var am = "composition";
5527
- function Nn(e, t) {
5528
- const n = e.screens.find((s) => s.name === ge), o = t !== void 0 ? un(t, !0) : un(void 0), a = ea(e, o).levels.filter((s) => s.kind === Dr.ScreenTemplate).map((s) => s.owner), r = [];
5548
+ function Pn(e, t) {
5549
+ const n = e.screens.find((s) => s.name === ge), o = t !== void 0 ? pn(t, !0) : pn(void 0), a = ta(e, o).levels.filter((s) => s.kind === Or.ScreenTemplate).map((s) => s.owner), r = [];
5529
5550
  for (const s of a) {
5530
5551
  const d = e.screenTemplates.find((u) => u.name === s);
5531
5552
  if (d)
5532
5553
  for (const u of d.slots) r.push(...d.content?.[u.name] ?? []);
5533
5554
  }
5534
5555
  return (t === void 0 || o.kind === Rt.Screen) && r.push(...n?.slotContent.content ?? []), {
5535
- element: Mt(N.Stack, am, "Composition", r),
5556
+ element: Mt(T.Stack, am, "Composition", r),
5536
5557
  roots: r,
5537
5558
  templates: a
5538
5559
  };
5539
5560
  }
5540
5561
  function rm(e) {
5541
5562
  switch (e) {
5542
- case eo.Inherited:
5563
+ case to.Inherited:
5543
5564
  return Q.Inherited;
5544
- case eo.ConfigurableInherited:
5565
+ case to.ConfigurableInherited:
5545
5566
  return Q.ConfigurableInherited;
5546
5567
  default:
5547
5568
  return Q.Local;
@@ -5549,13 +5570,13 @@ function rm(e) {
5549
5570
  }
5550
5571
  function im(e, t, n) {
5551
5572
  const o = /* @__PURE__ */ new Map();
5552
- for (const a of Bn(t)) {
5553
- const r = xn(e, ie(a), n);
5573
+ for (const a of Un(t)) {
5574
+ const r = Fn(e, ie(a), n);
5554
5575
  o.set(a, r ? rm(r.provenance.kind) : Q.Inherited);
5555
5576
  }
5556
5577
  return (a) => o.get(a) ?? Q.Local;
5557
5578
  }
5558
- var Wo = () => globalThis.crypto.randomUUID();
5579
+ var zo = () => globalThis.crypto.randomUUID();
5559
5580
  function sm(e) {
5560
5581
  const [t, n] = A({
5561
5582
  catalog: e,
@@ -5575,93 +5596,93 @@ function sm(e) {
5575
5596
  }, [e]), t.catalog === e ? t.times : 0;
5576
5597
  }
5577
5598
  var lm = (e, t) => At(e, t)?.id;
5578
- function wr(e, t, n) {
5599
+ function Cr(e, t, n) {
5579
5600
  const [o, a] = A(() => zp(e.document)), r = Z(void 0);
5580
5601
  r.current ??= new Wp(o, a);
5581
- const s = B((T) => r.current.commit(T), []), [d, u] = A(), c = Z(void 0), l = B((T, O) => {
5582
- const P = c.current?.(T), R = c.current?.(O);
5602
+ const s = B((N) => r.current.commit(N), []), [d, u] = A(), c = Z(void 0), l = B((N, O) => {
5603
+ const P = c.current?.(N), R = c.current?.(O);
5583
5604
  return P && R ? {
5584
5605
  height: P.height,
5585
5606
  bottom: P.top + P.height - R.top
5586
5607
  } : void 0;
5587
- }, []), m = B((T) => {
5588
- c.current = T;
5608
+ }, []), m = B((N) => {
5609
+ c.current = N;
5589
5610
  }, []), g = sm(n.runtime.icons), b = $(() => ({
5590
5611
  catalog: n.runtime.catalog,
5591
- scope: un(t, t !== void 0),
5612
+ scope: pn(t, t !== void 0),
5592
5613
  queryCandidates: [...n.queryCandidates],
5593
5614
  iconCatalog: n.runtime.icons
5594
5615
  }), [
5595
5616
  n,
5596
5617
  t,
5597
5618
  g
5598
- ]), f = $(() => Nn(o.document, t), [o.document, t]), p = $(() => im(o.document, f.roots, b), [
5619
+ ]), f = $(() => Pn(o.document, t), [o.document, t]), p = $(() => im(o.document, f.roots, b), [
5599
5620
  o.document,
5600
5621
  f,
5601
5622
  b
5602
- ]), v = $(() => tm(p), [p]), k = ot(o.document, t), j = $(() => qp(f.roots, nm(k), v).filter((T) => T.containerId !== null), [
5623
+ ]), v = $(() => tm(p), [p]), k = ot(o.document, t), j = $(() => qp(f.roots, nm(k), v).filter((N) => N.containerId !== null), [
5603
5624
  f,
5604
5625
  k,
5605
5626
  v
5606
- ]), _ = d ? Ye(f.roots, d) : void 0, q = $(() => d ? xn(o.document, ie(d), b) : void 0, [
5627
+ ]), _ = d ? Ye(f.roots, d) : void 0, q = $(() => d ? Fn(o.document, ie(d), b) : void 0, [
5607
5628
  o.document,
5608
5629
  d,
5609
5630
  b
5610
- ]), C = B((T, O) => {
5611
- const P = r.current.current, R = s((H) => Gp(H, T, b, O));
5631
+ ]), C = B((N, O) => {
5632
+ const P = r.current.current, R = s((H) => Gp(H, N, b, O));
5612
5633
  return {
5613
5634
  applied: R.undoable.length > P.undoable.length || R.document !== P.document,
5614
5635
  diagnostics: R.diagnostics
5615
5636
  };
5616
- }, [s, b]), M = B((T, O) => {
5617
- C(T, O);
5618
- }, [C]), D = B((T, O) => {
5619
- const P = r.current.current, R = s((H) => Hp(H, T, b, O));
5637
+ }, [s, b]), M = B((N, O) => {
5638
+ C(N, O);
5639
+ }, [C]), D = B((N, O) => {
5640
+ const P = r.current.current, R = s((H) => Hp(H, N, b, O));
5620
5641
  return {
5621
5642
  applied: R.document !== P.document,
5622
5643
  diagnostics: R.diagnostics
5623
5644
  };
5624
- }, [s, b]), W = B((T, O) => {
5625
- const P = T ?? k?.id, R = P ? Ye(f.roots, P)?.children ?? [] : [];
5645
+ }, [s, b]), W = B((N, O) => {
5646
+ const P = N ?? k?.id, R = P ? Ye(f.roots, P)?.children ?? [] : [];
5626
5647
  return {
5627
5648
  parent: P,
5628
5649
  index: O ?? R.length
5629
5650
  };
5630
- }, [k, f]), S = B((T, O, P, R, H) => {
5651
+ }, [k, f]), S = B((N, O, P, R, H) => {
5631
5652
  const ee = W(O, P);
5632
5653
  if (!ee.parent) return;
5633
- const Ae = Ye(Nn(r.current.current.document, t).roots, ee.parent), ut = Ae && Fe(Ae) ? gr(T, H ?? fr(yr(Ae, l))) : T;
5634
- C(br(ee.parent, ee.index, ut), R).applied && u(T.id);
5654
+ const Ae = Ye(Pn(r.current.current.document, t).roots, ee.parent), ut = Ae && Fe(Ae) ? vr(N, H ?? gr(wr(Ae, l))) : N;
5655
+ C(yr(ee.parent, ee.index, ut), R).applied && u(N.id);
5635
5656
  }, [
5636
5657
  C,
5637
5658
  W,
5638
5659
  t,
5639
5660
  l
5640
- ]), I = B((T, O) => {
5641
- const P = jp(f.roots, T, O, l), R = qo(f.roots, T, v);
5642
- if (R && !(R === J.NoChange && P && T.targetParentId === lm(f.roots, T.nodeId))) return R;
5661
+ ]), I = B((N, O) => {
5662
+ const P = jp(f.roots, N, O, l), R = Wo(f.roots, N, v);
5663
+ if (R && !(R === J.NoChange && P && N.targetParentId === lm(f.roots, N.nodeId))) return R;
5643
5664
  if (P) return D(P, "Move").applied ? void 0 : J.NodeLocked;
5644
- const H = Bp(T);
5665
+ const H = Bp(N);
5645
5666
  return H ? C(H, "Move").applied ? void 0 : J.NodeLocked : J.TargetNotContainer;
5646
5667
  }, [
5647
5668
  f,
5648
5669
  v,
5649
5670
  C,
5650
5671
  D
5651
- ]), L = B((T, O) => {
5672
+ ]), L = B((N, O) => {
5652
5673
  s((P) => {
5653
5674
  const R = P.document.screens.map((H) => H.name === "Screen" ? {
5654
5675
  ...H,
5655
- forms: T
5676
+ forms: N
5656
5677
  } : H);
5657
5678
  return Ie(P, {
5658
5679
  ...P.document,
5659
5680
  screens: R
5660
5681
  }, O);
5661
5682
  });
5662
- }, [s]), G = B((T, O, P) => {
5683
+ }, [s]), G = B((N, O, P) => {
5663
5684
  s((R) => {
5664
- const H = R.document.screenTemplates.map((ee) => ee.name === T ? {
5685
+ const H = R.document.screenTemplates.map((ee) => ee.name === N ? {
5665
5686
  ...ee,
5666
5687
  outlets: O
5667
5688
  } : ee);
@@ -5670,10 +5691,10 @@ function wr(e, t, n) {
5670
5691
  screenTemplates: H
5671
5692
  }, P);
5672
5693
  });
5673
- }, [s]), y = B((T, O, P) => {
5694
+ }, [s]), y = B((N, O, P) => {
5674
5695
  s((R) => {
5675
5696
  const H = R.document.screenTemplates.map((ee) => {
5676
- if (ee.name !== T) return ee;
5697
+ if (ee.name !== N) return ee;
5677
5698
  const { metadata: Ae, ...ut } = ee;
5678
5699
  return O ? {
5679
5700
  ...ut,
@@ -5685,18 +5706,18 @@ function wr(e, t, n) {
5685
5706
  screenTemplates: H
5686
5707
  }, P);
5687
5708
  });
5688
- }, [s]), F = B((T, O) => {
5709
+ }, [s]), F = B((N, O) => {
5689
5710
  s((P) => Ie(P, {
5690
5711
  ...P.document,
5691
- dialogTemplates: T
5712
+ dialogTemplates: N
5692
5713
  }, O));
5693
- }, [s]), Y = B((T, O, P, R, H) => {
5694
- s((ee) => Ie(ee, Vo(ee.document, T, (Ae) => cm(Ae, O, P, R)), H));
5695
- }, [s]), ne = B((T, O) => {
5714
+ }, [s]), Y = B((N, O, P, R, H) => {
5715
+ s((ee) => Ie(ee, qo(ee.document, N, (Ae) => cm(Ae, O, P, R)), H));
5716
+ }, [s]), ne = B((N, O) => {
5696
5717
  const P = n.runtime.bundles.flatMap((R) => R.screenTemplates ?? []);
5697
- s((R) => Ie(R, $p(R.document, T, P), O));
5698
- }, [s, n.runtime.bundles]), Ne = B((T, O, P) => {
5699
- s((R) => Ie(R, Vo(R.document, T, (H) => {
5718
+ s((R) => Ie(R, $p(R.document, N, P), O));
5719
+ }, [s, n.runtime.bundles]), Te = B((N, O, P) => {
5720
+ s((R) => Ie(R, qo(R.document, N, (H) => {
5700
5721
  O ? H.behaviors = O : delete H.behaviors;
5701
5722
  }), P));
5702
5723
  }, [s]);
@@ -5717,22 +5738,22 @@ function wr(e, t, n) {
5717
5738
  tryApply: C,
5718
5739
  applyAll: D,
5719
5740
  move: I,
5720
- validateMove: (T) => qo(f.roots, T, v),
5721
- insertComponent: (T, O, P, R) => S(Lp(Wo(), T, T), O, P, "Add", R),
5722
- insertLayout: (T, O, P, R) => S(Mt(T, Wo(), T), O, P, "Add layout", R),
5723
- remove: (T) => {
5724
- if (!hn(f.roots, T, v)) return;
5725
- const O = Da(f.roots, T, v);
5726
- C(Up(T), "Remove").applied && u((P) => P === T || P === void 0 ? O : P);
5741
+ validateMove: (N) => Wo(f.roots, N, v),
5742
+ insertComponent: (N, O, P, R) => S(Lp(zo(), N, N), O, P, "Add", R),
5743
+ insertLayout: (N, O, P, R) => S(Mt(N, zo(), N), O, P, "Add layout", R),
5744
+ remove: (N) => {
5745
+ if (!fn(f.roots, N, v)) return;
5746
+ const O = Oa(f.roots, N, v);
5747
+ C(Up(N), "Remove").applied && u((P) => P === N || P === void 0 ? O : P);
5727
5748
  },
5728
- canRemove: (T) => hn(f.roots, T, v),
5729
- setProperty: (T, O) => d && M(gn(d, T, O), "Change"),
5749
+ canRemove: (N) => fn(f.roots, N, v),
5750
+ setProperty: (N, O) => d && M(vn(d, N, O), "Change"),
5730
5751
  setScreenForms: L,
5731
5752
  setScreenTemplateOutlets: G,
5732
5753
  setScreenTemplateMetadata: y,
5733
5754
  setDialogTemplates: F,
5734
5755
  setCollectionItemDestination: Y,
5735
- setElementBehaviors: Ne,
5756
+ setElementBehaviors: Te,
5736
5757
  setScreenTemplate: ne,
5737
5758
  markSaved: () => {
5738
5759
  s(Zp);
@@ -5750,10 +5771,10 @@ function wr(e, t, n) {
5750
5771
  }
5751
5772
  function cm(e, t, n, o) {
5752
5773
  const a = e.properties[t];
5753
- Array.isArray(a) && (e.properties[t] = a.map((r) => Cr(r) && r.id === n ? dm(r, o) : r));
5774
+ Array.isArray(a) && (e.properties[t] = a.map((r) => Sr(r) && r.id === n ? dm(r, o) : r));
5754
5775
  }
5755
5776
  function dm(e, t) {
5756
- if (Cr(e.values)) {
5777
+ if (Sr(e.values)) {
5757
5778
  const o = { ...e.values };
5758
5779
  return t ? o.destination = t : delete o.destination, {
5759
5780
  ...e,
@@ -5763,34 +5784,34 @@ function dm(e, t) {
5763
5784
  const n = { ...e };
5764
5785
  return t ? n.destination = t : delete n.destination, n;
5765
5786
  }
5766
- function Cr(e) {
5787
+ function Sr(e) {
5767
5788
  return !!e && typeof e == "object" && !Array.isArray(e);
5768
5789
  }
5769
- var zo = () => ({
5790
+ var Go = () => ({
5770
5791
  width: window.innerWidth - 64,
5771
5792
  height: window.innerHeight - 64
5772
- }), cg = (e) => /* @__PURE__ */ i(ar, {
5793
+ }), cg = (e) => /* @__PURE__ */ i(rr, {
5773
5794
  strings: e.strings,
5774
5795
  onClose: () => e.onDismiss?.(),
5775
5796
  children: /* @__PURE__ */ i(um, { ...e })
5776
5797
  }), um = (e) => {
5777
- const t = $(() => nr(e.subject), [e.subject]);
5798
+ const t = $(() => or(e.subject), [e.subject]);
5778
5799
  return t.opened ? /* @__PURE__ */ i(pm, {
5779
5800
  ...e,
5780
5801
  opened: t.subject
5781
- }, e.environment.runtime.id) : /* @__PURE__ */ i(Yo, {
5802
+ }, e.environment.runtime.id) : /* @__PURE__ */ i(Zo, {
5782
5803
  sourceRect: e.sourceRect,
5783
5804
  initialSize: e.initialSize,
5784
5805
  centerOffsetX: e.centerOffsetX,
5785
5806
  onClosed: () => e.onDismiss?.(),
5786
- children: (n) => /* @__PURE__ */ i(rr, {
5807
+ children: (n) => /* @__PURE__ */ i(ir, {
5787
5808
  problem: t.problem,
5788
5809
  strings: e.strings,
5789
5810
  onClose: () => n.close()
5790
5811
  })
5791
5812
  });
5792
5813
  }, pm = ({ subject: e, environment: t, strings: n, layoutLabels: o, icons: a, paletteSources: r, sourceRect: s, initialSize: d, rememberWindowAs: u, windowMemory: c, centerOffsetX: l, renderPaletteHost: m, onClose: g, onBeforeClose: b, opened: f }) => {
5793
- const p = wr(f, e.authoringTemplate, t), v = $(() => Xa(n.layoutDrawer, o, a, r, n.packageTitles), [
5814
+ const p = Cr(f, e.authoringTemplate, t), v = $(() => er(n.layoutDrawer, o, a, r, n.packageTitles), [
5794
5815
  n,
5795
5816
  o,
5796
5817
  a,
@@ -5799,7 +5820,7 @@ var zo = () => ({
5799
5820
  remembered: u ? k.read(u) : void 0,
5800
5821
  saved: d,
5801
5822
  lastUsed: k.readLastUsed()
5802
- }, zo()), []), _ = B((y) => {
5823
+ }, Go()), []), _ = B((y) => {
5803
5824
  u && k.write(u, y);
5804
5825
  }, [k, u]), q = B((y) => {
5805
5826
  _(y);
@@ -5808,7 +5829,7 @@ var zo = () => ({
5808
5829
  document: p.document,
5809
5830
  legacyElements: St(F, t.runtime.legacyTypeOf),
5810
5831
  windowSize: y,
5811
- layout: Tt(F),
5832
+ layout: Nt(F),
5812
5833
  changed: p.isDirty
5813
5834
  });
5814
5835
  }, [
@@ -5823,7 +5844,7 @@ var zo = () => ({
5823
5844
  document: p.document,
5824
5845
  legacyElements: St(F, t.runtime.legacyTypeOf),
5825
5846
  windowSize: y,
5826
- layout: Tt(F),
5847
+ layout: Nt(F),
5827
5848
  changed: p.isDirty
5828
5849
  }, ne = await b?.(Y);
5829
5850
  return M(ne), !ne;
@@ -5841,7 +5862,7 @@ var zo = () => ({
5841
5862
  document: p.document,
5842
5863
  legacyElements: St(F, t.runtime.legacyTypeOf),
5843
5864
  windowSize: y,
5844
- layout: Tt(F),
5865
+ layout: Nt(F),
5845
5866
  changed: !0
5846
5867
  });
5847
5868
  M(Y), Y || p.markSaved();
@@ -5854,7 +5875,7 @@ var zo = () => ({
5854
5875
  t.runtime.legacyTypeOf,
5855
5876
  b,
5856
5877
  e.authoringTemplate
5857
- ]), L = /* @__PURE__ */ i(Ya, {
5878
+ ]), L = /* @__PURE__ */ i(Za, {
5858
5879
  drawers: v,
5859
5880
  closeLabel: n.closeDrawer,
5860
5881
  onActivate: G
@@ -5862,26 +5883,26 @@ var zo = () => ({
5862
5883
  function G(y) {
5863
5884
  if (!Lt(y)) return;
5864
5885
  const F = p.selection && mm(p) ? p.selectedId : void 0;
5865
- y.kind === "layout" ? p.insertLayout(y.item, F, void 0) : p.insertComponent(Hn(y.componentName, y.package), F, void 0);
5886
+ y.kind === "layout" ? p.insertLayout(y.item, F, void 0) : p.insertComponent(Jn(y.componentName, y.package), F, void 0);
5866
5887
  }
5867
- return /* @__PURE__ */ h(lr, {
5888
+ return /* @__PURE__ */ h(cr, {
5868
5889
  environment: t,
5869
- children: [m ? m(L) : /* @__PURE__ */ i(or, {
5890
+ children: [m ? m(L) : /* @__PURE__ */ i(ar, {
5870
5891
  placement: "floating",
5871
5892
  children: L
5872
- }), /* @__PURE__ */ i(Yo, {
5893
+ }), /* @__PURE__ */ i(Zo, {
5873
5894
  sourceRect: s,
5874
5895
  initialSize: j,
5875
5896
  centerOffsetX: l,
5876
5897
  canClose: D,
5877
5898
  onClosed: q,
5878
- renderInspector: (y) => /* @__PURE__ */ i(Ja, {
5899
+ renderInspector: (y) => /* @__PURE__ */ i(Ka, {
5879
5900
  strings: n,
5880
5901
  controller: p,
5881
5902
  environment: t,
5882
5903
  authoringTemplate: e.authoringTemplate,
5883
5904
  onClose: y.toggleInspector,
5884
- structure: /* @__PURE__ */ i(Fa, {
5905
+ structure: /* @__PURE__ */ i(Ma, {
5885
5906
  roots: p.composition.roots,
5886
5907
  adapter: p.adapter,
5887
5908
  strings: n,
@@ -5891,13 +5912,13 @@ var zo = () => ({
5891
5912
  onRemove: p.remove
5892
5913
  })
5893
5914
  }),
5894
- children: (y) => /* @__PURE__ */ i(hr, {
5915
+ children: (y) => /* @__PURE__ */ i(fr, {
5895
5916
  controller: p,
5896
5917
  environment: t,
5897
5918
  strings: n,
5898
5919
  window: {
5899
5920
  ...y,
5900
- available: zo()
5921
+ available: Go()
5901
5922
  },
5902
5923
  saveFailure: C,
5903
5924
  onSave: b ? () => {
@@ -5928,119 +5949,119 @@ function hm(e, t) {
5928
5949
  }
5929
5950
  return n;
5930
5951
  }
5931
- var qe = "p-anchored-overlay", bt = "p-collapsible", an = "p-overlay-mask", w = (e, t) => ({ props: t ? {
5952
+ var qe = "p-anchored-overlay", bt = "p-collapsible", rn = "p-overlay-mask", w = (e, t) => ({ props: t ? {
5932
5953
  styles: e,
5933
5954
  motionProps: { name: t }
5934
5955
  } : { styles: e } }), oe = (e) => ({ props: { motionProps: { name: e } } }), fm = {
5935
- "Accordion.Root": w(es, bt),
5936
- "AutoComplete.Root": w(ts),
5956
+ "Accordion.Root": w(ts, bt),
5957
+ "AutoComplete.Root": w(ns),
5937
5958
  "AutoComplete.Popup": oe(qe),
5938
- "Avatar.Root": w(ns),
5939
- AvatarGroup: w(os),
5940
- Badge: w(as),
5941
- "Breadcrumb.Root": w(rs),
5942
- Button: w(is),
5943
- ButtonGroup: w(ss),
5944
- "Card.Root": w(ls),
5945
- "Carousel.Root": w(cs),
5946
- "Checkbox.Root": w(ds),
5947
- CheckboxGroup: w(us),
5948
- "Chip.Root": w(ps),
5949
- "Compare.Root": w(ms),
5950
- "ContextMenu.Root": w(hs),
5959
+ "Avatar.Root": w(os),
5960
+ AvatarGroup: w(as),
5961
+ Badge: w(rs),
5962
+ "Breadcrumb.Root": w(is),
5963
+ Button: w(ss),
5964
+ ButtonGroup: w(ls),
5965
+ "Card.Root": w(cs),
5966
+ "Carousel.Root": w(ds),
5967
+ "Checkbox.Root": w(us),
5968
+ CheckboxGroup: w(ps),
5969
+ "Chip.Root": w(ms),
5970
+ "Compare.Root": w(hs),
5971
+ "ContextMenu.Root": w(fs),
5951
5972
  "ContextMenu.Popup": oe(qe),
5952
- "DataTable.Root": w(fs),
5953
- "DataView.Root": w(gs),
5954
- "DatePicker.Root": w(vs),
5973
+ "DataTable.Root": w(gs),
5974
+ "DataView.Root": w(vs),
5975
+ "DatePicker.Root": w(bs),
5955
5976
  "DatePicker.Popup": oe(qe),
5956
- "Dialog.Root": w(bs),
5957
- "Dialog.Backdrop": oe(an),
5977
+ "Dialog.Root": w(ys),
5978
+ "Dialog.Backdrop": oe(rn),
5958
5979
  "Dialog.Popup": oe("p-dialog"),
5959
- Divider: w(ys),
5960
- "Drawer.Root": w(ws),
5961
- "Drawer.Backdrop": oe(an),
5980
+ Divider: w(ws),
5981
+ "Drawer.Root": w(Cs),
5982
+ "Drawer.Backdrop": oe(rn),
5962
5983
  "Drawer.Popup": oe("p-drawer"),
5963
- "Fieldset.Root": w(Cs, bt),
5964
- "FileUpload.Root": w(Ss),
5965
- FloatLabel: w(ks),
5984
+ "Fieldset.Root": w(Ss, bt),
5985
+ "FileUpload.Root": w(ks),
5986
+ FloatLabel: w(Ns),
5966
5987
  Fluid: w(Ts),
5967
- "Gallery.Root": w(Ns),
5968
- "IconField.Root": w(Ps),
5969
- IftaLabel: w(Is),
5970
- "Inplace.Root": w(Rs),
5971
- "InputColor.Root": w(Ds),
5972
- "InputGroup.Root": w(Os),
5973
- "InputNumber.Root": w(xs),
5974
- "InputOtp.Root": w(Fs),
5975
- InputPassword: w(Gs),
5976
- "InputTags.Root": w(Ms),
5977
- InputText: w(_s),
5978
- "Knob.Root": w($s),
5979
- Label: w(As),
5980
- "Listbox.Root": w(Ls),
5981
- "Menu.Root": w(Es),
5988
+ "Gallery.Root": w(Ps),
5989
+ "IconField.Root": w(Is),
5990
+ IftaLabel: w(Rs),
5991
+ "Inplace.Root": w(Ds),
5992
+ "InputColor.Root": w(Os),
5993
+ "InputGroup.Root": w(xs),
5994
+ "InputNumber.Root": w(Fs),
5995
+ "InputOtp.Root": w(Ms),
5996
+ InputPassword: w(Hs),
5997
+ "InputTags.Root": w(_s),
5998
+ InputText: w($s),
5999
+ "Knob.Root": w(As),
6000
+ Label: w(Ls),
6001
+ "Listbox.Root": w(Es),
6002
+ "Menu.Root": w(Bs),
5982
6003
  "Menu.Popup": oe(qe),
5983
- "Message.Root": w(Bs),
5984
- "MeterGroup.Root": w(Us),
5985
- NavigationMenu: w(js),
5986
- "OrganizationChart.Root": w(Vs),
5987
- OverlayBadge: w(qs),
5988
- "Paginator.Root": w(Ws),
5989
- "Panel.Root": w(zs, bt),
5990
- "Popover.Root": w(Hs),
6004
+ "Message.Root": w(Us),
6005
+ "MeterGroup.Root": w(js),
6006
+ NavigationMenu: w(Vs),
6007
+ "OrganizationChart.Root": w(qs),
6008
+ OverlayBadge: w(Ws),
6009
+ "Paginator.Root": w(zs),
6010
+ "Panel.Root": w(Gs, bt),
6011
+ "Popover.Root": w(Js),
5991
6012
  "Popover.Popup": oe(qe),
5992
- "ProgressBar.Root": w(Js),
5993
- "ProgressSpinner.Root": w(Ks),
5994
- "RadioButton.Root": w(Qs),
5995
- RadioButtonGroup: w(Ys),
5996
- "Rating.Root": w(Zs),
5997
- "ScrollArea.Root": w(Xs),
5998
- "Select.Root": w(el),
6013
+ "ProgressBar.Root": w(Ks),
6014
+ "ProgressSpinner.Root": w(Qs),
6015
+ "RadioButton.Root": w(Ys),
6016
+ RadioButtonGroup: w(Zs),
6017
+ "Rating.Root": w(Xs),
6018
+ "ScrollArea.Root": w(el),
6019
+ "Select.Root": w(tl),
5999
6020
  "Select.Popup": oe(qe),
6000
- "Sidebar.Root": w(nl),
6001
- "Sidebar.Layout": w(tl),
6002
- "Sidebar.Backdrop": oe(an),
6003
- Skeleton: w(ol),
6004
- "Slider.Root": w(al),
6005
- "SpeedDial.Root": w(rl),
6006
- "Splitter.Root": w(il),
6007
- "Stepper.Root": w(sl, bt),
6008
- "Tabs.Root": w(ll),
6009
- Tag: w(cl),
6010
- "Terminal.Root": w(dl),
6011
- Textarea: w(ul),
6012
- "Timeline.Root": w(pl),
6013
- "Toast.Root": w(ml),
6014
- "Toaster.Root": w(hl),
6015
- "ToggleButton.Root": w(fl),
6016
- ToggleButtonGroup: w(gl),
6017
- "ToggleSwitch.Root": w(vl),
6018
- "Toolbar.Root": w(bl),
6019
- "Tooltip.Root": w(yl),
6021
+ "Sidebar.Root": w(ol),
6022
+ "Sidebar.Layout": w(nl),
6023
+ "Sidebar.Backdrop": oe(rn),
6024
+ Skeleton: w(al),
6025
+ "Slider.Root": w(rl),
6026
+ "SpeedDial.Root": w(il),
6027
+ "Splitter.Root": w(sl),
6028
+ "Stepper.Root": w(ll, bt),
6029
+ "Tabs.Root": w(cl),
6030
+ Tag: w(dl),
6031
+ "Terminal.Root": w(ul),
6032
+ Textarea: w(pl),
6033
+ "Timeline.Root": w(ml),
6034
+ "Toast.Root": w(hl),
6035
+ "Toaster.Root": w(fl),
6036
+ "ToggleButton.Root": w(gl),
6037
+ ToggleButtonGroup: w(vl),
6038
+ "ToggleSwitch.Root": w(bl),
6039
+ "Toolbar.Root": w(yl),
6040
+ "Tooltip.Root": w(wl),
6020
6041
  "Tooltip.Popup": oe("p-tooltip"),
6021
- "Tree.Root": w(wl)
6022
- }, gm = oo.find((e) => e.name === "lara-light-blue") ?? oo[0], dg = ({ defaults: e, theme: t, ...n }) => {
6023
- const o = oi(gm);
6024
- return /* @__PURE__ */ i(Xi, {
6042
+ "Tree.Root": w(Cl)
6043
+ }, gm = ao.find((e) => e.name === "lara-light-blue") ?? ao[0], dg = ({ defaults: e, theme: t, ...n }) => {
6044
+ const o = ai(gm);
6045
+ return /* @__PURE__ */ i(es, {
6025
6046
  ...n,
6026
6047
  theme: t ?? o?.theme,
6027
6048
  defaults: hm(fm, e)
6028
6049
  });
6029
- }, ug = (e) => /* @__PURE__ */ i(ar, {
6050
+ }, ug = (e) => /* @__PURE__ */ i(rr, {
6030
6051
  strings: e.strings,
6031
6052
  onClose: e.onDismiss,
6032
6053
  children: /* @__PURE__ */ i(vm, { ...e })
6033
6054
  }), vm = (e) => {
6034
- const t = $(() => nr(e.subject), [e.subject]);
6055
+ const t = $(() => or(e.subject), [e.subject]);
6035
6056
  return t.opened ? /* @__PURE__ */ i(bm, {
6036
6057
  ...e,
6037
6058
  opened: t.subject
6038
- }, e.environment.runtime.id) : /* @__PURE__ */ i(rr, {
6059
+ }, e.environment.runtime.id) : /* @__PURE__ */ i(ir, {
6039
6060
  problem: t.problem,
6040
6061
  strings: e.strings
6041
6062
  });
6042
6063
  }, bm = ({ subject: e, environment: t, strings: n, layoutLabels: o, icons: a, paletteSources: r, initialSize: s, onChange: d, renderPaletteHost: u, opened: c }) => {
6043
- const l = wr(c, e.authoringTemplate, t), [m, g] = A(s ?? Et[Me.Desktop]), [b, f] = A(!0), p = $(() => Xa(n.layoutDrawer, o, a, r, n.packageTitles), [
6064
+ const l = Cr(c, e.authoringTemplate, t), [m, g] = A(s ?? Et[Me.Desktop]), [b, f] = A(!0), p = $(() => er(n.layoutDrawer, o, a, r, n.packageTitles), [
6044
6065
  n,
6045
6066
  o,
6046
6067
  a,
@@ -6052,7 +6073,7 @@ var qe = "p-anchored-overlay", bt = "p-collapsible", an = "p-overlay-mask", w =
6052
6073
  document: l.document,
6053
6074
  legacyElements: St(_, t.runtime.legacyTypeOf),
6054
6075
  windowSize: m,
6055
- layout: Tt(_),
6076
+ layout: Nt(_),
6056
6077
  changed: l.isDirty
6057
6078
  });
6058
6079
  }, [
@@ -6065,24 +6086,24 @@ var qe = "p-anchored-overlay", bt = "p-collapsible", an = "p-overlay-mask", w =
6065
6086
  const k = B((_) => {
6066
6087
  if (!Lt(_)) return;
6067
6088
  const q = l.selection, C = q && "children" in q ? l.selectedId : void 0;
6068
- _.kind === "layout" ? l.insertLayout(_.item, C, void 0) : l.insertComponent(Hn(_.componentName, _.package), C, void 0);
6069
- }, [l]), j = /* @__PURE__ */ i(Ya, {
6089
+ _.kind === "layout" ? l.insertLayout(_.item, C, void 0) : l.insertComponent(Jn(_.componentName, _.package), C, void 0);
6090
+ }, [l]), j = /* @__PURE__ */ i(Za, {
6070
6091
  drawers: p,
6071
6092
  closeLabel: n.closeDrawer,
6072
6093
  onActivate: k
6073
6094
  });
6074
- return /* @__PURE__ */ i(lr, {
6095
+ return /* @__PURE__ */ i(cr, {
6075
6096
  environment: t,
6076
6097
  children: /* @__PURE__ */ h("div", {
6077
6098
  className: "studio-screen-editor-workspace",
6078
6099
  children: [
6079
- u ? u(j) : /* @__PURE__ */ i(or, {
6100
+ u ? u(j) : /* @__PURE__ */ i(ar, {
6080
6101
  placement: "inline",
6081
6102
  children: j
6082
6103
  }),
6083
6104
  /* @__PURE__ */ i("div", {
6084
6105
  className: "studio-screen-editor-workspace__stage",
6085
- children: /* @__PURE__ */ i(hr, {
6106
+ children: /* @__PURE__ */ i(fr, {
6086
6107
  controller: l,
6087
6108
  environment: t,
6088
6109
  strings: n,
@@ -6101,13 +6122,13 @@ var qe = "p-anchored-overlay", bt = "p-collapsible", an = "p-overlay-mask", w =
6101
6122
  }),
6102
6123
  b && /* @__PURE__ */ i("aside", {
6103
6124
  className: "studio-screen-editor-workspace__inspector",
6104
- children: /* @__PURE__ */ i(Ja, {
6125
+ children: /* @__PURE__ */ i(Ka, {
6105
6126
  strings: n,
6106
6127
  controller: l,
6107
6128
  environment: t,
6108
6129
  authoringTemplate: e.authoringTemplate,
6109
6130
  onClose: () => f(!1),
6110
- structure: /* @__PURE__ */ i(Fa, {
6131
+ structure: /* @__PURE__ */ i(Ma, {
6111
6132
  roots: l.composition.roots,
6112
6133
  adapter: l.adapter,
6113
6134
  strings: n,
@@ -6130,7 +6151,7 @@ function ym(e) {
6130
6151
  for (const n of e) for (const o of n.parameters) t[`route.${o.name}`] ??= o.type;
6131
6152
  return t;
6132
6153
  }
6133
- var wm = new Set(Object.values(Rr)), Cm = new Set(Object.values(Ir));
6154
+ var wm = new Set(Object.values(Dr)), Cm = new Set(Object.values(Rr));
6134
6155
  function Sm(e) {
6135
6156
  return e.filter((t) => wm.has(t.resultShape) && t.origin.every((n) => Cm.has(n.kind))).map((t) => t);
6136
6157
  }
@@ -6142,7 +6163,7 @@ function pg(e) {
6142
6163
  stateChangeSlices: e.stateChangeSlices ?? [],
6143
6164
  destinations: e.destinations ?? [],
6144
6165
  availableSources: ym(t),
6145
- ...e.richText === !1 ? {} : { richText: e.richText ?? Cl },
6166
+ ...e.richText === !1 ? {} : { richText: e.richText ?? Sl },
6146
6167
  ...e.fileUpload ? { fileUpload: e.fileUpload } : {},
6147
6168
  ...e.templateScope ? { templateScope: e.templateScope } : {}
6148
6169
  };
@@ -6150,11 +6171,11 @@ function pg(e) {
6150
6171
  function km(e) {
6151
6172
  return e.flatMap((t) => t.iconLibrary ? [t.iconLibrary.catalog] : []);
6152
6173
  }
6153
- function Tm(e, t) {
6154
- const n = jr(e, t.map((o) => o.manifest));
6155
- return new Fr(n, km(t));
6174
+ function Nm(e, t) {
6175
+ const n = Vr(e, t.map((o) => o.manifest));
6176
+ return new Mr(n, km(t));
6156
6177
  }
6157
- var Nm = [
6178
+ var Tm = [
6158
6179
  "PrimeReact.Accordion",
6159
6180
  "PrimeReact.AutoComplete",
6160
6181
  "PrimeReact.Avatar",
@@ -6257,7 +6278,7 @@ var Nm = [
6257
6278
  "itemsControl",
6258
6279
  "stackPanel",
6259
6280
  "wrapPanel"
6260
- ], Pm = ["PrimeReact.Dialog"], Im = new Set(Nm.filter((e) => !Pm.includes(e))), Rm = [
6281
+ ], Pm = ["PrimeReact.Dialog"], Im = new Set(Tm.filter((e) => !Pm.includes(e))), Rm = [
6261
6282
  {
6262
6283
  value: de.None,
6263
6284
  label: "Run directly"
@@ -6275,7 +6296,7 @@ function Dm(e) {
6275
6296
  return !e.component.endsWith(":action") || e.properties.some((t) => t.path === "presentation") ? e : {
6276
6297
  ...e,
6277
6298
  properties: [...e.properties, {
6278
- path: Wn,
6299
+ path: zn,
6279
6300
  label: "Presentation",
6280
6301
  group: "Behavior",
6281
6302
  valueType: x.Enum,
@@ -6291,7 +6312,7 @@ function xm(e) {
6291
6312
  }
6292
6313
  var Fm = (e) => e.replace(/([A-Z])/g, " $1").replace(/^./, (t) => t.toUpperCase());
6293
6314
  function Mm(e) {
6294
- const t = Yn(e.component, e.component.slice(e.component.lastIndexOf(":") + 1));
6315
+ const t = Zn(e.component, e.component.slice(e.component.lastIndexOf(":") + 1));
6295
6316
  if (!t) return e;
6296
6317
  const n = new Set(e.properties.map((a) => a.path)), o = Object.entries(t).filter(([a]) => !n.has(a)).map(([a, r]) => ({
6297
6318
  path: a,
@@ -6305,15 +6326,15 @@ function Mm(e) {
6305
6326
  properties: [...e.properties, ...o]
6306
6327
  };
6307
6328
  }
6308
- var Go = "Placement", _m = [{
6329
+ var Ho = "Placement", _m = [{
6309
6330
  path: _e,
6310
6331
  label: "Left",
6311
- group: Go,
6332
+ group: Ho,
6312
6333
  valueType: x.Number
6313
6334
  }, {
6314
6335
  path: $e,
6315
6336
  label: "Top",
6316
- group: Go,
6337
+ group: Ho,
6317
6338
  valueType: x.Number
6318
6339
  }];
6319
6340
  function $m(e) {
@@ -6323,27 +6344,27 @@ function $m(e) {
6323
6344
  properties: [...e.properties, ..._m.filter((n) => !t.has(n.path))]
6324
6345
  };
6325
6346
  }
6326
- var Ho = "PrimeReact", Am = 1;
6347
+ var Jo = "PrimeReact", Am = 1;
6327
6348
  function Lm(e, t, n) {
6328
- const o = $n(e.map((l) => l.manifest)), a = e.flatMap((l) => l.descriptors ?? []), r = new Set(a.map((l) => l.component)), s = e.flatMap((l) => l.manifest.components.map((m) => ({
6329
- component: aa(l.manifest.name, m),
6349
+ const o = An(e.map((l) => l.manifest)), a = e.flatMap((l) => l.descriptors ?? []), r = new Set(a.map((l) => l.component)), s = e.flatMap((l) => l.manifest.components.map((m) => ({
6350
+ component: ra(l.manifest.name, m),
6330
6351
  displayName: m,
6331
6352
  properties: []
6332
6353
  }))).filter((l) => !r.has(l.component)), d = [...a, ...s].map(Dm).map(Mm).map($m), u = [...d, ...Em(d, o, t)], c = new Set(Object.values(o).flat());
6333
6354
  return {
6334
6355
  id: Am++,
6335
6356
  bundles: e,
6336
- registry: ia(e),
6357
+ registry: sa(e),
6337
6358
  packages: o,
6338
6359
  descriptors: u,
6339
- catalog: $r(u),
6360
+ catalog: Ar(u),
6340
6361
  profile: t,
6341
6362
  ...n ? { appearance: n } : {},
6342
- icons: Tm(t.packages, e),
6343
- iconAdapters: Zr(e),
6363
+ icons: Nm(t.packages, e),
6364
+ iconAdapters: Xr(e),
6344
6365
  isKnownComponent: (l) => c.has(l),
6345
6366
  legacyTypeOf: (l) => {
6346
- const m = _n(l, t, o), g = m?.package === Ho ? `${Ho}.${Ta(m.name)}` : void 0;
6367
+ const m = $n(l, t, o), g = m?.package === Jo ? `${Jo}.${Ta(m.name)}` : void 0;
6347
6368
  return g !== void 0 && Im.has(g) ? g : void 0;
6348
6369
  }
6349
6370
  };
@@ -6351,7 +6372,7 @@ function Lm(e, t, n) {
6351
6372
  function Em(e, t, n) {
6352
6373
  const o = [];
6353
6374
  for (const a of new Set(Object.values(t).flat())) {
6354
- const r = _n(a, n, t), s = r && e.find((d) => d.component === aa(r.package, r.name));
6375
+ const r = $n(a, n, t), s = r && e.find((d) => d.component === ra(r.package, r.name));
6355
6376
  s && o.push({
6356
6377
  ...s,
6357
6378
  component: a
@@ -6359,8 +6380,8 @@ function Em(e, t, n) {
6359
6380
  }
6360
6381
  return o;
6361
6382
  }
6362
- var Zn = "Cratis.Icons.Lucide", Bm = {
6363
- name: Zn,
6383
+ var Xn = "Cratis.Icons.Lucide", Bm = {
6384
+ name: Xn,
6364
6385
  version: "1.52.0",
6365
6386
  kind: Dt.IconLibrary,
6366
6387
  dependencies: [],
@@ -6382,10 +6403,10 @@ var Zn = "Cratis.Icons.Lucide", Bm = {
6382
6403
  iconCount: 1858
6383
6404
  }
6384
6405
  }, Um = {
6385
- library: Zn,
6406
+ library: Xn,
6386
6407
  loadEntries: async () => (await import("./catalog-CZx3FR-E.js")).default
6387
- }, jm = Sl, Vm = {
6388
- library: Zn,
6408
+ }, jm = kl, Vm = {
6409
+ library: Xn,
6389
6410
  loadGlyph: async ({ key: e }) => (await jm[e]?.())?.default
6390
6411
  }, qm = {
6391
6412
  manifest: Bm,
@@ -6395,16 +6416,16 @@ var Zn = "Cratis.Icons.Lucide", Bm = {
6395
6416
  adapter: Vm
6396
6417
  }
6397
6418
  }, dt = [
6398
- ra,
6399
- Ca,
6400
- sa,
6401
- wa,
6402
- ba,
6419
+ ia,
6403
6420
  Sa,
6421
+ la,
6422
+ Ca,
6423
+ ya,
6424
+ ka,
6404
6425
  qm
6405
- ], Wm = dt.map((e) => e.manifest), mg = ia(dt), hg = $n(Wm), fg = dt.flatMap((e) => e.themes ?? []);
6426
+ ], Wm = dt.map((e) => e.manifest), mg = sa(dt), hg = An(Wm), fg = dt.flatMap((e) => e.themes ?? []);
6406
6427
  function zm(e) {
6407
- const t = Mr(e).map((a) => a.name), n = no(e, Dt.Styling).map((a) => a.name), o = no(e, Dt.Blueprint)[0];
6428
+ const t = _r(e).map((a) => a.name), n = oo(e, Dt.Styling).map((a) => a.name), o = oo(e, Dt.Blueprint)[0];
6408
6429
  return o ? [
6409
6430
  ...t,
6410
6431
  ...n,
@@ -6412,17 +6433,17 @@ function zm(e) {
6412
6433
  ] : [...t, ...n];
6413
6434
  }
6414
6435
  function Gm(e, t) {
6415
- return t.filter((n) => Er(n, e));
6436
+ return t.filter((n) => Br(n, e));
6416
6437
  }
6417
6438
  function Hm(e, t) {
6418
- return [...new Set(Object.values(t).flat())].map((n) => _n(n, e, t)).filter((n) => n !== void 0 && n.shadows.length > 0).sort((n, o) => n.name.localeCompare(o.name));
6439
+ return [...new Set(Object.values(t).flat())].map((n) => $n(n, e, t)).filter((n) => n !== void 0 && n.shadows.length > 0).sort((n, o) => n.name.localeCompare(o.name));
6419
6440
  }
6420
- var rn = /* @__PURE__ */ (function(e) {
6441
+ var sn = /* @__PURE__ */ (function(e) {
6421
6442
  return e.Fallback = "fallback", e.Explicit = "explicit", e.Automatic = "automatic", e;
6422
6443
  })({});
6423
6444
  function Jm(e) {
6424
6445
  const t = [
6425
- On,
6446
+ xn,
6426
6447
  ...e.packages,
6427
6448
  e.shell,
6428
6449
  ...e.templatePacks
@@ -6432,10 +6453,10 @@ function Jm(e) {
6432
6453
  function Km(e, t) {
6433
6454
  return e.find((n) => n.manifest.name === t)?.manifest.layouts[0] ?? "";
6434
6455
  }
6435
- var Sr = "UI Profile";
6436
- function kr(e, t) {
6437
- const n = t.map((u) => u.manifest), o = Jm(e), a = Vr(o, n), r = Km(t, e.shell), s = {
6438
- name: Sr,
6456
+ var kr = "UI Profile";
6457
+ function Nr(e, t) {
6458
+ const n = t.map((u) => u.manifest), o = Jm(e), a = qr(o, n), r = Km(t, e.shell), s = {
6459
+ name: kr,
6439
6460
  targetPlatform: "web",
6440
6461
  packages: a.packages,
6441
6462
  layout: r.length > 0 ? r : void 0,
@@ -6452,27 +6473,27 @@ function kr(e, t) {
6452
6473
  description: c.description,
6453
6474
  version: c.version,
6454
6475
  kind: c.kind,
6455
- inclusion: u === On ? rn.Fallback : d.has(u) ? rn.Explicit : rn.Automatic,
6476
+ inclusion: u === xn ? sn.Fallback : d.has(u) ? sn.Explicit : sn.Automatic,
6456
6477
  requiredBy: n.filter((l) => a.packages.includes(l.name) && l.dependencies.some((m) => m.name === u)).map((l) => l.name)
6457
6478
  }] : [];
6458
6479
  }),
6459
- collisions: Hm(s, $n(n)),
6480
+ collisions: Hm(s, An(n)),
6460
6481
  compatibleThemes: Gm(s, t.flatMap((u) => u.themes ?? [])),
6461
6482
  layout: r,
6462
- isValid: Lr(a)
6483
+ isValid: Er(a)
6463
6484
  };
6464
6485
  }
6465
6486
  function Qm(e) {
6466
6487
  const t = e.map((s) => s.manifest), n = zm(t), o = n.find((s) => t.find((d) => d.name === s)?.kind === Dt.Blueprint) ?? "", a = {
6467
- packages: n.filter((s) => s !== o && s !== On),
6488
+ packages: n.filter((s) => s !== o && s !== xn),
6468
6489
  shell: o,
6469
6490
  templatePacks: [],
6470
6491
  theme: "",
6471
- colorScheme: Yi.Light,
6472
- navigationMode: Zi.Static,
6492
+ colorScheme: Zi.Light,
6493
+ navigationMode: Xi.Static,
6473
6494
  accent: "",
6474
6495
  defaultScreenTemplate: ""
6475
- }, r = kr(a, e).compatibleThemes.find((s) => !s.isDark);
6496
+ }, r = Nr(a, e).compatibleThemes.find((s) => !s.isDark);
6476
6497
  return {
6477
6498
  ...a,
6478
6499
  theme: r?.name ?? ""
@@ -6480,7 +6501,7 @@ function Qm(e) {
6480
6501
  }
6481
6502
  function Ym(e) {
6482
6503
  return {
6483
- name: Sr,
6504
+ name: kr,
6484
6505
  targetPlatform: "web",
6485
6506
  packages: [...e.resolvedPackages],
6486
6507
  layout: e.layout.length > 0 ? e.layout : void 0,
@@ -6488,33 +6509,33 @@ function Ym(e) {
6488
6509
  };
6489
6510
  }
6490
6511
  function gg(e, t = dt, n) {
6491
- const o = e ? Ym(e) : kr(Qm(t), t).profile;
6512
+ const o = e ? Ym(e) : Nr(Qm(t), t).profile;
6492
6513
  return Lm(t, o, n);
6493
6514
  }
6494
6515
  function Zm(e, t) {
6495
- const n = Nn(e), o = ea(e, {
6516
+ const n = Pn(e), o = ta(e, {
6496
6517
  kind: Rt.Screen,
6497
6518
  name: ge
6498
- }), a = e.instanceContributions.length > 0 ? Ur(o, e.instanceContributions, t) : void 0;
6519
+ }), a = e.instanceContributions.length > 0 ? jr(o, e.instanceContributions, t) : void 0;
6499
6520
  return {
6500
6521
  element: n.element,
6501
6522
  configuration: a
6502
6523
  };
6503
6524
  }
6504
6525
  var Xm = ({ document: e, runtime: t, resolveBinding: n, registry: o = t.registry }) => {
6505
- const { element: a, configuration: r } = $(() => Zm(e, t.catalog), [e, t.catalog]), s = $(() => ya(a, t.profile, t.packages), [
6526
+ const { element: a, configuration: r } = $(() => Zm(e, t.catalog), [e, t.catalog]), s = $(() => wa(a, t.profile, t.packages), [
6506
6527
  a,
6507
6528
  t.profile,
6508
6529
  t.packages
6509
- ]), d = $(() => Qn(t), [t]);
6510
- return /* @__PURE__ */ i(oa, {
6530
+ ]), d = $(() => Yn(t), [t]);
6531
+ return /* @__PURE__ */ i(aa, {
6511
6532
  theme: d,
6512
- className: `studio-profile-theme ${Kn(d)}`,
6513
- children: /* @__PURE__ */ i(ta, {
6533
+ className: `studio-profile-theme ${Qn(d)}`,
6534
+ children: /* @__PURE__ */ i(na, {
6514
6535
  registry: t.iconAdapters,
6515
- children: /* @__PURE__ */ i(va, {
6536
+ children: /* @__PURE__ */ i(ba, {
6516
6537
  storage: null,
6517
- children: /* @__PURE__ */ i(na, {
6538
+ children: /* @__PURE__ */ i(oa, {
6518
6539
  element: s,
6519
6540
  registry: o,
6520
6541
  resolveBinding: n,
@@ -6525,12 +6546,12 @@ var Xm = ({ document: e, runtime: t, resolveBinding: n, registry: o = t.registry
6525
6546
  });
6526
6547
  }, eh = (e) => {
6527
6548
  const t = _t(e);
6528
- return dr.has(t) || t in cr;
6549
+ return ur.has(t) || t in dr;
6529
6550
  }, th = (e, t) => {
6530
6551
  const n = (o) => {
6531
6552
  const a = eh(o.element.componentName), r = $(() => ({
6532
6553
  ...o.element,
6533
- properties: ur(e, o.element.componentName, o.element.properties)
6554
+ properties: pr(e, o.element.componentName, o.element.properties)
6534
6555
  }), [o.element]);
6535
6556
  return a ? null : /* @__PURE__ */ i($t, {
6536
6557
  fallback: null,
@@ -6547,7 +6568,7 @@ function nh(e) {
6547
6568
  }
6548
6569
  var vg = 240, bg = 112;
6549
6570
  function oh(e, t = 240, n = Number.POSITIVE_INFINITY) {
6550
- const o = e && e.width > 0 && e.height > 0 ? e : sr({
6571
+ const o = e && e.width > 0 && e.height > 0 ? e : lr({
6551
6572
  width: 1 / 0,
6552
6573
  height: 1 / 0
6553
6574
  }), a = o.width, r = Math.max(1, o.height - 40), s = Math.min(t / a, n / r);
@@ -6577,17 +6598,17 @@ var rh = [
6577
6598
  "#fa0",
6578
6599
  "#3c3"
6579
6600
  ], ih = () => {
6580
- }, Jo = 16, yg = ({ document: e, runtime: t, windowSize: n, width: o, title: a, openTitle: r, onClick: s, placeholder: d }) => {
6601
+ }, Ko = 16, yg = ({ document: e, runtime: t, windowSize: n, width: o, title: a, openTitle: r, onClick: s, placeholder: d }) => {
6581
6602
  const u = Z(null), c = ah(u), l = $(() => oh(n, o ?? 240, o === void 0 ? 112 : void 0), [
6582
6603
  n?.width,
6583
6604
  n?.height,
6584
6605
  o
6585
- ]), m = $(() => Qn(t), [t]), g = $(() => nh(t.registry), [t.registry]), b = {
6606
+ ]), m = $(() => Yn(t), [t]), g = $(() => nh(t.registry), [t.registry]), b = {
6586
6607
  width: l.width,
6587
- height: Jo + l.bodyHeight
6608
+ height: Ko + l.bodyHeight
6588
6609
  }, f = /* @__PURE__ */ h(se, { children: [/* @__PURE__ */ h("div", {
6589
6610
  className: "screen-thumbnail__title-bar",
6590
- style: { height: Jo },
6611
+ style: { height: Ko },
6591
6612
  children: [rh.map((v) => /* @__PURE__ */ i("span", {
6592
6613
  className: "screen-thumbnail__light",
6593
6614
  style: { borderColor: v }
@@ -6596,7 +6617,7 @@ var rh = [
6596
6617
  children: a
6597
6618
  })]
6598
6619
  }), /* @__PURE__ */ i("div", {
6599
- className: `screen-thumbnail__body ${Kn(m)}`,
6620
+ className: `screen-thumbnail__body ${Qn(m)}`,
6600
6621
  "data-screen-thumbnail-body": "",
6601
6622
  inert: !0,
6602
6623
  children: c ? /* @__PURE__ */ i("div", {
@@ -6641,10 +6662,10 @@ var rh = [
6641
6662
  function wg(e) {
6642
6663
  if (!e) return;
6643
6664
  if (We.has(e)) return We.get(e);
6644
- const t = tr(e), n = t.readable ? t.document : void 0;
6665
+ const t = nr(e), n = t.readable ? t.document : void 0;
6645
6666
  return We.size >= sh && We.delete(We.keys().next().value), We.set(e, n), n;
6646
6667
  }
6647
- var Ko = {
6668
+ var Qo = {
6648
6669
  Compact: "Compact",
6649
6670
  Regular: "Regular"
6650
6671
  }, lh = {
@@ -6702,7 +6723,7 @@ var Ko = {
6702
6723
  closeInspector: "Close inspector",
6703
6724
  desktopPreview: "Desktop preview",
6704
6725
  mobilePreview: "Mobile preview",
6705
- sizeClass: (e, t) => `${Ko[e] ?? e} width, ${Ko[t] ?? t} height`,
6726
+ sizeClass: (e, t) => `${Qo[e] ?? e} width, ${Qo[t] ?? t} height`,
6706
6727
  viewportSize: (e, t) => `${e} × ${t}`,
6707
6728
  noSelection: "Select a component on the screen or in Structure to see its details.",
6708
6729
  nameLabel: "Name",
@@ -6748,6 +6769,7 @@ var Ko = {
6748
6769
  unsavedChanges: "Unsaved changes",
6749
6770
  allChangesSaved: "All changes saved",
6750
6771
  properties: {
6772
+ screenLabel: "Screen",
6751
6773
  diagnostics: "Problems",
6752
6774
  noProperties: "This component has no settings to change.",
6753
6775
  designTimeActions: "Package actions",
@@ -6765,7 +6787,7 @@ var Ko = {
6765
6787
  itemsLabel: "Items",
6766
6788
  addItem: "Add item",
6767
6789
  icon: lh,
6768
- json: Va,
6790
+ json: qa,
6769
6791
  templates: {
6770
6792
  label: "Screen template",
6771
6793
  choose: "Template",
@@ -6961,181 +6983,181 @@ var Ko = {
6961
6983
  [J.NoChange]: "It is already there."
6962
6984
  }
6963
6985
  }, Sg = {
6964
- [N.Stack]: "Stack",
6965
- [N.Row]: "Row",
6966
- [N.Grid]: "Grid",
6967
- [N.Container]: "Container",
6968
- [N.Wrap]: "Wrap",
6969
- [N.Canvas]: "Canvas"
6986
+ [T.Stack]: "Stack",
6987
+ [T.Row]: "Row",
6988
+ [T.Grid]: "Grid",
6989
+ [T.Container]: "Container",
6990
+ [T.Wrap]: "Wrap",
6991
+ [T.Canvas]: "Canvas"
6970
6992
  }, ch = {
6971
- [N.Stack]: Ge,
6972
- [N.Row]: Ci,
6973
- [N.Grid]: fa,
6974
- [N.Container]: An,
6975
- [N.Wrap]: Ln,
6976
- [N.Canvas]: Ki
6993
+ [T.Stack]: Ge,
6994
+ [T.Row]: Si,
6995
+ [T.Grid]: ga,
6996
+ [T.Container]: Ln,
6997
+ [T.Wrap]: En,
6998
+ [T.Canvas]: Qi
6977
6999
  }, dh = {
6978
- text: ai,
7000
+ text: ri,
6979
7001
  button: wt,
6980
- card: fi,
6981
- data: vi,
6982
- action: si,
6983
- section: xi,
6984
- navigate: hi,
7002
+ card: gi,
7003
+ data: bi,
7004
+ action: li,
7005
+ section: Fi,
7006
+ navigate: fi,
6985
7007
  title: yt,
6986
7008
  table: Xe,
6987
7009
  summary: zt,
6988
- field: ua,
6989
- code: pi,
6990
- file: ln,
7010
+ field: pa,
7011
+ code: mi,
7012
+ file: cn,
6991
7013
  navigationBar: Ge,
6992
- inputText: po,
6993
- inputTextarea: ao,
6994
- inputNumber: mo,
6995
- password: Di,
6996
- floatLabel: Mi,
6997
- iconField: go,
6998
- dropdown: io,
7014
+ inputText: mo,
7015
+ inputTextarea: ro,
7016
+ inputNumber: ho,
7017
+ password: Oi,
7018
+ floatLabel: _i,
7019
+ iconField: vo,
7020
+ dropdown: so,
6999
7021
  multiSelect: Gt,
7000
- listBox: pa,
7022
+ listBox: ma,
7001
7023
  selectButton: Pe,
7002
- checkbox: so,
7003
- multiStateCheckbox: Li,
7024
+ checkbox: lo,
7025
+ multiStateCheckbox: Ei,
7004
7026
  radioButton: Jt,
7005
- toggleSwitch: ga,
7006
- slider: cn,
7007
- rating: Ui,
7008
- knob: _i,
7009
- calendar: ro,
7027
+ toggleSwitch: va,
7028
+ slider: dn,
7029
+ rating: ji,
7030
+ knob: $i,
7031
+ calendar: io,
7010
7032
  colorPicker: Ht,
7011
7033
  chips: pt,
7012
- autoComplete: go,
7013
- treeSelect: dn,
7034
+ autoComplete: vo,
7035
+ treeSelect: un,
7014
7036
  editor: qt,
7015
- fileUpload: wi,
7037
+ fileUpload: Ci,
7016
7038
  splitButton: jt,
7017
- speedDial: bi,
7039
+ speedDial: yi,
7018
7040
  buttonGroup: Pe,
7019
7041
  dataTable: Xe,
7020
- dataView: bo,
7021
- dataScroller: Vi,
7022
- tree: dn,
7042
+ dataView: yo,
7043
+ dataScroller: qi,
7044
+ tree: un,
7023
7045
  treeTable: Kt,
7024
- timeline: ki,
7025
- paginator: ri,
7046
+ timeline: Ni,
7047
+ paginator: ii,
7026
7048
  orderList: Gt,
7027
- pickList: ui,
7028
- organizationChart: $i,
7029
- chart: la,
7030
- panel: An,
7031
- accordion: Ii,
7032
- fieldset: ci,
7049
+ pickList: pi,
7050
+ organizationChart: Ai,
7051
+ chart: ca,
7052
+ panel: Ln,
7053
+ accordion: Ri,
7054
+ fieldset: di,
7033
7055
  divider: Pe,
7034
7056
  splitter: Vt,
7035
- scrollPanel: yi,
7036
- tabView: uo,
7037
- toolbar: Wi,
7057
+ scrollPanel: wi,
7058
+ tabView: po,
7059
+ toolbar: zi,
7038
7060
  stepper: Qt,
7039
7061
  dialog: Ct,
7040
7062
  confirmDialog: Wt,
7041
- overlayPanel: Qi,
7063
+ overlayPanel: Yi,
7042
7064
  sidebar: Vt,
7043
- tooltip: mi,
7065
+ tooltip: hi,
7044
7066
  menu: Ge,
7045
7067
  menubar: Ge,
7046
7068
  breadcrumb: jt,
7047
- tabMenu: uo,
7069
+ tabMenu: po,
7048
7070
  steps: Qt,
7049
7071
  tieredMenu: Kt,
7050
- panelMenu: Ln,
7072
+ panelMenu: En,
7051
7073
  contextMenu: wt,
7052
- megaMenu: bo,
7074
+ megaMenu: yo,
7053
7075
  dock: Pe,
7054
- message: ca,
7055
- inlineMessage: Pi,
7056
- toast: ii,
7057
- image: da,
7058
- galleria: ho,
7059
- carousel: ho,
7060
- avatar: Ji,
7061
- badge: li,
7076
+ message: da,
7077
+ inlineMessage: Ii,
7078
+ toast: si,
7079
+ image: ua,
7080
+ galleria: fo,
7081
+ carousel: fo,
7082
+ avatar: Ki,
7083
+ badge: ci,
7062
7084
  chip: pt,
7063
7085
  tag: pt,
7064
7086
  progressBar: Ti,
7065
- progressSpinner: vo,
7066
- skeleton: Bi,
7087
+ progressSpinner: bo,
7088
+ skeleton: Ui,
7067
7089
  scrollTop: jt,
7068
- blockUI: fo,
7090
+ blockUI: go,
7069
7091
  inplace: qt,
7070
- terminal: qi,
7071
- page: ln,
7092
+ terminal: Wi,
7093
+ page: cn,
7072
7094
  dataPage: Xe,
7073
7095
  formElement: zt,
7074
- singleResult: Ni,
7075
- queryInputForm: co,
7096
+ singleResult: Pi,
7097
+ queryInputForm: uo,
7076
7098
  commandForm: zt,
7077
7099
  observableDataTable: Xe,
7078
- inputTextField: po,
7079
- numberField: mo,
7080
- checkboxField: so,
7081
- textAreaField: ao,
7082
- dropdownField: io,
7083
- sliderField: cn,
7084
- calendarField: ro,
7100
+ inputTextField: mo,
7101
+ numberField: ho,
7102
+ checkboxField: lo,
7103
+ textAreaField: ro,
7104
+ dropdownField: so,
7105
+ sliderField: dn,
7106
+ calendarField: io,
7085
7107
  colorPickerField: Ht,
7086
7108
  multiSelectField: Gt,
7087
7109
  chipsField: pt,
7088
7110
  radioButtonField: Jt,
7089
7111
  radioGroupField: Jt,
7090
7112
  confirmationDialog: Wt,
7091
- busyIndicatorDialog: vo,
7113
+ busyIndicatorDialog: bo,
7092
7114
  commandDialog: Ct,
7093
7115
  stepperCommandDialog: Qt,
7094
- icon: ha,
7116
+ icon: fa,
7095
7117
  errorBoundary: Wt,
7096
7118
  objectContentEditor: qt,
7097
7119
  objectNavigationalBar: Kt,
7098
- schemaEditor: lo,
7099
- timeMachine: di,
7100
- filterPanel: co,
7120
+ schemaEditor: co,
7121
+ timeMachine: ui,
7122
+ filterPanel: uo,
7101
7123
  toolbarButton: wt,
7102
7124
  toolbarGroup: Pe,
7103
7125
  toolbarSeparator: Pe,
7104
- appShell: sn,
7126
+ appShell: ln,
7105
7127
  fullPageShell: Ct,
7106
7128
  topbar: Ge,
7107
- menuItem: Ri,
7129
+ menuItem: Di,
7108
7130
  footer: Pe,
7109
7131
  rightPanel: Vt,
7110
- configPanel: lo,
7132
+ configPanel: co,
7111
7133
  pageHeader: yt,
7112
- mask: fo,
7113
- logo: ji,
7114
- userMenu: Hi,
7134
+ mask: go,
7135
+ logo: Vi,
7136
+ userMenu: Ji,
7115
7137
  themeSwitcher: Ht,
7116
- layoutModeSwitcher: sn,
7138
+ layoutModeSwitcher: ln,
7117
7139
  arcPageHeader: yt
7118
7140
  }, uh = [
7119
7141
  [/dialog/i, Ct],
7120
7142
  [/table|grid/i, Xe],
7121
7143
  [/menu|bar$/i, Ge],
7122
- [/chart/i, la],
7123
- [/field|input/i, ua],
7144
+ [/chart/i, ca],
7145
+ [/field|input/i, pa],
7124
7146
  [/button/i, wt],
7125
- [/image|media/i, da],
7126
- [/list/i, pa],
7127
- [/panel/i, An],
7128
- [/message|toast/i, ca],
7129
- [/tree/i, dn],
7130
- [/page|screen/i, ln]
7131
- ], ph = (e) => dh[e] ?? uh.find(([t]) => t.test(e))?.[1] ?? ma, mh = {
7132
- [ra.manifest.name]: ha,
7133
- [sa.manifest.name]: ga,
7134
- [wa.manifest.name]: ma,
7135
- [ba.manifest.name]: Ln,
7136
- [Sa.manifest.name]: yt,
7137
- [Ca.manifest.name]: Fi
7138
- }, hh = gi, kg = {
7147
+ [/image|media/i, ua],
7148
+ [/list/i, ma],
7149
+ [/panel/i, Ln],
7150
+ [/message|toast/i, da],
7151
+ [/tree/i, un],
7152
+ [/page|screen/i, cn]
7153
+ ], ph = (e) => dh[e] ?? uh.find(([t]) => t.test(e))?.[1] ?? ha, mh = {
7154
+ [ia.manifest.name]: fa,
7155
+ [la.manifest.name]: va,
7156
+ [Ca.manifest.name]: ha,
7157
+ [ya.manifest.name]: En,
7158
+ [ka.manifest.name]: yt,
7159
+ [Sa.manifest.name]: Mi
7160
+ }, hh = vi, kg = {
7139
7161
  layout: (e) => {
7140
7162
  const t = ch[e];
7141
7163
  return /* @__PURE__ */ i(t, { "aria-hidden": "true" });
@@ -7145,17 +7167,17 @@ var Ko = {
7145
7167
  return /* @__PURE__ */ i(t, { "aria-hidden": "true" });
7146
7168
  },
7147
7169
  drawer: {
7148
- layout: /* @__PURE__ */ i(fa, { "aria-hidden": "true" }),
7170
+ layout: /* @__PURE__ */ i(ga, { "aria-hidden": "true" }),
7149
7171
  package: (e) => {
7150
7172
  const t = mh[e] ?? hh;
7151
7173
  return /* @__PURE__ */ i(t, { "aria-hidden": "true" });
7152
7174
  }
7153
7175
  }
7154
- }, Tg = dt.map((e) => ({
7176
+ }, Ng = dt.map((e) => ({
7155
7177
  package: e.manifest.name,
7156
7178
  components: e.manifest.components
7157
7179
  }));
7158
- function Ng(e, t, n) {
7180
+ function Tg(e, t, n) {
7159
7181
  return e.map((o) => ({
7160
7182
  type: o.type,
7161
7183
  name: t[o.item],
@@ -7170,46 +7192,46 @@ export {
7170
7192
  sg as CommandFormMode,
7171
7193
  Ch as DestinationKind,
7172
7194
  iu as JsonPropertyField,
7173
- N as LayoutItem,
7195
+ T as LayoutItem,
7174
7196
  Q as Ownership,
7175
7197
  Xm as PlayScreenView,
7176
7198
  ke as SceneDocumentProblem,
7177
- lr as ScreenEditorControlProviders,
7199
+ cr as ScreenEditorControlProviders,
7178
7200
  cg as ScreenEditorOverlay,
7179
7201
  dg as ScreenEditorPrimeReactProvider,
7180
- hr as ScreenEditorWindow,
7202
+ fr as ScreenEditorWindow,
7181
7203
  ug as ScreenEditorWorkspace,
7182
7204
  yg as ScreenThumbnail,
7183
7205
  J as StructureEditRejection,
7184
7206
  lg as bindingSourceChoices,
7185
7207
  Ku as browserWindowSizeStorage,
7186
- Xa as buildPalette,
7208
+ er as buildPalette,
7187
7209
  pg as createScreenEditorEnvironment,
7188
7210
  Lm as createScreenEditorRuntime,
7189
7211
  Qu as createWindowSizeMemory,
7190
- Va as defaultJsonPropertyFieldStrings,
7212
+ qa as defaultJsonPropertyFieldStrings,
7191
7213
  ch as defaultLayoutIcons,
7192
7214
  Sg as defaultLayoutLabels,
7193
7215
  kg as defaultPaletteIcons,
7194
- Tg as defaultPaletteSources,
7216
+ Ng as defaultPaletteSources,
7195
7217
  Cg as defaultScreenEditorStrings,
7196
- sr as defaultWindowSize,
7218
+ lr as defaultWindowSize,
7197
7219
  ep as fitWindowSize,
7198
- qa as formatJson,
7199
- Tu as isJsonProperty,
7220
+ Wa as formatJson,
7221
+ Nu as isJsonProperty,
7200
7222
  ku as isJsonValueType,
7201
7223
  Zu as isLegacyDefaultWindow,
7202
7224
  Su as jsonValueType,
7203
7225
  eu as readJson,
7204
- tr as readSceneDocument,
7226
+ nr as readSceneDocument,
7205
7227
  wg as readThumbnailDocument,
7206
7228
  Xu as resolveInitialWindowSize,
7207
- Dc as runDesignTimeAction,
7229
+ Oc as runDesignTimeAction,
7208
7230
  fm as screenEditorPrimeReactDefaults,
7209
7231
  gg as screenEditorRuntimeForProfile,
7210
7232
  oh as thumbnailGeometry,
7211
7233
  bg as thumbnailMaxBodyHeight,
7212
7234
  vg as thumbnailWidth,
7213
- Ng as toLayoutContainerDescriptors,
7235
+ Tg as toLayoutContainerDescriptors,
7214
7236
  Sm as toSceneCandidates
7215
7237
  };