@cratis/event-models 0.184.0 → 0.186.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,107 +1,107 @@
1
- import { c as Ma, d as Aa, f as Le, l as Gi, m as eo, p as _a, s as $a, t as Hi, u as Jt } from "./defaultStructuredEditorStrings-Ch1I0Lci.js";
1
+ import { c as Aa, d as _a, f as Le, l as Gi, m as eo, p as $a, s as La, t as Hi, u as Jt } from "./defaultStructuredEditorStrings-Ch1I0Lci.js";
2
2
  import { t as Vi } from "./QueryBindingEditor-3C_utVJm.js";
3
- import { i as La, n as Ba, r as ja, t as Ua } from "./toTemplateSources-DHyjt_ff.js";
4
- import { _ as Wa, a as mg, c as Lo, d as Ji, f as za, g as hg, h as qa, i as Ka, l as fg, m as Ga, n as gg, o as rn, p as Qi, r as Ha, s as vg, t as bg, u as yg, v as wg, y as kg } from "./structuredValue-vqCZttsk.js";
5
- import { a as fe, n as Va, r as Ja } from "./iconDiagnostics-Ds4CnqD0.js";
6
- import { t as Ng } from "./StructuredValueEditor-CcwyOga0.js";
7
- import { createContext as Qa, createElement as ht, useCallback as U, useContext as Ya, useEffect as se, useId as Za, useLayoutEffect as ve, useMemo as L, useRef as J, useState as W } from "react";
3
+ import { i as Ba, n as ja, r as Ua, t as Wa } from "./toTemplateSources-DHyjt_ff.js";
4
+ import { _ as za, a as hg, c as Lo, d as Ji, f as qa, g as fg, h as Ka, i as Ga, l as gg, m as Ha, n as vg, o as rn, p as Qi, r as Va, s as bg, t as yg, u as wg, v as kg, y as Sg } from "./structuredValue-vqCZttsk.js";
5
+ import { a as fe, n as Ja, r as Qa } from "./iconDiagnostics-Ds4CnqD0.js";
6
+ import { t as Tg } from "./StructuredValueEditor-CcwyOga0.js";
7
+ import { createContext as Ya, createElement as ht, useCallback as U, useContext as Za, useEffect as se, useId as Xa, useLayoutEffect as ve, useMemo as L, useRef as J, useState as W } from "react";
8
8
  import { LayoutArrangement as H, PrototypeOverlayFrame as Yi } from "@cratis/scene/ScreenEditor";
9
- import { BindingMode as xg, BindingNullBehavior as Og, BindingSourceKind as Rg, BindingSourceKind as Nt, CollectionOperation as ge, ComponentCategory as Xa, DestinationKind as Dg, DiagnosticCode as es, EditTarget as ts, EditingScopeKind as qt, FlowContainerKind as an, FormGenerationMode as me, FormWidthUnit as be, GridUnitType as ns, HorizontalAlignment as to, InteractionActionKind as it, InteractionTriggerKind as Zi, NavigationRegionKind as Bo, NavigationRegionMode as Ne, Orientation as rt, PackageKind as Kt, PropertyEditorKind as Q, PropertyValueType as K, ProvenanceKind as jo, QueryOriginKind as os, QueryResultShape as is, SceneEditKind as V, SceneNodeKind as rs, TemplateScope as as, ValueSource as Xi, VerticalAlignment as no, Visibility as oo, componentCategories as ss } from "@cratis/scene.model";
10
- import { ApplicationStructureIndex as Qt, EffectiveIconCatalog as ls, NavigationEditKind as Uo, TemplateCatalogKind as er, ToolbarDiagnosticSeverity as cs, addNavItem as ds, applicableTemplates as us, applyEdit as tr, applyNavigationEdits as ps, baseComponentLibraries as ms, componentArgumentSourcePrefix as hs, componentBadge as Wo, computeSizeClass as fs, corePackage as io, createDescriptorCatalog as gs, diagnoseNavigationRegions as vs, effectiveNavigation as nr, effectivePackages as or, elementNodeId as oe, findComponentDescriptor as ro, findLayoutTypeDescriptor as zo, inspect as ao, isCanvas as at, isDockPanel as bs, isExternalComponent as Ue, isGrid as so, isPackageSelectionValid as ys, isPanel as At, isStackPanel as lo, isThemeCompatible as ws, isWrapPanel as ks, matchComponentQuery as Ss, normalizeToolbarButton as Cs, packagesOfKind as qo, rankFrequentlyUsedComponents as Ns, resolveComponentName as wt, resolveEffectiveConfiguration as ir, resolveIconLibraries as Ts, resolvePackageDependencies as Is, resolveTemplateChain as co, resolveToolbarButton as Ps, setApplicationLogo as xs, switchRegionMode as rr, toComponentCatalog as Yt, toolbarButtonFromItem as uo, validateToolbarButtons as Os, validateValue as sn } from "@cratis/scene.engine";
9
+ import { BindingMode as Og, BindingNullBehavior as Rg, BindingSourceKind as Dg, BindingSourceKind as Nt, CollectionOperation as ge, ComponentCategory as es, DestinationKind as Eg, DiagnosticCode as ts, EditTarget as ns, EditingScopeKind as qt, FlowContainerKind as an, FormGenerationMode as me, FormWidthUnit as be, GridUnitType as os, HorizontalAlignment as to, InteractionActionKind as it, InteractionTriggerKind as Zi, NavigationRegionKind as Bo, NavigationRegionMode as Ne, Orientation as rt, PackageKind as Kt, PropertyEditorKind as Q, PropertyValueType as K, ProvenanceKind as jo, QueryOriginKind as is, QueryResultShape as rs, SceneEditKind as V, SceneNodeKind as as, TemplateScope as ss, ValueSource as Xi, VerticalAlignment as no, Visibility as oo, componentCategories as ls } from "@cratis/scene.model";
10
+ import { ApplicationStructureIndex as Qt, EffectiveIconCatalog as cs, NavigationEditKind as Uo, TemplateCatalogKind as er, ToolbarDiagnosticSeverity as ds, addNavItem as us, applicableTemplates as ps, applyEdit as tr, applyNavigationEdits as ms, baseComponentLibraries as hs, componentArgumentSourcePrefix as fs, componentBadge as Wo, computeSizeClass as gs, corePackage as io, createDescriptorCatalog as vs, diagnoseNavigationRegions as bs, effectiveNavigation as nr, effectivePackages as or, elementNodeId as oe, findComponentDescriptor as ro, findLayoutTypeDescriptor as zo, inspect as ao, isCanvas as at, isDockPanel as ys, isExternalComponent as Ue, isGrid as so, isPackageSelectionValid as ws, isPanel as At, isStackPanel as lo, isThemeCompatible as ks, isWrapPanel as Ss, matchComponentQuery as Cs, normalizeToolbarButton as Ns, packagesOfKind as qo, rankFrequentlyUsedComponents as Ts, resolveComponentName as wt, resolveEffectiveConfiguration as ir, resolveIconLibraries as Is, resolvePackageDependencies as Ps, resolveTemplateChain as co, resolveToolbarButton as xs, setApplicationLogo as Os, switchRegionMode as rr, toComponentCatalog as Yt, toolbarButtonFromItem as uo, validateToolbarButtons as Rs, validateValue as sn } from "@cratis/scene.engine";
11
11
  import { Fragment as ie, jsx as a, jsxs as y } from "react/jsx-runtime";
12
- import { ErrorBoundary as ze, IconButton as tt, Tabs as Rs } from "@cratis/components/Common";
13
- import { ColorScheme as Ds, LayoutConfigProvider as ar, LayoutMode as Es, TemplatePreviewState as nt, applyTemplatePreviewState as Fs, composeScreenElement as Ms, defaultBlueprint as sr, defaultBlueprintName as As, resolveElementComponentNames as po } from "@cratis/scene.blueprint.default";
14
- import { IconAdapterProvider as lr, SceneElementView as mo, SceneNavigationModelProvider as _s, SceneNavigationProvider as $s, SceneThemeProvider as cr, SliceInvokerProvider as Ls, componentRegistryKey as Rn, corePackage as dr, createDryRunInvoker as Bs, itemEditableRule as js, itemInheritedReason as Us, mergeIconAdapters as Ws, mergePackageRegistries as ur, resolveDesignTimeHost as zs } from "@cratis/scene.react";
15
- import { Toolbar as qs, ToolbarFolder as Ks } from "@cratis/components/Toolbar";
12
+ import { ErrorBoundary as ze, IconButton as tt, Tabs as Ds } from "@cratis/components/Common";
13
+ import { ColorScheme as Es, LayoutConfigProvider as ar, LayoutMode as Fs, TemplatePreviewState as nt, applyTemplatePreviewState as Ms, composeScreenElement as As, defaultBlueprint as sr, defaultBlueprintName as _s, resolveElementComponentNames as po } from "@cratis/scene.blueprint.default";
14
+ import { IconAdapterProvider as lr, SceneElementView as mo, SceneNavigationModelProvider as $s, SceneNavigationProvider as Ls, SceneThemeProvider as cr, SliceInvokerProvider as Bs, componentRegistryKey as Rn, corePackage as dr, createDryRunInvoker as js, itemEditableRule as Us, itemInheritedReason as Ws, mergeIconAdapters as zs, mergePackageRegistries as ur, resolveDesignTimeHost as qs } from "@cratis/scene.react";
15
+ import { Toolbar as Ks, ToolbarFolder as Gs } from "@cratis/components/Toolbar";
16
16
  import { PrototypeLayout as He } from "@cratis/scene";
17
- import { FileUploadHandlerProvider as Gs, QuillLoaderProvider as Hs, primeReactPackage as pr, primeReactThemes as Ko, usePrimeReactTheme as Vs } from "@cratis/scene.primereact";
18
- import { FaAlignJustify as Go, FaAlignLeft as Js, FaAngleDoubleRight as ln, FaArrowsAltH as Qs, FaBars as ot, FaBell as Ys, FaBolt as Zs, FaBookmark as Xs, FaBorderAll as el, FaCalendarAlt as Ho, FaCaretSquareDown as Vo, FaChartBar as mr, FaCheckSquare as Jo, FaClock as tl, FaClone as nl, FaCode as ol, FaCog as Qo, FaColumns as cn, FaCommentAlt as il, FaCommentDots as hr, FaCompass as rl, FaCreditCard as al, FaCube as sl, FaDatabase as ll, FaDesktop as Dn, FaEdit as dn, FaEllipsisH as cl, FaExclamationCircle as un, FaExpandArrowsAlt as dl, FaFileAlt as En, FaFileUpload as ul, FaFilter as Yo, FaFolderOpen as Zo, FaFont as Xo, FaGripLines as _e, FaGripLinesVertical as pl, FaGripVertical as ml, FaHashtag as ei, FaHeading as _t, FaHistory as hl, FaHourglassHalf as fl, FaIdBadge as gl, FaImage as fr, FaImages as ti, FaInfoCircle as vl, FaKeyboard as gr, FaLayerGroup as bl, FaLink as yl, FaList as vr, FaListAlt as pn, FaListOl as mn, FaLock as wl, FaMask as ni, FaMobileAlt as kl, FaMousePointer as $t, FaObjectGroup as Sl, FaPaintBrush as Cl, FaPalette as hn, FaPen as Nl, FaPercent as Tl, FaProjectDiagram as Il, FaPuzzlePiece as br, FaRedo as Pl, FaRegCheckCircle as xl, FaRegCircle as fn, FaRegSquare as ho, FaSave as Ol, FaSearch as oi, FaShapes as yr, FaSitemap as gn, FaSlidersH as Fn, FaSpinner as ii, FaSquare as Rl, FaStar as Dl, FaStepForward as vn, FaStickyNote as El, FaStream as Fl, FaTable as lt, FaTag as Tt, FaTerminal as Ml, FaTh as ri, FaThLarge as wr, FaThList as fo, FaToggleOn as kr, FaTools as Al, FaTrash as _l, FaTree as Mn, FaUndo as $l, FaUser as Ll, FaUserCircle as Bl, FaVectorSquare as jl, FaWindowMaximize as Lt, FaWindowRestore as Ul } from "react-icons/fa";
17
+ import { FileUploadHandlerProvider as Hs, QuillLoaderProvider as Vs, primeReactPackage as pr, primeReactThemes as Ko, usePrimeReactTheme as Js } from "@cratis/scene.primereact";
18
+ import { FaAlignJustify as Go, FaAlignLeft as Qs, FaAngleDoubleRight as ln, FaArrowsAltH as Ys, FaBars as ot, FaBell as Zs, FaBolt as Xs, FaBookmark as el, FaBorderAll as tl, FaCalendarAlt as Ho, FaCaretSquareDown as Vo, FaChartBar as mr, FaCheckSquare as Jo, FaClock as nl, FaClone as ol, FaCode as il, FaCog as Qo, FaColumns as cn, FaCommentAlt as rl, FaCommentDots as hr, FaCompass as al, FaCreditCard as sl, FaCube as ll, FaDatabase as cl, FaDesktop as Dn, FaEdit as dn, FaEllipsisH as dl, FaExclamationCircle as un, FaExpandArrowsAlt as ul, FaFileAlt as En, FaFileUpload as pl, FaFilter as Yo, FaFolderOpen as Zo, FaFont as Xo, FaGripLines as _e, FaGripLinesVertical as ml, FaGripVertical as hl, FaHashtag as ei, FaHeading as _t, FaHistory as fl, FaHourglassHalf as gl, FaIdBadge as vl, FaImage as fr, FaImages as ti, FaInfoCircle as bl, FaKeyboard as gr, FaLayerGroup as yl, FaLink as wl, FaList as vr, FaListAlt as pn, FaListOl as mn, FaLock as kl, FaMask as ni, FaMobileAlt as Sl, FaMousePointer as $t, FaObjectGroup as Cl, FaPaintBrush as Nl, FaPalette as hn, FaPen as Tl, FaPercent as Il, FaProjectDiagram as Pl, FaPuzzlePiece as br, FaRedo as xl, FaRegCheckCircle as Ol, FaRegCircle as fn, FaRegSquare as ho, FaSave as Rl, FaSearch as oi, FaShapes as yr, FaSitemap as gn, FaSlidersH as Fn, FaSpinner as ii, FaSquare as Dl, FaStar as El, FaStepForward as vn, FaStickyNote as Fl, FaStream as Ml, FaTable as lt, FaTag as Tt, FaTerminal as Al, FaTh as ri, FaThLarge as wr, FaThList as fo, FaToggleOn as kr, FaTools as _l, FaTrash as $l, FaTree as Mn, FaUndo as Ll, FaUser as Bl, FaUserCircle as jl, FaVectorSquare as Ul, FaWindowMaximize as Lt, FaWindowRestore as Wl } from "react-icons/fa";
19
19
  import "@cratis/scene.primereact/primeReactTheme.css";
20
- import { LuChevronLeft as Wl, LuChevronRight as zl, LuCopy as ql, LuCornerDownRight as Kl, LuLink as Gl, LuLock as Sr, LuPanelLeft as Hl, LuPlus as Vl, LuTrash2 as Jl, LuZap as Ql } from "react-icons/lu";
21
- import { PrimeReactProvider as Yl } from "@primereact/core/config";
22
- import { styles as Zl } from "@primereact/styles/accordion";
23
- import { styles as Xl } from "@primereact/styles/autocomplete";
24
- import { styles as ec } from "@primereact/styles/avatar";
25
- import { styles as tc } from "@primereact/styles/avatargroup";
26
- import { styles as nc } from "@primereact/styles/badge";
27
- import { styles as oc } from "@primereact/styles/breadcrumb";
28
- import { styles as ic } from "@primereact/styles/button";
29
- import { styles as rc } from "@primereact/styles/buttongroup";
30
- import { styles as ac } from "@primereact/styles/card";
31
- import { styles as sc } from "@primereact/styles/carousel";
32
- import { styles as lc } from "@primereact/styles/checkbox";
33
- import { styles as cc } from "@primereact/styles/checkboxgroup";
34
- import { styles as dc } from "@primereact/styles/chip";
35
- import { styles as uc } from "@primereact/styles/compare";
36
- import { styles as pc } from "@primereact/styles/contextmenu";
37
- import { styles as mc } from "@primereact/styles/datatable";
38
- import { styles as hc } from "@primereact/styles/dataview";
39
- import { styles as fc } from "@primereact/styles/datepicker";
40
- import { styles as gc } from "@primereact/styles/dialog";
41
- import { styles as vc } from "@primereact/styles/divider";
42
- import { styles as bc } from "@primereact/styles/drawer";
43
- import { styles as yc } from "@primereact/styles/fieldset";
44
- import { styles as wc } from "@primereact/styles/fileupload";
45
- import { styles as kc } from "@primereact/styles/floatlabel";
46
- import { styles as Sc } from "@primereact/styles/fluid";
47
- import { styles as Cc } from "@primereact/styles/gallery";
48
- import { styles as Nc } from "@primereact/styles/iconfield";
49
- import { styles as Tc } from "@primereact/styles/iftalabel";
50
- import { styles as Ic } from "@primereact/styles/inplace";
51
- import { styles as Pc } from "@primereact/styles/inputcolor";
52
- import { styles as xc } from "@primereact/styles/inputgroup";
53
- import { styles as Oc } from "@primereact/styles/inputnumber";
54
- import { styles as Rc } from "@primereact/styles/inputotp";
55
- import { styles as Dc } from "@primereact/styles/inputtags";
56
- import { styles as Ec } from "@primereact/styles/inputtext";
57
- import { styles as Fc } from "@primereact/styles/knob";
58
- import { styles as Mc } from "@primereact/styles/label";
59
- import { styles as Ac } from "@primereact/styles/listbox";
60
- import { styles as _c } from "@primereact/styles/menu";
61
- import { styles as $c } from "@primereact/styles/message";
62
- import { styles as Lc } from "@primereact/styles/metergroup";
63
- import { styles as Bc } from "@primereact/styles/navigationmenu";
64
- import { styles as jc } from "@primereact/styles/organizationchart";
65
- import { styles as Uc } from "@primereact/styles/overlaybadge";
66
- import { styles as Wc } from "@primereact/styles/paginator";
67
- import { styles as zc } from "@primereact/styles/panel";
68
- import { styles as qc } from "@primereact/styles/inputpassword";
69
- import { styles as Kc } from "@primereact/styles/popover";
70
- import { styles as Gc } from "@primereact/styles/progressbar";
71
- import { styles as Hc } from "@primereact/styles/progressspinner";
72
- import { styles as Vc } from "@primereact/styles/radiobutton";
73
- import { styles as Jc } from "@primereact/styles/radiobuttongroup";
74
- import { styles as Qc } from "@primereact/styles/rating";
75
- import { styles as Yc } from "@primereact/styles/scrollarea";
76
- import { styles as Zc } from "@primereact/styles/select";
77
- import { layoutStyles as Xc, styles as ed } from "@primereact/styles/sidebar";
78
- import { styles as td } from "@primereact/styles/skeleton";
79
- import { styles as nd } from "@primereact/styles/slider";
80
- import { styles as od } from "@primereact/styles/speeddial";
81
- import { styles as id } from "@primereact/styles/splitter";
82
- import { styles as rd } from "@primereact/styles/stepper";
83
- import { styles as ad } from "@primereact/styles/tabs";
84
- import { styles as sd } from "@primereact/styles/tag";
85
- import { styles as ld } from "@primereact/styles/terminal";
86
- import { styles as cd } from "@primereact/styles/textarea";
87
- import { styles as dd } from "@primereact/styles/timeline";
88
- import { styles as ud } from "@primereact/styles/toast";
89
- import { styles as pd } from "@primereact/styles/toaster";
90
- import { styles as md } from "@primereact/styles/togglebutton";
91
- import { styles as hd } from "@primereact/styles/togglebuttongroup";
92
- import { styles as fd } from "@primereact/styles/toggleswitch";
93
- import { styles as gd } from "@primereact/styles/toolbar";
94
- import { styles as vd } from "@primereact/styles/tooltip";
95
- import { styles as bd } from "@primereact/styles/tree";
96
- import { loadQuill as yd } from "@cratis/scene.primereact/quill";
20
+ import { LuChevronLeft as zl, LuChevronRight as ql, LuCopy as Kl, LuCornerDownRight as Gl, LuLink as Hl, LuLock as Sr, LuPanelLeft as Vl, LuPlus as Jl, LuTrash2 as Ql, LuZap as Yl } from "react-icons/lu";
21
+ import { PrimeReactProvider as Zl } from "@primereact/core/config";
22
+ import { styles as Xl } from "@primereact/styles/accordion";
23
+ import { styles as ec } from "@primereact/styles/autocomplete";
24
+ import { styles as tc } from "@primereact/styles/avatar";
25
+ import { styles as nc } from "@primereact/styles/avatargroup";
26
+ import { styles as oc } from "@primereact/styles/badge";
27
+ import { styles as ic } from "@primereact/styles/breadcrumb";
28
+ import { styles as rc } from "@primereact/styles/button";
29
+ import { styles as ac } from "@primereact/styles/buttongroup";
30
+ import { styles as sc } from "@primereact/styles/card";
31
+ import { styles as lc } from "@primereact/styles/carousel";
32
+ import { styles as cc } from "@primereact/styles/checkbox";
33
+ import { styles as dc } from "@primereact/styles/checkboxgroup";
34
+ import { styles as uc } from "@primereact/styles/chip";
35
+ import { styles as pc } from "@primereact/styles/compare";
36
+ import { styles as mc } from "@primereact/styles/contextmenu";
37
+ import { styles as hc } from "@primereact/styles/datatable";
38
+ import { styles as fc } from "@primereact/styles/dataview";
39
+ import { styles as gc } from "@primereact/styles/datepicker";
40
+ import { styles as vc } from "@primereact/styles/dialog";
41
+ import { styles as bc } from "@primereact/styles/divider";
42
+ import { styles as yc } from "@primereact/styles/drawer";
43
+ import { styles as wc } from "@primereact/styles/fieldset";
44
+ import { styles as kc } from "@primereact/styles/fileupload";
45
+ import { styles as Sc } from "@primereact/styles/floatlabel";
46
+ import { styles as Cc } from "@primereact/styles/fluid";
47
+ import { styles as Nc } from "@primereact/styles/gallery";
48
+ import { styles as Tc } from "@primereact/styles/iconfield";
49
+ import { styles as Ic } from "@primereact/styles/iftalabel";
50
+ import { styles as Pc } from "@primereact/styles/inplace";
51
+ import { styles as xc } from "@primereact/styles/inputcolor";
52
+ import { styles as Oc } from "@primereact/styles/inputgroup";
53
+ import { styles as Rc } from "@primereact/styles/inputnumber";
54
+ import { styles as Dc } from "@primereact/styles/inputotp";
55
+ import { styles as Ec } from "@primereact/styles/inputtags";
56
+ import { styles as Fc } from "@primereact/styles/inputtext";
57
+ import { styles as Mc } from "@primereact/styles/knob";
58
+ import { styles as Ac } from "@primereact/styles/label";
59
+ import { styles as _c } from "@primereact/styles/listbox";
60
+ import { styles as $c } from "@primereact/styles/menu";
61
+ import { styles as Lc } from "@primereact/styles/message";
62
+ import { styles as Bc } from "@primereact/styles/metergroup";
63
+ import { styles as jc } from "@primereact/styles/navigationmenu";
64
+ import { styles as Uc } from "@primereact/styles/organizationchart";
65
+ import { styles as Wc } from "@primereact/styles/overlaybadge";
66
+ import { styles as zc } from "@primereact/styles/paginator";
67
+ import { styles as qc } from "@primereact/styles/panel";
68
+ import { styles as Kc } from "@primereact/styles/inputpassword";
69
+ import { styles as Gc } from "@primereact/styles/popover";
70
+ import { styles as Hc } from "@primereact/styles/progressbar";
71
+ import { styles as Vc } from "@primereact/styles/progressspinner";
72
+ import { styles as Jc } from "@primereact/styles/radiobutton";
73
+ import { styles as Qc } from "@primereact/styles/radiobuttongroup";
74
+ import { styles as Yc } from "@primereact/styles/rating";
75
+ import { styles as Zc } from "@primereact/styles/scrollarea";
76
+ import { styles as Xc } from "@primereact/styles/select";
77
+ import { layoutStyles as ed, styles as td } from "@primereact/styles/sidebar";
78
+ import { styles as nd } from "@primereact/styles/skeleton";
79
+ import { styles as od } from "@primereact/styles/slider";
80
+ import { styles as id } from "@primereact/styles/speeddial";
81
+ import { styles as rd } from "@primereact/styles/splitter";
82
+ import { styles as ad } from "@primereact/styles/stepper";
83
+ import { styles as sd } from "@primereact/styles/tabs";
84
+ import { styles as ld } from "@primereact/styles/tag";
85
+ import { styles as cd } from "@primereact/styles/terminal";
86
+ import { styles as dd } from "@primereact/styles/textarea";
87
+ import { styles as ud } from "@primereact/styles/timeline";
88
+ import { styles as pd } from "@primereact/styles/toast";
89
+ import { styles as md } from "@primereact/styles/toaster";
90
+ import { styles as hd } from "@primereact/styles/togglebutton";
91
+ import { styles as fd } from "@primereact/styles/togglebuttongroup";
92
+ import { styles as gd } from "@primereact/styles/toggleswitch";
93
+ import { styles as vd } from "@primereact/styles/toolbar";
94
+ import { styles as bd } from "@primereact/styles/tooltip";
95
+ import { styles as yd } from "@primereact/styles/tree";
96
+ import { loadQuill as wd } from "@cratis/scene.primereact/quill";
97
97
  import { cratisComponentsPackage as Cr } from "@cratis/scene.components";
98
98
  import { tailwindPackage as Nr } from "@cratis/scene.tailwind";
99
99
  import { componentsBlueprint as Tr } from "@cratis/scene.blueprint.components";
100
- import { dynamicIconImports as wd } from "lucide-react/dynamic";
100
+ import { dynamicIconImports as kd } from "lucide-react/dynamic";
101
101
  var go = {
102
102
  name: "StudioScreen",
103
103
  slots: [{ name: "content" }]
104
- }, Gt = "content", ke = "Screen", kd = "template-root", Sd = "screen-root", Ir = () => ({
104
+ }, Gt = "content", ke = "Screen", Sd = "template-root", Cd = "screen-root", Ir = () => ({
105
105
  layouts: [go],
106
106
  screenTemplates: [],
107
107
  dialogTemplates: [],
@@ -109,7 +109,7 @@ var go = {
109
109
  exposures: [],
110
110
  instanceContributions: []
111
111
  });
112
- function Cd(e, t) {
112
+ function Nd(e, t) {
113
113
  return {
114
114
  ...Ir(),
115
115
  screens: [{
@@ -122,7 +122,7 @@ function Cd(e, t) {
122
122
  }]
123
123
  };
124
124
  }
125
- function Nd(e, t, n) {
125
+ function Td(e, t, n) {
126
126
  return {
127
127
  ...Ir(),
128
128
  screenTemplates: [{
@@ -146,7 +146,7 @@ function An(e, t = !1) {
146
146
  name: ke
147
147
  };
148
148
  }
149
- var bn = (e, t) => typeof t == "string" ? Object.values(e).find((n) => n === t) : void 0, Td = (e) => {
149
+ var bn = (e, t) => typeof t == "string" ? Object.values(e).find((n) => n === t) : void 0, Id = (e) => {
150
150
  const t = e;
151
151
  return !!t && typeof t == "object" && [
152
152
  "left",
@@ -155,11 +155,11 @@ var bn = (e, t) => typeof t == "string" ? Object.values(e).find((n) => n === t)
155
155
  "bottom"
156
156
  ].every((n) => typeof t[n] == "number");
157
157
  };
158
- function Id(e, t, n) {
158
+ function Pd(e, t, n) {
159
159
  const o = e;
160
160
  o.zIndex = n;
161
161
  const i = bn(oo, t.visibility);
162
- i !== void 0 && (o.visibility = i), typeof t.isEnabled == "boolean" && (o.isEnabled = t.isEnabled), typeof t.opacity == "number" && (o.opacity = t.opacity), Td(t.margin) && (o.margin = { ...t.margin });
162
+ i !== void 0 && (o.visibility = i), typeof t.isEnabled == "boolean" && (o.isEnabled = t.isEnabled), typeof t.opacity == "number" && (o.opacity = t.opacity), Id(t.margin) && (o.margin = { ...t.margin });
163
163
  const r = bn(to, t.horizontalAlignment);
164
164
  r !== void 0 && (o.horizontalAlignment = r);
165
165
  const s = bn(no, t.verticalAlignment);
@@ -178,16 +178,16 @@ var _n = {
178
178
  horizontalAlignment: to.Stretch,
179
179
  verticalAlignment: no.Stretch
180
180
  };
181
- function Pd(e) {
181
+ function xd(e) {
182
182
  const t = {
183
183
  ..._n,
184
184
  margin: { ..._n.margin }
185
185
  };
186
- return Id(t, e, 0), delete t.zIndex, t;
186
+ return Pd(t, e, 0), delete t.zIndex, t;
187
187
  }
188
- var xd = Object.keys(_n), B = /* @__PURE__ */ (function(e) {
188
+ var Od = Object.keys(_n), B = /* @__PURE__ */ (function(e) {
189
189
  return e.Stack = "stack", e.Row = "row", e.Grid = "grid", e.Container = "container", e.Wrap = "wrap", e.Canvas = "canvas", e;
190
- })({}), Od = "StudioLayout", Rd = {
190
+ })({}), Rd = "StudioLayout", Dd = {
191
191
  Stack: B.Stack,
192
192
  Row: B.Row,
193
193
  Grid: B.Grid,
@@ -195,19 +195,19 @@ var xd = Object.keys(_n), B = /* @__PURE__ */ (function(e) {
195
195
  Wrap: B.Wrap,
196
196
  Canvas: B.Canvas
197
197
  };
198
- function Dd(e) {
199
- const t = Object.entries(Rd).find(([, n]) => n === e)?.[0] ?? "Container";
200
- return `${Od}.${t}`;
198
+ function Ed(e) {
199
+ const t = Object.entries(Dd).find(([, n]) => n === e)?.[0] ?? "Container";
200
+ return `${Rd}.${t}`;
201
201
  }
202
- var qe = "Canvas.Left", Ke = "Canvas.Top", ai = "legacyType", Ed = "legacy", si = "legacyExtras", Fd = {
202
+ var qe = "Canvas.Left", Ke = "Canvas.Top", ai = "legacyType", Fd = "legacy", si = "legacyExtras", Md = {
203
203
  DatePicker: "calendar",
204
204
  OrgChart: "organizationChart",
205
205
  Chips: "chips",
206
206
  ToggleButton: "toggleSwitch"
207
- }, Md = Object.fromEntries(Object.entries(Fd).map(([e, t]) => [t, e]));
207
+ }, Ad = Object.fromEntries(Object.entries(Md).map(([e, t]) => [t, e]));
208
208
  function Pr(e) {
209
209
  const t = e.includes(":") ? e.slice(e.lastIndexOf(":") + 1) : e;
210
- return Md[t] ?? t.charAt(0).toUpperCase() + t.slice(1);
210
+ return Ad[t] ?? t.charAt(0).toUpperCase() + t.slice(1);
211
211
  }
212
212
  function $n(e) {
213
213
  return Array.isArray(e) ? e.filter((t) => t !== null).map($n) : e !== null && typeof e == "object" ? Object.fromEntries(Object.entries(e).filter(([, t]) => t !== null).map(([t, n]) => [t, $n(n)])) : e;
@@ -215,8 +215,8 @@ function $n(e) {
215
215
  function xr(e) {
216
216
  if (at(e)) return B.Canvas;
217
217
  if (so(e)) return B.Grid;
218
- if (!bs(e))
219
- return lo(e) ? e.orientation === rt.Horizontal ? B.Row : B.Stack : ks(e) ? B.Wrap : B.Container;
218
+ if (!ys(e))
219
+ return lo(e) ? e.orientation === rt.Horizontal ? B.Row : B.Stack : Ss(e) ? B.Wrap : B.Container;
220
220
  }
221
221
  function Bt(e, t = () => {
222
222
  }) {
@@ -224,13 +224,13 @@ function Bt(e, t = () => {
224
224
  }
225
225
  var pe = (e, t) => typeof e == "number" ? e : t;
226
226
  function Or(e, t) {
227
- const n = e, o = { ...n.properties ?? {} }, i = Jt(e).map((T) => Or(T, t)), r = o[Ed];
228
- if (r != null && typeof r == "object") return _d(r, n, o, i);
229
- const s = o[si], l = typeof o.legacyType == "string" && o.legacyType !== "" ? o[ai] : void 0, c = l ?? (At(e) ? Dd(xr(e)) : t(Ue(e) ? e.componentName : "")), u = Ue(e) ? e.componentName : "", { [ai]: d, [si]: p, [qe]: h, [Ke]: m, ...g } = o, f = {};
227
+ const n = e, o = { ...n.properties ?? {} }, i = Jt(e).map((T) => Or(T, t)), r = o[Fd];
228
+ if (r != null && typeof r == "object") return $d(r, n, o, i);
229
+ const s = o[si], l = typeof o.legacyType == "string" && o.legacyType !== "" ? o[ai] : void 0, c = l ?? (At(e) ? Ed(xr(e)) : t(Ue(e) ? e.componentName : "")), u = Ue(e) ? e.componentName : "", { [ai]: d, [si]: p, [qe]: h, [Ke]: m, ...g } = o, f = {};
230
230
  for (const T of s?.topKeys ?? []) T in g && (f[T] = g[T], delete g[T]);
231
231
  const v = pe(h, s?.position.x ?? 0), P = pe(m, s?.position.y ?? 0), x = n.name ?? "", O = s?.emptyName === !0 && x === (l ?? "");
232
232
  return {
233
- ...Ad(n, s),
233
+ ..._d(n, s),
234
234
  ...f,
235
235
  _derivedTypeId: c ?? "externalComponent",
236
236
  id: n.id,
@@ -253,12 +253,12 @@ function Or(e, t) {
253
253
  ZIndex: n.zIndex ?? 0
254
254
  };
255
255
  }
256
- function Ad(e, t) {
257
- const n = t?.top ?? {}, o = Pd(n), i = e, r = { ...n };
258
- for (const s of xd) JSON.stringify(i[s]) !== JSON.stringify(o[s]) && (r[s] = i[s]);
256
+ function _d(e, t) {
257
+ const n = t?.top ?? {}, o = xd(n), i = e, r = { ...n };
258
+ for (const s of Od) JSON.stringify(i[s]) !== JSON.stringify(o[s]) && (r[s] = i[s]);
259
259
  return r;
260
260
  }
261
- function _d(e, t, n, o) {
261
+ function $d(e, t, n, o) {
262
262
  const i = { ...e }, r = e.properties ?? {}, s = r.canvas ?? {}, l = n[qe], c = n[Ke];
263
263
  (typeof l == "number" || typeof c == "number") && (e.position && typeof e.position == "object" ? i.position = {
264
264
  ...e.position,
@@ -278,7 +278,7 @@ function _d(e, t, n, o) {
278
278
  children: o
279
279
  }), i;
280
280
  }
281
- var $d = [
281
+ var Ld = [
282
282
  "input",
283
283
  "textarea",
284
284
  "select",
@@ -297,7 +297,7 @@ var $d = [
297
297
  "[data-studio-typing]"
298
298
  ].join(","), Zt = (e) => {
299
299
  const t = e;
300
- return !!t && typeof t.closest == "function" && (t.closest($d) !== null || t.isContentEditable === !0);
300
+ return !!t && typeof t.closest == "function" && (t.closest(Ld) !== null || t.isContentEditable === !0);
301
301
  }, vo = (e) => (e.key === "Delete" || e.key === "Backspace") && !e.ctrlKey && !e.metaKey && !e.altKey && !e.shiftKey && !e.defaultPrevented && !e.repeat && !e.nativeEvent?.isComposing && !Zt(e.target);
302
302
  function ye(e, t, n, o = null) {
303
303
  for (const [i, r] of e.entries()) {
@@ -355,7 +355,7 @@ function Er(e, t, n, o = 0, i = null) {
355
355
  var Te = /* @__PURE__ */ (function(e) {
356
356
  return e.MoveUp = "moveUp", e.MoveDown = "moveDown", e.Outdent = "outdent", e.Indent = "indent", e;
357
357
  })({});
358
- function Ld(e, t, n, o) {
358
+ function Bd(e, t, n, o) {
359
359
  const i = ye(e, t, o);
360
360
  if (!i) return;
361
361
  const r = i.parent === null ? null : o.idOf(i.parent);
@@ -394,7 +394,7 @@ function Ld(e, t, n, o) {
394
394
  var $e = /* @__PURE__ */ (function(e) {
395
395
  return e.Before = "before", e.Inside = "inside", e.After = "after", e;
396
396
  })({});
397
- function Bd(e, t, n, o, i) {
397
+ function jd(e, t, n, o, i) {
398
398
  const r = ye(e, n, i);
399
399
  if (!r) return;
400
400
  if (o === $e.Inside) return {
@@ -409,7 +409,7 @@ function Bd(e, t, n, o, i) {
409
409
  index: o === $e.Before ? s : s + 1
410
410
  };
411
411
  }
412
- function jd(e, t, n) {
412
+ function Ud(e, t, n) {
413
413
  if (t <= 0) return $e.After;
414
414
  const o = e / t;
415
415
  return o < 0.25 ? $e.Before : o > 0.75 || !n ? o < 0.5 ? $e.Before : $e.After : $e.Inside;
@@ -419,7 +419,7 @@ var Fr = ({ ownership: e, label: t }) => e === ne.Local ? null : /* @__PURE__ */
419
419
  "data-ownership": e,
420
420
  children: t
421
421
  });
422
- function Ud({ row: e, adapter: t, strings: n, isSelected: o, isFocusable: i, dropZone: r, onSelect: s, onToggle: l, onKeyDown: c, onDragStart: u, onDragOver: d, onDrop: p, onDragEnd: h }) {
422
+ function Wd({ row: e, adapter: t, strings: n, isSelected: o, isFocusable: i, dropZone: r, onSelect: s, onToggle: l, onKeyDown: c, onDragStart: u, onDragOver: d, onDrop: p, onDragEnd: h }) {
423
423
  const m = t.ownershipOf(e.node), g = ft(m, Re.Move);
424
424
  return /* @__PURE__ */ y("li", {
425
425
  role: "treeitem",
@@ -485,7 +485,7 @@ function Mr({ roots: e, adapter: t, strings: n, selectedId: o, onSelect: i, onEd
485
485
  }, b = (N, S) => {
486
486
  const E = P.findIndex((k) => k.id === S), _ = P[E];
487
487
  if (N.altKey && li[N.key]) {
488
- N.preventDefault(), T(Ld(e, S, li[N.key], t)), w(S);
488
+ N.preventDefault(), T(Bd(e, S, li[N.key], t)), w(S);
489
489
  return;
490
490
  }
491
491
  if (vo(N) && s && Ln(e, S, t)) {
@@ -523,10 +523,10 @@ function Mr({ roots: e, adapter: t, strings: n, selectedId: o, onSelect: i, onEd
523
523
  const E = N.currentTarget.getBoundingClientRect(), _ = P.find((k) => k.id === S);
524
524
  g({
525
525
  id: S,
526
- zone: jd(N.clientY - E.top, E.height, !!_ && t.acceptsChildren(_.node))
526
+ zone: Ud(N.clientY - E.top, E.height, !!_ && t.acceptsChildren(_.node))
527
527
  });
528
528
  }, F = (N, S) => {
529
- N.preventDefault(), p && m?.id === S && T(Bd(e, p, S, m.zone, t)), h(void 0), g(void 0);
529
+ N.preventDefault(), p && m?.id === S && T(jd(e, p, S, m.zone, t)), h(void 0), g(void 0);
530
530
  };
531
531
  return P.length === 0 ? /* @__PURE__ */ a("p", {
532
532
  className: "studio-editor-structure-empty",
@@ -535,7 +535,7 @@ function Mr({ roots: e, adapter: t, strings: n, selectedId: o, onSelect: i, onEd
535
535
  role: "tree",
536
536
  "aria-label": n.structureLabel,
537
537
  className: "studio-editor-structure-tree",
538
- children: P.map((N) => /* @__PURE__ */ a(Ud, {
538
+ children: P.map((N) => /* @__PURE__ */ a(Wd, {
539
539
  row: N,
540
540
  adapter: t,
541
541
  strings: n,
@@ -563,26 +563,26 @@ function Mr({ roots: e, adapter: t, strings: n, selectedId: o, onSelect: i, onEd
563
563
  }
564
564
  var yn = /* @__PURE__ */ (function(e) {
565
565
  return e.Properties = "properties", e.Structure = "structure", e;
566
- })({}), Wd = /* @__PURE__ */ new Set([qe, Ke]);
567
- function zd(e, t, n) {
568
- return t ? e : e.filter((o) => !Wd.has(o.descriptor.path) || n?.[o.descriptor.path] !== void 0);
566
+ })({}), zd = /* @__PURE__ */ new Set([qe, Ke]);
567
+ function qd(e, t, n) {
568
+ return t ? e : e.filter((o) => !zd.has(o.descriptor.path) || n?.[o.descriptor.path] !== void 0);
569
569
  }
570
570
  function bo(e) {
571
571
  return { types: e };
572
572
  }
573
- var qd = {
573
+ var Kd = {
574
574
  action: /* @__PURE__ */ new Set([
575
575
  "command",
576
576
  "arguments",
577
577
  "presentation"
578
578
  ]),
579
579
  commandForm: /* @__PURE__ */ new Set(["command"])
580
- }, Ar = (e, t) => qd[e.slice(e.lastIndexOf(":") + 1)]?.has(t) ?? !1, Kd = /* @__PURE__ */ new Set([
580
+ }, Ar = (e, t) => Kd[e.slice(e.lastIndexOf(":") + 1)]?.has(t) ?? !1, Gd = /* @__PURE__ */ new Set([
581
581
  K.Object,
582
582
  K.Json,
583
583
  K.Collection
584
- ]), Gd = (e) => e.descriptor.output === !0 && Kd.has(e.descriptor.valueType), Hd = (e, t, n = () => !1) => e.filter((o) => !Ar(t, o.descriptor.path) && !Gd(o) && !n(o));
585
- function Vd(e) {
584
+ ]), Hd = (e) => e.descriptor.output === !0 && Gd.has(e.descriptor.valueType), Vd = (e, t, n = () => !1) => e.filter((o) => !Ar(t, o.descriptor.path) && !Hd(o) && !n(o));
585
+ function Jd(e) {
586
586
  const t = /* @__PURE__ */ new Map();
587
587
  for (const n of e) t.set(n.descriptor.group, [...t.get(n.descriptor.group) ?? [], n]);
588
588
  return [...t.entries()].map(([n, o]) => ({
@@ -603,7 +603,7 @@ function vt(e, t) {
603
603
  var Ie = /* @__PURE__ */ (function(e) {
604
604
  return e.MissingSlice = "missingSlice", e.UnmappedInput = "unmappedInput", e.UnknownInput = "unknownInput", e.UnknownSource = "unknownSource", e;
605
605
  })({});
606
- function Jd(e, t, n) {
606
+ function Qd(e, t, n) {
607
607
  const o = vt(t, e.sliceId);
608
608
  if (!o) return [{ kind: Ie.MissingSlice }];
609
609
  const i = [];
@@ -623,13 +623,13 @@ function Jd(e, t, n) {
623
623
  });
624
624
  return i;
625
625
  }
626
- function Qd(e, t) {
626
+ function Yd(e, t) {
627
627
  return Object.fromEntries(e.inputs.flatMap((n) => {
628
628
  const o = t(n.name);
629
629
  return o === void 0 ? [] : [[n.name, o]];
630
630
  }));
631
631
  }
632
- var Yd = (e, t) => {
632
+ var Zd = (e, t) => {
633
633
  const n = e.input ?? "";
634
634
  switch (e.kind) {
635
635
  case Ie.MissingSlice:
@@ -641,8 +641,8 @@ var Yd = (e, t) => {
641
641
  case Ie.UnknownSource:
642
642
  return t.unknownSource(n);
643
643
  }
644
- }, Zd = ({ action: e, slices: t, sources: n, strings: o, disabled: i, suggestSource: r, onChange: s }) => {
645
- const l = o.properties.action, c = e ? vt(t, e.sliceId) : void 0, u = e ? Jd(e, t, new Set(n.map((d) => d.path))) : [];
644
+ }, Xd = ({ action: e, slices: t, sources: n, strings: o, disabled: i, suggestSource: r, onChange: s }) => {
645
+ const l = o.properties.action, c = e ? vt(t, e.sliceId) : void 0, u = e ? Qd(e, t, new Set(n.map((d) => d.path))) : [];
646
646
  return /* @__PURE__ */ y("fieldset", {
647
647
  className: "studio-editor-query",
648
648
  disabled: i,
@@ -655,7 +655,7 @@ var Yd = (e, t) => {
655
655
  s(p ? {
656
656
  sliceId: p.id,
657
657
  sliceName: p.name,
658
- inputs: Qd(p, r),
658
+ inputs: Yd(p, r),
659
659
  presentation: e?.presentation ?? he.None
660
660
  } : void 0);
661
661
  },
@@ -720,13 +720,13 @@ var Yd = (e, t) => {
720
720
  "aria-label": o.properties.diagnostics,
721
721
  children: u.map((d, p) => /* @__PURE__ */ a("li", {
722
722
  "data-severity": "error",
723
- children: Yd(d, l.problems)
723
+ children: Zd(d, l.problems)
724
724
  }, p))
725
725
  })
726
726
  ]
727
727
  });
728
- }, Bn = hs;
729
- function Xd(e, t) {
728
+ }, Bn = fs;
729
+ function eu(e, t) {
730
730
  return `${Bn}${e}.${t}`;
731
731
  }
732
732
  function _r(e, t, n) {
@@ -734,11 +734,11 @@ function _r(e, t, n) {
734
734
  path: o,
735
735
  label: o
736
736
  })), ...t.filter((o) => o.componentId !== n).flatMap((o) => o.outputs.map((i) => ({
737
- path: Xd(o.componentId, i.path),
737
+ path: eu(o.componentId, i.path),
738
738
  label: `${o.label} - ${i.label}`
739
739
  })))];
740
740
  }
741
- function eu(e) {
741
+ function tu(e) {
742
742
  if (!e.startsWith(Bn)) return;
743
743
  const t = e.slice(Bn.length), n = t.indexOf(".");
744
744
  return n > 0 ? t.slice(0, n) : void 0;
@@ -762,7 +762,7 @@ function yo(e, t, n, o, i) {
762
762
  }
763
763
  };
764
764
  }
765
- var tu = ({ component: e, descriptor: t, controller: n, environment: o, strings: i, disabled: r }) => {
765
+ var nu = ({ component: e, descriptor: t, controller: n, environment: o, strings: i, disabled: r }) => {
766
766
  const [s, l] = W([]), { designTime: c, packageDescriptorOf: u } = o.runtime, d = u(t);
767
767
  if ((d.actions ?? []).length === 0) return null;
768
768
  const p = (f) => yo(e, d, n, o, f), h = c.actions(d, p(i.properties.designTimeActions)), m = h.flatMap((f) => f.diagnostic ? [f.diagnostic] : []), g = (f, v) => {
@@ -786,7 +786,7 @@ var tu = ({ component: e, descriptor: t, controller: n, environment: o, strings:
786
786
  })
787
787
  ]
788
788
  });
789
- }, nu = ({ component: e, descriptor: t, properties: n, controller: o, environment: i, strings: r, disabled: s }) => {
789
+ }, ou = ({ component: e, descriptor: t, properties: n, controller: o, environment: i, strings: r, disabled: s }) => {
790
790
  const { designTime: l, packageDescriptorOf: c } = i.runtime, u = c(t), d = n.flatMap((p) => {
791
791
  const h = l.propertyEditor(u, p.descriptor).contribution;
792
792
  return h ? [{
@@ -812,7 +812,7 @@ var tu = ({ component: e, descriptor: t, controller: n, environment: o, strings:
812
812
  })
813
813
  }, p.descriptor.path))]
814
814
  });
815
- }, ou = ({ component: e, descriptor: t, controller: n, environment: o, strings: i }) => {
815
+ }, iu = ({ component: e, descriptor: t, controller: n, environment: o, strings: i }) => {
816
816
  const { designTime: r, packageDescriptorOf: s } = o.runtime, l = s(t), c = r.designer(l), u = c.contribution;
817
817
  if (!u && !c.diagnostic) return null;
818
818
  const d = `${c.package ?? ""}:${l.editorKind ?? ""}`;
@@ -831,11 +831,11 @@ var tu = ({ component: e, descriptor: t, controller: n, environment: o, strings:
831
831
  children: c.diagnostic
832
832
  })]
833
833
  });
834
- }, iu = "commandForm", jn = "command", $r = (e) => e.slice(e.lastIndexOf(":") + 1) === iu;
834
+ }, ru = "commandForm", jn = "command", $r = (e) => e.slice(e.lastIndexOf(":") + 1) === ru;
835
835
  function Lr(e, t) {
836
- return e.flatMap((n) => [...Ue(n) && $r(n.componentName) ? [ru(n, t)] : [], ...Lr(Jt(n), t)]);
836
+ return e.flatMap((n) => [...Ue(n) && $r(n.componentName) ? [au(n, t)] : [], ...Lr(Jt(n), t)]);
837
837
  }
838
- function ru(e, t) {
838
+ function au(e, t) {
839
839
  const n = e.properties?.[jn], o = typeof n == "string" ? n : "";
840
840
  return {
841
841
  elementId: e.id,
@@ -843,7 +843,7 @@ function ru(e, t) {
843
843
  commandName: vt(t, o) ? gt(vt(t, o)) : void 0
844
844
  };
845
845
  }
846
- function au(e, t) {
846
+ function su(e, t) {
847
847
  return t ? {
848
848
  kind: V.SetProperty,
849
849
  nodeId: oe(e),
@@ -855,7 +855,7 @@ function au(e, t) {
855
855
  path: jn
856
856
  };
857
857
  }
858
- var su = ({ controller: e, slices: t, strings: n, disabled: o }) => {
858
+ var lu = ({ controller: e, slices: t, strings: n, disabled: o }) => {
859
859
  const i = e.document.screens.find((c) => c.name === ke), r = i?.forms ?? [];
860
860
  if (!i) return null;
861
861
  const s = n.properties.forms, l = new Set(Lr(e.composition.roots, t).map((c) => c.commandName));
@@ -886,7 +886,7 @@ var su = ({ controller: e, slices: t, strings: n, disabled: o }) => {
886
886
  unit: t,
887
887
  value: e
888
888
  };
889
- function lu(e) {
889
+ function cu(e) {
890
890
  return {
891
891
  columns: [{
892
892
  index: 0,
@@ -901,7 +901,7 @@ function lu(e) {
901
901
  };
902
902
  }
903
903
  function kt(e) {
904
- const t = e.layout ?? lu(e.fields), n = e.fields.map((o, i) => Br(t, o.name) ?? o.placement ?? wo(o.name, i));
904
+ const t = e.layout ?? cu(e.fields), n = e.fields.map((o, i) => Br(t, o.name) ?? o.placement ?? wo(o.name, i));
905
905
  return {
906
906
  ...e,
907
907
  layout: {
@@ -914,8 +914,8 @@ function kt(e) {
914
914
  }))
915
915
  };
916
916
  }
917
- function cu(e, t, n) {
918
- const o = kt(e), i = uu(n(Br(o.layout, t) ?? wo(t, o.fields.findIndex((r) => r.name === t))));
917
+ function du(e, t, n) {
918
+ const o = kt(e), i = pu(n(Br(o.layout, t) ?? wo(t, o.fields.findIndex((r) => r.name === t))));
919
919
  return {
920
920
  ...o,
921
921
  layout: {
@@ -928,7 +928,7 @@ function cu(e, t, n) {
928
928
  } : r)
929
929
  };
930
930
  }
931
- function du(e, t, n) {
931
+ function uu(e, t, n) {
932
932
  const o = kt(e), i = o.layout.columns.some((r) => r.index === t) ? o.layout.columns.map((r) => r.index === t ? {
933
933
  ...r,
934
934
  width: n
@@ -966,7 +966,7 @@ function wo(e, t) {
966
966
  columnSpan: 1
967
967
  };
968
968
  }
969
- function uu(e) {
969
+ function pu(e) {
970
970
  return {
971
971
  ...e,
972
972
  row: Math.max(0, e.row),
@@ -983,21 +983,21 @@ function Un(e) {
983
983
  fields: e.inputs.map((t) => ({ name: t.name }))
984
984
  };
985
985
  }
986
- function pu(e, t) {
986
+ function mu(e, t) {
987
987
  return kt({
988
988
  ...e,
989
989
  generationMode: me.Manual,
990
- fields: mu(t)
990
+ fields: hu(t)
991
991
  });
992
992
  }
993
- function mu(e) {
993
+ function hu(e) {
994
994
  return e.inputs.map((t) => ({
995
995
  name: t.name,
996
996
  sourceProperty: t.name,
997
997
  label: t.name
998
998
  }));
999
999
  }
1000
- function hu(e, t) {
1000
+ function fu(e, t) {
1001
1001
  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) ? me.Auto : me.Manual;
1002
1002
  }
1003
1003
  function di(e, t, n) {
@@ -1006,19 +1006,19 @@ function di(e, t, n) {
1006
1006
  fields: e.fields.map((o, i) => i === t ? n : o)
1007
1007
  };
1008
1008
  }
1009
- function fu(e, t) {
1009
+ function gu(e, t) {
1010
1010
  return t ? e.find((n) => n.forCommand === gt(t)) : void 0;
1011
1011
  }
1012
- var gu = vt, xe = /* @__PURE__ */ (function(e) {
1012
+ var vu = vt, xe = /* @__PURE__ */ (function(e) {
1013
1013
  return e.AutoMapped = "autoMapped", e.Renamed = "renamed", e.Composed = "composed", e.Broken = "broken", e;
1014
1014
  })({});
1015
- function vu(e, t) {
1015
+ function bu(e, t) {
1016
1016
  return e.fields.map((n) => ({
1017
1017
  field: n,
1018
- kind: bu(n, t)
1018
+ kind: yu(n, t)
1019
1019
  }));
1020
1020
  }
1021
- function bu(e, t) {
1021
+ function yu(e, t) {
1022
1022
  if (e.composeUsing) return xe.Composed;
1023
1023
  const n = e.sourceProperty ?? e.name;
1024
1024
  return t.includes(n) ? e.sourceProperty ? xe.Renamed : xe.AutoMapped : xe.Broken;
@@ -1026,8 +1026,8 @@ function bu(e, t) {
1026
1026
  var Be = /* @__PURE__ */ (function(e) {
1027
1027
  return e.None = "none", e.ViaQuery = "viaQuery", e.FromItem = "fromItem", e;
1028
1028
  })({});
1029
- function yu(e) {
1030
- return e ? wu(e) ? {
1029
+ function wu(e) {
1030
+ return e ? ku(e) ? {
1031
1031
  kind: Be.ViaQuery,
1032
1032
  queryName: e.queryName,
1033
1033
  parameterNames: Object.keys(e.parameterBindings)
@@ -1039,26 +1039,26 @@ function yu(e) {
1039
1039
  parameterNames: []
1040
1040
  };
1041
1041
  }
1042
- function wu(e) {
1042
+ function ku(e) {
1043
1043
  return "queryName" in e;
1044
1044
  }
1045
- var ku = {
1045
+ var Su = {
1046
1046
  [xe.AutoMapped]: "Auto-mapped",
1047
1047
  [xe.Renamed]: "Renamed",
1048
1048
  [xe.Composed]: "Composed",
1049
1049
  [xe.Broken]: "Broken"
1050
- }, Su = {
1050
+ }, Cu = {
1051
1051
  [Be.None]: "No populate source",
1052
1052
  [Be.ViaQuery]: "Populate via query",
1053
1053
  [Be.FromItem]: "Populate from item"
1054
1054
  };
1055
- function Cu({ form: e, commandProperties: t, onFieldSelected: n }) {
1056
- const o = yu(e.populateSource), i = vu(e, t);
1055
+ function Nu({ form: e, commandProperties: t, onFieldSelected: n }) {
1056
+ const o = wu(e.populateSource), i = bu(e, t);
1057
1057
  return /* @__PURE__ */ y("div", {
1058
1058
  className: "studio-editor-form-designer",
1059
1059
  children: [/* @__PURE__ */ y("div", {
1060
1060
  className: "studio-editor-form-designer-populate-source",
1061
- children: [/* @__PURE__ */ a("span", { children: Su[o.kind] }), o.kind === Be.ViaQuery && /* @__PURE__ */ y("span", {
1061
+ children: [/* @__PURE__ */ a("span", { children: Cu[o.kind] }), o.kind === Be.ViaQuery && /* @__PURE__ */ y("span", {
1062
1062
  className: "studio-editor-form-designer-populate-source-detail",
1063
1063
  children: [o.queryName, o.parameterNames.length > 0 && ` by ${o.parameterNames.join(", ")}`]
1064
1064
  })]
@@ -1074,7 +1074,7 @@ function Cu({ form: e, commandProperties: t, onFieldSelected: n }) {
1074
1074
  }),
1075
1075
  /* @__PURE__ */ a("span", {
1076
1076
  className: "studio-editor-form-designer-field-kind",
1077
- children: ku[s]
1077
+ children: Su[s]
1078
1078
  }),
1079
1079
  r.sourceProperty && /* @__PURE__ */ y("span", {
1080
1080
  className: "studio-editor-form-designer-field-detail",
@@ -1089,7 +1089,7 @@ function Cu({ form: e, commandProperties: t, onFieldSelected: n }) {
1089
1089
  })]
1090
1090
  });
1091
1091
  }
1092
- var Nu = ({ form: e, strings: t, onChange: n }) => {
1092
+ var Tu = ({ form: e, strings: t, onChange: n }) => {
1093
1093
  const o = kt(e), i = o.layout;
1094
1094
  return /* @__PURE__ */ y("div", {
1095
1095
  className: "studio-editor-properties__form-layout",
@@ -1100,7 +1100,7 @@ var Nu = ({ form: e, strings: t, onChange: n }) => {
1100
1100
  name: t.column(r.index + 1),
1101
1101
  value: r.width ?? Pe(),
1102
1102
  strings: t,
1103
- onChange: (s) => n(du(o, r.index, s))
1103
+ onChange: (s) => n(uu(o, r.index, s))
1104
1104
  })]
1105
1105
  }, r.index))] }),
1106
1106
  /* @__PURE__ */ y("fieldset", { children: [
@@ -1126,15 +1126,15 @@ var Nu = ({ form: e, strings: t, onChange: n }) => {
1126
1126
  ] }),
1127
1127
  /* @__PURE__ */ y("fieldset", { children: [/* @__PURE__ */ a("legend", { children: t.placements }), o.fields.map((r) => {
1128
1128
  const s = i.placements.find((l) => l.field === r.name) ?? r.placement;
1129
- return /* @__PURE__ */ y("fieldset", { children: [/* @__PURE__ */ a("legend", { children: r.label || r.name }), /* @__PURE__ */ a(Tu, {
1129
+ return /* @__PURE__ */ y("fieldset", { children: [/* @__PURE__ */ a("legend", { children: r.label || r.name }), /* @__PURE__ */ a(Iu, {
1130
1130
  placement: s,
1131
1131
  strings: t,
1132
- onChange: (l) => n(cu(o, r.name, () => l))
1132
+ onChange: (l) => n(du(o, r.name, () => l))
1133
1133
  })] }, r.name);
1134
1134
  })] })
1135
1135
  ]
1136
1136
  });
1137
- }, Tu = ({ placement: e, strings: t, onChange: n }) => /* @__PURE__ */ y(ie, { children: [
1137
+ }, Iu = ({ placement: e, strings: t, onChange: n }) => /* @__PURE__ */ y(ie, { children: [
1138
1138
  /* @__PURE__ */ a(It, {
1139
1139
  label: t.row,
1140
1140
  value: e.row,
@@ -1211,8 +1211,8 @@ function ui(e, t) {
1211
1211
  value: Number.isFinite(n) ? n : 0
1212
1212
  };
1213
1213
  }
1214
- var Iu = ({ form: e, slice: t, idPrefix: n, strings: o, disabled: i, onChange: r }) => {
1215
- const s = t?.inputs.map((c) => c.name) ?? e.fields.map((c) => c.sourceProperty ?? c.name), l = hu(e, t) === me.Auto;
1214
+ var Pu = ({ form: e, slice: t, idPrefix: n, strings: o, disabled: i, onChange: r }) => {
1215
+ const s = t?.inputs.map((c) => c.name) ?? e.fields.map((c) => c.sourceProperty ?? c.name), l = fu(e, t) === me.Auto;
1216
1216
  return /* @__PURE__ */ y("fieldset", {
1217
1217
  className: "studio-editor-properties__form",
1218
1218
  disabled: i,
@@ -1220,7 +1220,7 @@ var Iu = ({ form: e, slice: t, idPrefix: n, strings: o, disabled: i, onChange: r
1220
1220
  /* @__PURE__ */ a("legend", { children: e.name }),
1221
1221
  /* @__PURE__ */ y("label", { children: [/* @__PURE__ */ a("span", { children: o.mode }), /* @__PURE__ */ y("select", {
1222
1222
  value: l ? me.Auto : me.Manual,
1223
- onChange: (c) => t && r(c.target.value === me.Auto ? Un(t) : pu(e, t)),
1223
+ onChange: (c) => t && r(c.target.value === me.Auto ? Un(t) : mu(e, t)),
1224
1224
  children: [/* @__PURE__ */ a("option", {
1225
1225
  value: me.Auto,
1226
1226
  children: o.auto
@@ -1229,7 +1229,7 @@ var Iu = ({ form: e, slice: t, idPrefix: n, strings: o, disabled: i, onChange: r
1229
1229
  children: o.manual
1230
1230
  })]
1231
1231
  })] }),
1232
- /* @__PURE__ */ a(Cu, {
1232
+ /* @__PURE__ */ a(Nu, {
1233
1233
  form: e,
1234
1234
  commandProperties: s
1235
1235
  }),
@@ -1257,15 +1257,15 @@ var Iu = ({ form: e, slice: t, idPrefix: n, strings: o, disabled: i, onChange: r
1257
1257
  children: s.map((c) => /* @__PURE__ */ a("option", { value: c }, c))
1258
1258
  })]
1259
1259
  }),
1260
- !l && /* @__PURE__ */ a(Nu, {
1260
+ !l && /* @__PURE__ */ a(Tu, {
1261
1261
  form: e,
1262
1262
  strings: o,
1263
1263
  onChange: r
1264
1264
  })
1265
1265
  ]
1266
1266
  });
1267
- }, Pu = ({ elementId: e, command: t, slices: n, forms: o, strings: i, disabled: r, onCommandChange: s, onFormChange: l, onFormCreate: c }) => {
1268
- const u = i.properties.commandForm, d = gu(n, t), p = fu(o, d), h = t !== void 0 && t !== "" && !d;
1267
+ }, xu = ({ elementId: e, command: t, slices: n, forms: o, strings: i, disabled: r, onCommandChange: s, onFormChange: l, onFormCreate: c }) => {
1268
+ const u = i.properties.commandForm, d = vu(n, t), p = gu(o, d), h = t !== void 0 && t !== "" && !d;
1269
1269
  return /* @__PURE__ */ y("fieldset", {
1270
1270
  className: "studio-editor-query studio-editor-properties__command-form",
1271
1271
  disabled: r,
@@ -1303,7 +1303,7 @@ var Iu = ({ form: e, slice: t, idPrefix: n, strings: o, disabled: i, onChange: r
1303
1303
  onClick: () => c(d),
1304
1304
  children: u.createForm(d.name)
1305
1305
  }),
1306
- d && p && /* @__PURE__ */ a(Iu, {
1306
+ d && p && /* @__PURE__ */ a(Pu, {
1307
1307
  form: p,
1308
1308
  slice: d,
1309
1309
  idPrefix: `${e}-form`,
@@ -1313,8 +1313,8 @@ var Iu = ({ form: e, slice: t, idPrefix: n, strings: o, disabled: i, onChange: r
1313
1313
  })
1314
1314
  ]
1315
1315
  });
1316
- }, xu = ({ outlets: e, disabled: t, strings: n, onChange: o }) => {
1317
- const i = (c, u) => o(e.map((d, p) => p === c ? Ou(u) : d)), r = (c) => o(e.filter((u, d) => d !== c)), s = (c, u) => o(Ru(e, c, u)), l = () => o([...e, { name: Du(e, n.newOutletName) }]);
1316
+ }, Ou = ({ outlets: e, disabled: t, strings: n, onChange: o }) => {
1317
+ const i = (c, u) => o(e.map((d, p) => p === c ? Ru(u) : d)), r = (c) => o(e.filter((u, d) => d !== c)), s = (c, u) => o(Du(e, c, u)), l = () => o([...e, { name: Eu(e, n.newOutletName) }]);
1318
1318
  return /* @__PURE__ */ y("section", {
1319
1319
  className: "studio-editor-outlets",
1320
1320
  children: [
@@ -1371,17 +1371,17 @@ var Iu = ({ form: e, slice: t, idPrefix: n, strings: o, disabled: i, onChange: r
1371
1371
  ]
1372
1372
  });
1373
1373
  };
1374
- function Ou(e) {
1374
+ function Ru(e) {
1375
1375
  return {
1376
1376
  name: e.name,
1377
1377
  ...e.description ? { description: e.description } : {}
1378
1378
  };
1379
1379
  }
1380
- function Ru(e, t, n) {
1380
+ function Du(e, t, n) {
1381
1381
  const o = [...e], [i] = o.splice(t, 1);
1382
1382
  return i && o.splice(n, 0, i), o;
1383
1383
  }
1384
- function Du(e, t) {
1384
+ function Eu(e, t) {
1385
1385
  const n = new Set(e.map((o) => o.name));
1386
1386
  if (!n.has(t)) return t;
1387
1387
  for (let o = 2; ; o++) {
@@ -1389,24 +1389,24 @@ function Du(e, t) {
1389
1389
  if (!n.has(i)) return i;
1390
1390
  }
1391
1391
  }
1392
- function Eu(e, t, n, o) {
1392
+ function Fu(e, t, n, o) {
1393
1393
  const i = n.flatMap((s) => s.screens ?? []).find((s) => s.screenTemplate === e);
1394
1394
  if (!i) return;
1395
1395
  const r = Yt(n.map((s) => s.manifest));
1396
- return Fs(po(Ms(i), o, r), t);
1396
+ return Ms(po(As(i), o, r), t);
1397
1397
  }
1398
- function Fu(e, t) {
1398
+ function Mu(e, t) {
1399
1399
  return t.find((n) => n.name === e && n.kind === er.ScreenTemplate);
1400
1400
  }
1401
1401
  var dt = /* @__PURE__ */ (function(e) {
1402
1402
  return e.Desktop = "desktop", e.Tablet = "tablet", e.Phone = "phone", e;
1403
- })({}), Mu = ({ templateName: e, environment: t, strings: n, disabled: o, onApply: i, onDiscard: r }) => {
1404
- const [s, l] = W(nt.Populated), [c, u] = W(dt.Desktop), { bundles: d, profile: p, registry: h, designTime: m } = t.runtime, g = L(() => Eu(e, s, d, p), [
1403
+ })({}), Au = ({ templateName: e, environment: t, strings: n, disabled: o, onApply: i, onDiscard: r }) => {
1404
+ const [s, l] = W(nt.Populated), [c, u] = W(dt.Desktop), { bundles: d, profile: p, registry: h, designTime: m } = t.runtime, g = L(() => Fu(e, s, d, p), [
1405
1405
  e,
1406
1406
  s,
1407
1407
  d,
1408
1408
  p
1409
- ]), f = Fu(e, m.host.templates);
1409
+ ]), f = Mu(e, m.host.templates);
1410
1410
  return /* @__PURE__ */ y("section", {
1411
1411
  className: "studio-editor-template-preview",
1412
1412
  "aria-label": n.preview(e),
@@ -1511,12 +1511,12 @@ var dt = /* @__PURE__ */ (function(e) {
1511
1511
  children: [/* @__PURE__ */ a("option", {
1512
1512
  value: "",
1513
1513
  children: r.anyScope
1514
- }), Object.values(as).map((c) => /* @__PURE__ */ a("option", {
1514
+ }), Object.values(ss).map((c) => /* @__PURE__ */ a("option", {
1515
1515
  value: c,
1516
1516
  children: c
1517
1517
  }, c))]
1518
1518
  })] }),
1519
- /* @__PURE__ */ a(xu, {
1519
+ /* @__PURE__ */ a(Ou, {
1520
1520
  outlets: s.outlets ?? [],
1521
1521
  disabled: o,
1522
1522
  strings: n.properties.outlets,
@@ -1525,16 +1525,16 @@ var dt = /* @__PURE__ */ (function(e) {
1525
1525
  ]
1526
1526
  });
1527
1527
  }
1528
- return /* @__PURE__ */ a(Au, {
1528
+ return /* @__PURE__ */ a(_u, {
1529
1529
  controller: e,
1530
1530
  environment: t,
1531
1531
  strings: n,
1532
1532
  disabled: o
1533
1533
  });
1534
- }, Au = ({ controller: e, environment: t, strings: n, disabled: o }) => {
1534
+ }, _u = ({ controller: e, environment: t, strings: n, disabled: o }) => {
1535
1535
  const i = n.properties.templates, [r, s] = W(), l = e.document.screens.find((g) => g.name === ke);
1536
1536
  if (!l) return null;
1537
- const c = (g) => e.setScreenTemplate(t.runtime.bundles.flatMap((f) => f.screenTemplates ?? []).find((f) => f.name === g), i.choose), u = L(() => _u(us({ blueprints: Ua(t.runtime.bundles) }, Ba({
1537
+ const c = (g) => e.setScreenTemplate(t.runtime.bundles.flatMap((f) => f.screenTemplates ?? []).find((f) => f.name === g), i.choose), u = L(() => $u(ps({ blueprints: Wa(t.runtime.bundles) }, ja({
1538
1538
  bundles: t.runtime.bundles,
1539
1539
  profile: t.runtime.profile,
1540
1540
  scope: t.templateScope
@@ -1543,7 +1543,7 @@ var dt = /* @__PURE__ */ (function(e) {
1543
1543
  t.runtime.profile,
1544
1544
  t.templateScope
1545
1545
  ]), d = l.screenTemplate, p = t.runtime.bundles.flatMap((g) => g.screenTemplates ?? []).find((g) => g.name === d), h = d ? {
1546
- kind: La.Blueprint,
1546
+ kind: Ba.Blueprint,
1547
1547
  id: d
1548
1548
  } : void 0, m = {
1549
1549
  onChoose: (g) => c(g.name),
@@ -1554,7 +1554,7 @@ var dt = /* @__PURE__ */ (function(e) {
1554
1554
  className: "studio-editor-properties__templates",
1555
1555
  children: [
1556
1556
  /* @__PURE__ */ a("strong", { children: i.label }),
1557
- r && /* @__PURE__ */ a(Mu, {
1557
+ r && /* @__PURE__ */ a(Au, {
1558
1558
  templateName: r,
1559
1559
  environment: t,
1560
1560
  strings: i,
@@ -1564,7 +1564,7 @@ var dt = /* @__PURE__ */ (function(e) {
1564
1564
  },
1565
1565
  onDiscard: () => s(void 0)
1566
1566
  }),
1567
- /* @__PURE__ */ a(ja, {
1567
+ /* @__PURE__ */ a(Ua, {
1568
1568
  ariaLabel: i.choose,
1569
1569
  applicable: u,
1570
1570
  current: h,
@@ -1580,7 +1580,7 @@ var dt = /* @__PURE__ */ (function(e) {
1580
1580
  ]
1581
1581
  });
1582
1582
  };
1583
- function _u(e) {
1583
+ function $u(e) {
1584
1584
  const t = (n) => n.map((o) => ({
1585
1585
  ...o,
1586
1586
  templates: o.templates.filter((i) => i.kind === er.ScreenTemplate)
@@ -1597,8 +1597,8 @@ function pi(e) {
1597
1597
  const t = Object.fromEntries(Object.entries(e).filter(([, n]) => n !== void 0 && n !== ""));
1598
1598
  return Object.keys(t).length > 0 ? t : void 0;
1599
1599
  }
1600
- var $u = ({ templates: e, referencedTemplates: t, disabled: n, strings: o, onChange: i }) => {
1601
- const r = (u, d) => i(e.map((p, h) => h === u ? Bu(d) : p)), s = (u) => i(e.filter((d, p) => p !== u)), l = (u, d) => i(ju(e, u, d)), c = () => i([...e, Lu(Uu(e, o.newTemplateName))]);
1600
+ var Lu = ({ templates: e, referencedTemplates: t, disabled: n, strings: o, onChange: i }) => {
1601
+ const r = (u, d) => i(e.map((p, h) => h === u ? ju(d) : p)), s = (u) => i(e.filter((d, p) => p !== u)), l = (u, d) => i(Uu(e, u, d)), c = () => i([...e, Bu(Wu(e, o.newTemplateName))]);
1602
1602
  return /* @__PURE__ */ y("section", {
1603
1603
  className: "studio-editor-dialog-templates",
1604
1604
  children: [
@@ -1667,14 +1667,14 @@ var $u = ({ templates: e, referencedTemplates: t, disabled: n, strings: o, onCha
1667
1667
  ]
1668
1668
  });
1669
1669
  };
1670
- function Lu(e) {
1670
+ function Bu(e) {
1671
1671
  return {
1672
1672
  name: e,
1673
1673
  slots: [{ name: "content" }],
1674
1674
  behaviors: []
1675
1675
  };
1676
1676
  }
1677
- function Bu(e) {
1677
+ function ju(e) {
1678
1678
  return {
1679
1679
  name: e.name,
1680
1680
  slots: e.slots.length > 0 ? e.slots : [{ name: "content" }],
@@ -1686,11 +1686,11 @@ function Bu(e) {
1686
1686
  ...e.metadata ? { metadata: e.metadata } : {}
1687
1687
  };
1688
1688
  }
1689
- function ju(e, t, n) {
1689
+ function Uu(e, t, n) {
1690
1690
  const o = [...e], [i] = o.splice(t, 1);
1691
1691
  return i && o.splice(n, 0, i), o;
1692
1692
  }
1693
- function Uu(e, t) {
1693
+ function Wu(e, t) {
1694
1694
  const n = new Set(e.map((o) => o.name));
1695
1695
  if (!n.has(t)) return t;
1696
1696
  for (let o = 2; ; o++) {
@@ -1698,14 +1698,14 @@ function Uu(e, t) {
1698
1698
  if (!n.has(i)) return i;
1699
1699
  }
1700
1700
  }
1701
- var Wu = ({ controller: e, strings: t, disabled: n }) => /* @__PURE__ */ a($u, {
1701
+ var zu = ({ controller: e, strings: t, disabled: n }) => /* @__PURE__ */ a(Lu, {
1702
1702
  templates: e.document.dialogTemplates,
1703
- referencedTemplates: zu(e.document),
1703
+ referencedTemplates: qu(e.document),
1704
1704
  disabled: n,
1705
1705
  strings: t.properties.dialogTemplates,
1706
1706
  onChange: (o) => e.setDialogTemplates(o, t.properties.dialogTemplates.label)
1707
1707
  });
1708
- function zu(e) {
1708
+ function qu(e) {
1709
1709
  const t = /* @__PURE__ */ new Set();
1710
1710
  return ut(e.screens, t), ut(e.screenTemplates, t), ut(e.instanceContributions, t), t;
1711
1711
  }
@@ -1719,15 +1719,15 @@ function ut(e, t) {
1719
1719
  typeof n.dialog == "string" && n.dialog.length > 0 && t.add(n.dialog);
1720
1720
  for (const o of Object.values(n)) ut(o, t);
1721
1721
  }
1722
- var qu = (e, t, n = !1) => ({
1722
+ var Ku = (e, t, n = !1) => ({
1723
1723
  kind: V.ChangeLayoutType,
1724
1724
  nodeId: e,
1725
1725
  to: t,
1726
1726
  ...n ? { acceptLoss: !0 } : {}
1727
1727
  });
1728
- function Ku(e, t, n) {
1728
+ function Gu(e, t, n) {
1729
1729
  if (t) return { kind: "applied" };
1730
- const o = n.find((i) => i.code === es.LossyConversionNotAccepted);
1730
+ const o = n.find((i) => i.code === ts.LossyConversionNotAccepted);
1731
1731
  return o ? {
1732
1732
  kind: "confirm",
1733
1733
  lost: o.message,
@@ -1740,11 +1740,11 @@ function Ku(e, t, n) {
1740
1740
  diagnostics: [...n]
1741
1741
  };
1742
1742
  }
1743
- var Gu = ({ inspection: e, controller: t, strings: n, disabled: o }) => {
1743
+ var Hu = ({ inspection: e, controller: t, strings: n, disabled: o }) => {
1744
1744
  const i = n.properties, [r, s] = W(), l = zo(t.context.catalog, e.typeId), c = l?.capabilities.convertibleTo ?? [];
1745
1745
  if (!l || c.length === 0) return null;
1746
1746
  const u = (d) => {
1747
- const p = t.tryApply(d, i.changeLayout), h = Ku(d, p.applied, p.diagnostics);
1747
+ const p = t.tryApply(d, i.changeLayout), h = Gu(d, p.applied, p.diagnostics);
1748
1748
  s(h.kind === "confirm" ? {
1749
1749
  lost: h.lost,
1750
1750
  edit: h.edit
@@ -1755,7 +1755,7 @@ var Gu = ({ inspection: e, controller: t, strings: n, disabled: o }) => {
1755
1755
  children: [/* @__PURE__ */ y("label", { children: [/* @__PURE__ */ a("span", { children: i.layoutType }), /* @__PURE__ */ y("select", {
1756
1756
  value: e.typeId,
1757
1757
  disabled: o,
1758
- onChange: (d) => u(qu(e.nodeId, d.target.value)),
1758
+ onChange: (d) => u(Ku(e.nodeId, d.target.value)),
1759
1759
  children: [/* @__PURE__ */ a("option", {
1760
1760
  value: e.typeId,
1761
1761
  children: l.label
@@ -1786,7 +1786,7 @@ var Gu = ({ inspection: e, controller: t, strings: n, disabled: o }) => {
1786
1786
  })]
1787
1787
  });
1788
1788
  };
1789
- function Hu(e, t, n, o = {}) {
1789
+ function Vu(e, t, n, o = {}) {
1790
1790
  const i = {
1791
1791
  component: t,
1792
1792
  path: n,
@@ -1800,7 +1800,7 @@ function Hu(e, t, n, o = {}) {
1800
1800
  property: i
1801
1801
  };
1802
1802
  }
1803
- function Vu(e, t, n) {
1803
+ function Ju(e, t, n) {
1804
1804
  return {
1805
1805
  kind: V.UnexposeProperty,
1806
1806
  owner: e,
@@ -1808,24 +1808,24 @@ function Vu(e, t, n) {
1808
1808
  path: n
1809
1809
  };
1810
1810
  }
1811
- var Ju = (e, t, n, o) => e.exposures.some((i) => i.owner === t && i.properties.some((r) => r.component === n && r.path === o)), Qu = [
1811
+ var Qu = (e, t, n, o) => e.exposures.some((i) => i.owner === t && i.properties.some((r) => r.component === n && r.path === o)), Yu = [
1812
1812
  ge.Add,
1813
1813
  ge.Remove,
1814
1814
  ge.Reorder,
1815
1815
  ge.EditFields
1816
- ], Yu = ({ inspection: e, componentId: t, controller: n, strings: o, authoringTemplate: i }) => {
1816
+ ], Zu = ({ inspection: e, componentId: t, controller: n, strings: o, authoringTemplate: i }) => {
1817
1817
  const r = o.properties;
1818
1818
  if (i === void 0) return null;
1819
1819
  const s = e.properties.filter((l) => l.descriptor.valueType !== K.Object && l.descriptor.group !== "Placement");
1820
1820
  return s.length === 0 ? null : /* @__PURE__ */ y("section", {
1821
1821
  className: "studio-editor-properties__exposure",
1822
1822
  children: [/* @__PURE__ */ a("strong", { children: r.exposure }), /* @__PURE__ */ a("ul", { children: s.map((l) => {
1823
- const c = l.descriptor.path, u = Ju(n.document, i, t, c), d = l.descriptor.valueType === K.Collection;
1823
+ const c = l.descriptor.path, u = Qu(n.document, i, t, c), d = l.descriptor.valueType === K.Collection;
1824
1824
  return /* @__PURE__ */ a("li", { children: /* @__PURE__ */ y("label", { children: [
1825
1825
  /* @__PURE__ */ a("input", {
1826
1826
  type: "checkbox",
1827
1827
  checked: u,
1828
- onChange: (p) => n.apply(p.target.checked ? Hu(i, t, c, d ? { operations: Qu } : {}) : Vu(i, t, c), u ? r.unexposeProperty : r.exposeProperty)
1828
+ onChange: (p) => n.apply(p.target.checked ? Vu(i, t, c, d ? { operations: Yu } : {}) : Ju(i, t, c), u ? r.unexposeProperty : r.exposeProperty)
1829
1829
  }),
1830
1830
  /* @__PURE__ */ a("span", { children: l.descriptor.label }),
1831
1831
  u && /* @__PURE__ */ a("em", { children: r.exposedToScopes })
@@ -1840,18 +1840,18 @@ function Wn(e, t, n = e.label) {
1840
1840
  return mi(t) ? void 0 : `${n} is not a list of words`;
1841
1841
  case Ji:
1842
1842
  return Array.isArray(t) && t.every((o) => typeof o == "number") ? void 0 : `${n} is not a list of numbers`;
1843
- case qa:
1843
+ case Ka:
1844
1844
  return typeof t == "string" || mi(t) ? void 0 : `${n} is not a word or a list of words`;
1845
- case za:
1845
+ case qa:
1846
1846
  return [
1847
1847
  "string",
1848
1848
  "number",
1849
1849
  "boolean"
1850
1850
  ].includes(typeof t) ? void 0 : `${n} is not a word, a number or a yes or no`;
1851
1851
  }
1852
- if (e.valueType === K.Object && e.editorKind === Ga && e.properties === void 0) return rn(t) ? void 0 : `${n} is not a record of values`;
1853
- if (Ka(e) && rn(t)) return e.properties.map((o) => Wn(o, t[o.path], `${n} / ${o.label}`)).find((o) => o !== void 0);
1854
- if (Ha(e) && Array.isArray(t)) for (const [o, i] of t.entries()) {
1852
+ if (e.valueType === K.Object && e.editorKind === Ha && e.properties === void 0) return rn(t) ? void 0 : `${n} is not a record of values`;
1853
+ if (Ga(e) && rn(t)) return e.properties.map((o) => Wn(o, t[o.path], `${n} / ${o.label}`)).find((o) => o !== void 0);
1854
+ if (Va(e) && Array.isArray(t)) for (const [o, i] of t.entries()) {
1855
1855
  if (!rn(i)) continue;
1856
1856
  const r = e.item.properties.map((s) => Wn(s, i[s.path], `${n} ${o + 1} / ${s.label}`)).find((s) => s !== void 0);
1857
1857
  if (r) return r;
@@ -1886,7 +1886,7 @@ function hi(e, t) {
1886
1886
  };
1887
1887
  }
1888
1888
  var ko = ({ registry: e, property: t, context: n, componentId: o, onChange: i, diagnostics: r, presentation: s = "field" }) => {
1889
- const l = s === "popover", { descriptor: c } = t, u = `pe-${o}-${c.path}`.replace(/[^A-Za-z0-9_-]/g, "-"), d = e.resolve(c), p = Ma(t), { editor: h, failed: m } = hi(e, d?.id), { editor: g } = hi(e, p ? "bindingExpression" : void 0), f = n.strings.editors, v = !t.editable || c.readOnly === !0, P = t.editable ? c.readOnly === !0 ? f.readOnly : void 0 : t.reason ?? f.inherited, x = t.effectiveValue, O = Zu(t, r), T = x == null || !Lo(c) ? void 0 : sn(c, x) ?? Wn(c, x), w = T !== void 0 && sn(c, x) !== void 0 ? Wa(c, x) : void 0, b = w !== void 0 && sn(c, w) === void 0, C = (E) => i(t, E), F = p && $a(x), N = c.valueType === "boolean", S = Lo(c);
1889
+ const l = s === "popover", { descriptor: c } = t, u = `pe-${o}-${c.path}`.replace(/[^A-Za-z0-9_-]/g, "-"), d = e.resolve(c), p = Aa(t), { editor: h, failed: m } = hi(e, d?.id), { editor: g } = hi(e, p ? "bindingExpression" : void 0), f = n.strings.editors, v = !t.editable || c.readOnly === !0, P = t.editable ? c.readOnly === !0 ? f.readOnly : void 0 : t.reason ?? f.inherited, x = t.effectiveValue, O = Xu(t, r), T = x == null || !Lo(c) ? void 0 : sn(c, x) ?? Wn(c, x), w = T !== void 0 && sn(c, x) !== void 0 ? za(c, x) : void 0, b = w !== void 0 && sn(c, w) === void 0, C = (E) => i(t, E), F = p && La(x), N = c.valueType === "boolean", S = Lo(c);
1890
1890
  return /* @__PURE__ */ y("div", {
1891
1891
  className: `studio-editor-field${N ? " studio-editor-field--inline" : ""}`,
1892
1892
  "data-property": c.path,
@@ -1979,7 +1979,7 @@ var ko = ({ registry: e, property: t, context: n, componentId: o, onChange: i, d
1979
1979
  ]
1980
1980
  });
1981
1981
  };
1982
- function Zu(e, t) {
1982
+ function Xu(e, t) {
1983
1983
  const n = t.find((o) => o.path === e.descriptor.path && o.severity === "error");
1984
1984
  return n ? {
1985
1985
  code: n.code,
@@ -2100,7 +2100,7 @@ var Wr = {
2100
2100
  }
2101
2101
  }, Oe = /* @__PURE__ */ (function(e) {
2102
2102
  return e.NotJson = "notJson", e.WrongShape = "wrongShape", e.MissingScreen = "missingScreen", e.MissingTemplate = "missingTemplate", e;
2103
- })({}), Xu = [
2103
+ })({}), ep = [
2104
2104
  "layouts",
2105
2105
  "screenTemplates",
2106
2106
  "dialogTemplates",
@@ -2119,7 +2119,7 @@ function zr(e, t) {
2119
2119
  };
2120
2120
  }
2121
2121
  const o = n;
2122
- if (!o || typeof o != "object" || Xu.some((r) => !Array.isArray(o[r]))) return {
2122
+ if (!o || typeof o != "object" || ep.some((r) => !Array.isArray(o[r]))) return {
2123
2123
  readable: !1,
2124
2124
  problem: Oe.WrongShape
2125
2125
  };
@@ -2143,7 +2143,7 @@ var te = /* @__PURE__ */ (function(e) {
2143
2143
  })({}), fi = {
2144
2144
  Compact: "Compact",
2145
2145
  Regular: "Regular"
2146
- }, ep = {
2146
+ }, tp = {
2147
2147
  ariaLabel: "Icon",
2148
2148
  picker: {
2149
2149
  placeholder: "Choose an icon",
@@ -2173,7 +2173,7 @@ var te = /* @__PURE__ */ (function(e) {
2173
2173
  "catalog-unavailable": "The icons of {library} could not be read, so they cannot be checked. Try again in a moment."
2174
2174
  },
2175
2175
  notAllowed: "This icon is not available for this field. Choose one of the icons the field offers."
2176
- }, tp = {
2176
+ }, np = {
2177
2177
  inspectorTitle: "Inspector",
2178
2178
  windowLabel: "Screen editor",
2179
2179
  stopped: {
@@ -2263,7 +2263,7 @@ var te = /* @__PURE__ */ (function(e) {
2263
2263
  exposedToScopes: "Screens can change this",
2264
2264
  itemsLabel: "Items",
2265
2265
  addItem: "Add item",
2266
- icon: ep,
2266
+ icon: tp,
2267
2267
  structured: Hi,
2268
2268
  editors: Wr,
2269
2269
  templates: {
@@ -2501,7 +2501,7 @@ var te = /* @__PURE__ */ (function(e) {
2501
2501
  [te.NoChange]: "It is already there."
2502
2502
  }
2503
2503
  };
2504
- function np(e, t) {
2504
+ function op(e, t) {
2505
2505
  const n = e?.query, o = n !== null && typeof n == "object" && "queryId" in n ? n.queryId : void 0;
2506
2506
  return typeof o == "string" ? t.find((i) => i.id === o)?.resultFields ?? [] : [];
2507
2507
  }
@@ -2515,7 +2515,7 @@ function So(e) {
2515
2515
  ...t.navigationModule !== void 0 ? { navigationModule: t.navigationModule } : {},
2516
2516
  queryCandidates: n.queryCandidates,
2517
2517
  availableSources: n.availableSources,
2518
- fields: np(u, n.queryCandidates),
2518
+ fields: op(u, n.queryCandidates),
2519
2519
  colorTokens: d?.colorTokens ?? [],
2520
2520
  icons: {
2521
2521
  catalog: p.icons,
@@ -2547,11 +2547,11 @@ function So(e) {
2547
2547
  } : g,
2548
2548
  structured: m.structured ?? Hi,
2549
2549
  icon: m.icon,
2550
- iconPicker: m.iconPickerLabels ?? tp.properties.iconPickerLabels ?? {}
2550
+ iconPicker: m.iconPickerLabels ?? np.properties.iconPickerLabels ?? {}
2551
2551
  }
2552
2552
  };
2553
2553
  }
2554
- function op(e, t, n) {
2554
+ function ip(e, t, n) {
2555
2555
  return {
2556
2556
  ...e,
2557
2557
  session: {
@@ -2563,7 +2563,7 @@ function op(e, t, n) {
2563
2563
  }
2564
2564
  };
2565
2565
  }
2566
- function ip(e) {
2566
+ function rp(e) {
2567
2567
  switch (e.valueType) {
2568
2568
  case K.String:
2569
2569
  return "text";
@@ -2589,7 +2589,7 @@ function ip(e) {
2589
2589
  return "undescribed";
2590
2590
  }
2591
2591
  }
2592
- var rp = class {
2592
+ var ap = class {
2593
2593
  #e = /* @__PURE__ */ new Map();
2594
2594
  #n = /* @__PURE__ */ new Map();
2595
2595
  #t = /* @__PURE__ */ new Map();
@@ -2632,15 +2632,15 @@ var rp = class {
2632
2632
  id: e.editorKind,
2633
2633
  tier: "package"
2634
2634
  };
2635
- const n = ip(e);
2635
+ const n = rp(e);
2636
2636
  return n !== void 0 && this.#e.has(n) ? {
2637
2637
  id: n,
2638
2638
  tier: "default"
2639
2639
  } : void 0;
2640
2640
  }
2641
2641
  };
2642
- function ap() {
2643
- const e = new rp();
2642
+ function sp() {
2643
+ const e = new ap();
2644
2644
  e.register(Q.Text, async () => (await import("./TextEditor-BEH-9K1S.js")).TextEditor), e.register(Q.Number, async () => (await import("./NumberEditor-Cyo9_23Z.js")).NumberEditor), e.register(Q.Boolean, async () => (await import("./BooleanEditor-eC1yCpz0.js")).BooleanEditor), e.register(Q.Enum, async () => (await import("./EnumEditor-DNnnf9i3.js")).EnumEditor), e.register(Q.Select, async () => (await import("./SelectEditor-DStMNhWd.js")).SelectEditor), e.register(Q.Color, async () => (await import("./ColorEditor-Cc6Xq8pW.js")).ColorEditor), e.register(Q.Icon, async () => (await import("./IconEditor-C0ibqn-e.js")).IconEditor), e.register(Q.List, async () => (await import("./ListEditor-CfFPVVJ4.js")).ListEditor), e.register(Q.Reference, async () => (await import("./ReferenceEditor-DYLimujk.js")).ReferenceEditor), e.register(Q.NavigationTarget, async () => (await import("./NavigationTargetEditor-DiGohBww.js")).NavigationTargetEditor), e.register(Q.RenderingSlot, async () => (await import("./RenderingSlotEditor-D0ppEIOx.js")).RenderingSlotEditor), e.register(Q.Slice, async () => (await import("./SliceEditor-C9bAGN4f.js")).SliceEditor), e.register(Q.InheritanceMode, async () => (await import("./InheritanceModeEditor-CtdsACnc.js")).InheritanceModeEditor), e.register(Q.Field, async () => (await import("./FieldEditor-Biz82jlR.js")).FieldEditor), e.register(Q.ColumnList, async () => (await import("./ColumnListEditor-MZzEtJuo.js")).ColumnListEditor), e.register(Q.Template, async () => (await import("./TemplatePropertyEditor-Dx1dw5aY.js")).TemplatePropertyEditor), e.register(Q.SampleData, async () => (await import("./ReferenceTargetEditors-D0jEg1QM.js")).SampleDataEditor), e.register("object", async () => (await import("./StructuredPropertyEditor-B3lVjrHZ.js")).StructuredPropertyEditor), e.register("collection", async () => (await import("./CollectionEditor-C7eX8Hw7.js")).CollectionEditor);
2645
2645
  for (const t of [
2646
2646
  Q.StringList,
@@ -2660,7 +2660,7 @@ function ap() {
2660
2660
  ]) e.register(t, async () => (await import("./SummaryEditor-C5wP1uIH.js")).SummaryEditor);
2661
2661
  return e;
2662
2662
  }
2663
- var Xt = ap(), Co = "presentation", No = "arguments", Pt = (e) => typeof e == "string" ? e : "";
2663
+ var Xt = sp(), Co = "presentation", No = "arguments", Pt = (e) => typeof e == "string" ? e : "";
2664
2664
  function qr(e, t = "") {
2665
2665
  const n = Pt(e?.command);
2666
2666
  if (n === "") return;
@@ -2672,7 +2672,7 @@ function qr(e, t = "") {
2672
2672
  presentation: Object.values(he).includes(r) ? r : he.None
2673
2673
  };
2674
2674
  }
2675
- function sp(e) {
2675
+ function lp(e) {
2676
2676
  return {
2677
2677
  command: e.sliceId,
2678
2678
  [Co]: e.presentation,
@@ -2683,9 +2683,9 @@ function sp(e) {
2683
2683
  }))
2684
2684
  };
2685
2685
  }
2686
- function lp(e, t) {
2686
+ function cp(e, t) {
2687
2687
  const n = oe(e);
2688
- return Object.entries(sp(t)).map(([o, i]) => ({
2688
+ return Object.entries(lp(t)).map(([o, i]) => ({
2689
2689
  kind: V.SetProperty,
2690
2690
  nodeId: n,
2691
2691
  path: o,
@@ -2698,12 +2698,12 @@ var Y = /* @__PURE__ */ (function(e) {
2698
2698
  kind: Y.None,
2699
2699
  target: ""
2700
2700
  };
2701
- function cp(e) {
2702
- const t = e?.find((n) => n.name === zn)?.bindings.find((n) => pp(n.trigger))?.actions[0];
2703
- return t ? up(t) : Kr;
2701
+ function dp(e) {
2702
+ const t = e?.find((n) => n.name === zn)?.bindings.find((n) => mp(n.trigger))?.actions[0];
2703
+ return t ? pp(t) : Kr;
2704
2704
  }
2705
2705
  function gi(e, t) {
2706
- const n = (e ?? []).filter((r) => r.name !== zn), o = dp(t), i = o ? [...n, {
2706
+ const n = (e ?? []).filter((r) => r.name !== zn), o = up(t), i = o ? [...n, {
2707
2707
  name: zn,
2708
2708
  bindings: [{
2709
2709
  trigger: { kind: Zi.Click },
@@ -2712,7 +2712,7 @@ function gi(e, t) {
2712
2712
  }] : n;
2713
2713
  return i.length > 0 ? i : void 0;
2714
2714
  }
2715
- function dp(e) {
2715
+ function up(e) {
2716
2716
  if (e.target !== "")
2717
2717
  switch (e.kind) {
2718
2718
  case Y.Navigate:
@@ -2734,7 +2734,7 @@ function dp(e) {
2734
2734
  return;
2735
2735
  }
2736
2736
  }
2737
- function up(e) {
2737
+ function pp(e) {
2738
2738
  switch (e.kind) {
2739
2739
  case it.Navigate:
2740
2740
  return {
@@ -2755,14 +2755,14 @@ function up(e) {
2755
2755
  return Kr;
2756
2756
  }
2757
2757
  }
2758
- function pp(e) {
2758
+ function mp(e) {
2759
2759
  return e?.kind === Zi.Click;
2760
2760
  }
2761
- var mp = ({ behaviors: e, targets: t, destinations: n, slices: o, strings: i, disabled: r, onChange: s }) => {
2762
- const l = cp(e), [c, u] = W(Y.None), d = l.kind === Y.None ? {
2761
+ var hp = ({ behaviors: e, targets: t, destinations: n, slices: o, strings: i, disabled: r, onChange: s }) => {
2762
+ const l = dp(e), [c, u] = W(Y.None), d = l.kind === Y.None ? {
2763
2763
  kind: c,
2764
2764
  target: ""
2765
- } : l, p = hp(d.kind, t, n, o), h = d.target !== "" && !p.some((f) => f.value === d.target), m = (f) => {
2765
+ } : l, p = fp(d.kind, t, n, o), h = d.target !== "" && !p.some((f) => f.value === d.target), m = (f) => {
2766
2766
  u(f), l.kind !== Y.None && s(gi(e, {
2767
2767
  kind: Y.None,
2768
2768
  target: ""
@@ -2830,7 +2830,7 @@ var mp = ({ behaviors: e, targets: t, destinations: n, slices: o, strings: i, di
2830
2830
  ]
2831
2831
  });
2832
2832
  };
2833
- function hp(e, t, n, o) {
2833
+ function fp(e, t, n, o) {
2834
2834
  switch (e) {
2835
2835
  case Y.Navigate:
2836
2836
  return n.map((i) => ({
@@ -2963,19 +2963,19 @@ var To = {
2963
2963
  }, en = /* @__PURE__ */ (function(e) {
2964
2964
  return e.Elements = "elements", e.Collection = "collection", e.Region = "region", e;
2965
2965
  })({}), Gr = (e) => "rejected" in e;
2966
- function fp(e, t) {
2966
+ function gp(e, t) {
2967
2967
  switch (e.availability) {
2968
2968
  case void 0:
2969
2969
  return !0;
2970
- case js:
2970
+ case Us:
2971
2971
  return !t.readOnly;
2972
2972
  default:
2973
2973
  return !1;
2974
2974
  }
2975
2975
  }
2976
- var Io = Us;
2976
+ var Io = Ws;
2977
2977
  function xt(e, t) {
2978
- if (!fp(e, t)) return {
2978
+ if (!gp(e, t)) return {
2979
2979
  visible: !1,
2980
2980
  enabled: !1
2981
2981
  };
@@ -3011,10 +3011,10 @@ var Po = (e, t, n) => e.flatMap((o) => {
3011
3011
  ...o,
3012
3012
  children: Po(o.children, t, n)
3013
3013
  } : o];
3014
- }), gp = (e) => Object.fromEntries(Object.entries(e).filter(([, t]) => t !== void 0)), Ot = (e, t, n) => Po(e, t, (o) => gp({
3014
+ }), vp = (e) => Object.fromEntries(Object.entries(e).filter(([, t]) => t !== void 0)), Ot = (e, t, n) => Po(e, t, (o) => vp({
3015
3015
  ...o,
3016
3016
  ...n
3017
- })), vp = (e, t) => Po(e, t, () => {
3017
+ })), bp = (e, t) => Po(e, t, () => {
3018
3018
  });
3019
3019
  function Ht(e, t) {
3020
3020
  for (const n of e) {
@@ -3030,7 +3030,7 @@ function bt(e, t) {
3030
3030
  if (o) return o;
3031
3031
  }
3032
3032
  }
3033
- function bp(e, t, n) {
3033
+ function yp(e, t, n) {
3034
3034
  const o = bt(e, t);
3035
3035
  if (!o) return [...e];
3036
3036
  const i = o.findIndex((l) => l.id === t);
@@ -3052,7 +3052,7 @@ var Hr = (e, t) => ({
3052
3052
  id: t(),
3053
3053
  ...e.children ? { children: e.children.map((n) => Hr(n, t)) } : {}
3054
3054
  });
3055
- function yp(e, t, n) {
3055
+ function wp(e, t, n) {
3056
3056
  const o = Ht(e, t), i = bt(e, t);
3057
3057
  if (!o || !i) return { items: [...e] };
3058
3058
  const r = Hr(o, n), s = i.findIndex((c) => c.id === t) + 1, l = [
@@ -3065,18 +3065,18 @@ function yp(e, t, n) {
3065
3065
  copy: r
3066
3066
  };
3067
3067
  }
3068
- var wp = () => ({
3068
+ var kp = () => ({
3069
3069
  application: { regions: [] },
3070
3070
  modules: []
3071
- }), vi = (e) => e.navigation ?? wp(), kp = (e, t) => ({
3071
+ }), vi = (e) => e.navigation ?? kp(), Sp = (e, t) => ({
3072
3072
  ...e,
3073
3073
  navigation: t
3074
3074
  });
3075
- function Sp(e, t, n) {
3075
+ function Cp(e, t, n) {
3076
3076
  return (t === void 0 ? e.application.regions : e.modules.find((o) => o.module === t)?.regions ?? []).find((o) => o.region === n)?.items ?? [];
3077
3077
  }
3078
- var Cp = (e) => e;
3079
- function Np(e, t) {
3078
+ var Np = (e) => e;
3079
+ function Tp(e, t) {
3080
3080
  if (!t?.module) return;
3081
3081
  const n = e.modules.find((r) => r.id === t.module);
3082
3082
  if (!n) return t.module;
@@ -3090,13 +3090,13 @@ function Np(e, t) {
3090
3090
  return [n.name, ...o].join(" › ");
3091
3091
  }
3092
3092
  function Vr(e) {
3093
- const { region: t, module: n, navigation: o, structure: i, newId: r, slots: s, startingLabel: l, strings: c } = e, u = nr(i, o, n, t), d = Sp(o, n, t), p = vs(i, o, { slots: [...s] }), h = (O) => `${n ?? "application"}:${t}:${O}`, m = [], g = (O, T) => {
3093
+ const { region: t, module: n, navigation: o, structure: i, newId: r, slots: s, startingLabel: l, strings: c } = e, u = nr(i, o, n, t), d = Cp(o, n, t), p = bs(i, o, { slots: [...s] }), h = (O) => `${n ?? "application"}:${t}:${O}`, m = [], g = (O, T) => {
3094
3094
  const w = O.filter((b) => !b.readOnly);
3095
3095
  O.forEach((b) => {
3096
3096
  const C = Ht(d, b.id)?.target ?? (b.target ? {
3097
3097
  module: b.target.module,
3098
3098
  ...b.target.feature ? { feature: b.target.feature } : {}
3099
- } : void 0), F = b.readOnly ? -1 : w.indexOf(b), N = Np(i, C), S = p.filter((E) => E.entry === h(b.id)).map((E) => ({
3099
+ } : void 0), F = b.readOnly ? -1 : w.indexOf(b), N = Tp(i, C), S = p.filter((E) => E.entry === h(b.id)).map((E) => ({
3100
3100
  code: E.code,
3101
3101
  message: E.message
3102
3102
  }));
@@ -3139,7 +3139,7 @@ function Vr(e) {
3139
3139
  region: t,
3140
3140
  items: O
3141
3141
  }] }), x = (O) => {
3142
- const T = r(), w = ds(o, n, t, {
3142
+ const T = r(), w = us(o, n, t, {
3143
3143
  id: T,
3144
3144
  title: l
3145
3145
  }, O), b = w.edits.some((C) => C.kind === Uo.SetRegionMode);
@@ -3159,7 +3159,7 @@ function Vr(e) {
3159
3159
  region: {
3160
3160
  region: f,
3161
3161
  ...n !== void 0 ? { module: n } : {},
3162
- ...u.mode ? { mode: Cp(u.mode) } : {}
3162
+ ...u.mode ? { mode: Np(u.mode) } : {}
3163
3163
  },
3164
3164
  add: (O) => O === A.addItem ? x() : { rejected: O },
3165
3165
  act: (O, T) => {
@@ -3169,15 +3169,15 @@ function Vr(e) {
3169
3169
  case A.moveEarlier:
3170
3170
  case A.moveLater: {
3171
3171
  const w = T.index + (O === A.moveEarlier ? -1 : 1), b = bt(d, T.id);
3172
- return !b || w < 0 || w >= b.length ? { rejected: "noWhere" } : v("Move", P(bp(d, T.id, w)), { itemId: T.id });
3172
+ return !b || w < 0 || w >= b.length ? { rejected: "noWhere" } : v("Move", P(yp(d, T.id, w)), { itemId: T.id });
3173
3173
  }
3174
3174
  case A.duplicate: {
3175
- const w = yp(d, T.id, r);
3175
+ const w = wp(d, T.id, r);
3176
3176
  return w.copy ? v("Duplicate", P(w.items), { itemId: w.copy.id }) : { rejected: O };
3177
3177
  }
3178
3178
  case A.delete: {
3179
3179
  const w = bt(d, T.id) ?? [], b = w.findIndex((F) => F.id === T.id), C = w[b + 1] ?? w[b - 1];
3180
- return v("Remove", P(vp(d, T.id)), { itemId: C?.id ?? null });
3180
+ return v("Remove", P(bp(d, T.id)), { itemId: C?.id ?? null });
3181
3181
  }
3182
3182
  default:
3183
3183
  return { rejected: O };
@@ -3189,7 +3189,7 @@ function Vr(e) {
3189
3189
  if (w) {
3190
3190
  if (O === A.target) return {
3191
3191
  property: kn("target", "Navigate to", "navigationItemTarget", w.target),
3192
- plan: (b) => v("Link", P(Ot(d, T.id, { target: Tp(b) ? b : void 0 })), { itemId: T.id })
3192
+ plan: (b) => v("Link", P(Ot(d, T.id, { target: Ip(b) ? b : void 0 })), { itemId: T.id })
3193
3193
  };
3194
3194
  if (O === A.slot) return {
3195
3195
  property: kn("slot", "Render into slot", "renderingSlot", w.slot ?? "content"),
@@ -3216,7 +3216,7 @@ function Vr(e) {
3216
3216
  }]
3217
3217
  };
3218
3218
  }
3219
- var Tp = (e) => typeof e == "object" && e !== null && typeof e.module == "string";
3219
+ var Ip = (e) => typeof e == "object" && e !== null && typeof e.module == "string";
3220
3220
  function kn(e, t, n, o) {
3221
3221
  return {
3222
3222
  descriptor: {
@@ -3233,7 +3233,7 @@ function kn(e, t, n, o) {
3233
3233
  };
3234
3234
  }
3235
3235
  var yt = () => globalThis.crypto.randomUUID(), bi = (e) => typeof e == "string" ? e : "";
3236
- function Ip({ componentId: e, property: t, newId: n, startingLabel: o, startingDestination: i }) {
3236
+ function Pp({ componentId: e, property: t, newId: n, startingLabel: o, startingDestination: i }) {
3237
3237
  const r = t.descriptor.path, s = t.items ?? [], l = s.filter((m) => m.editable), c = new Set(t.operations ?? []), u = {
3238
3238
  component: e,
3239
3239
  path: r
@@ -3378,10 +3378,10 @@ function Qr(e, t, n, o = {}, i = {}) {
3378
3378
  slots: i
3379
3379
  };
3380
3380
  }
3381
- var Pp = (e, t) => e.descriptor.valueType === "number" && typeof t == "string" ? t.trim() === "" ? void 0 : Number(t) : t;
3381
+ var xp = (e, t) => e.descriptor.valueType === "number" && typeof t == "string" ? t.trim() === "" ? void 0 : Number(t) : t;
3382
3382
  function qn(e, t, n) {
3383
- const o = Pp(t, n);
3384
- return t.editTarget === ts.Instance ? o === void 0 ? {
3383
+ const o = xp(t, n);
3384
+ return t.editTarget === ns.Instance ? o === void 0 ? {
3385
3385
  kind: V.ResetInstanceValue,
3386
3386
  component: e,
3387
3387
  path: t.descriptor.path
@@ -3405,10 +3405,10 @@ function Yr(e, t, n) {
3405
3405
  if (e.modules.length === 0) return;
3406
3406
  const o = uo(t, n);
3407
3407
  if (!o || o.slice) return;
3408
- const { button: i, converted: r } = Cs(new Qt(e), o);
3408
+ const { button: i, converted: r } = Ns(new Qt(e), o);
3409
3409
  return r && i.slice ? { slice: i.slice } : void 0;
3410
3410
  }
3411
- function xp(e, t) {
3411
+ function Op(e, t) {
3412
3412
  return [{
3413
3413
  kind: V.SetProperty,
3414
3414
  nodeId: oe(e),
@@ -3420,7 +3420,7 @@ function xp(e, t) {
3420
3420
  path: "target"
3421
3421
  }];
3422
3422
  }
3423
- function Op(e, t) {
3423
+ function Rp(e, t) {
3424
3424
  const n = structuredClone(e);
3425
3425
  return Kn(n, t), n;
3426
3426
  }
@@ -3441,7 +3441,7 @@ var Gn = (e) => typeof e == "string" ? e : "", tn = { [A.addButton]: {
3441
3441
  isUnlinked: (e, t) => Gn(t.slice) === "" && Gn(t.target) === "" && t.destination === void 0,
3442
3442
  startingProperties: { kind: "Action" }
3443
3443
  } };
3444
- function Rp({ component: e, addActionId: t, ownershipOf: n, inspect: o, newId: i, startingLabel: r, structure: s }) {
3444
+ function Dp({ component: e, addActionId: t, ownershipOf: n, inspect: o, newId: i, startingLabel: r, structure: s }) {
3445
3445
  const l = tn[t];
3446
3446
  if (!l) return;
3447
3447
  const c = e.slots?.[l.slot] ?? [], u = c.map((h, m) => {
@@ -3504,7 +3504,7 @@ function Rp({ component: e, addActionId: t, ownershipOf: n, inspect: o, newId: i
3504
3504
  };
3505
3505
  }
3506
3506
  case A.duplicate:
3507
- return p(Op(g, i), m.index + 1, "Duplicate");
3507
+ return p(Rp(g, i), m.index + 1, "Duplicate");
3508
3508
  case A.delete: {
3509
3509
  const f = c[m.index + 1] ?? c[m.index - 1];
3510
3510
  return {
@@ -3543,7 +3543,7 @@ function Rp({ component: e, addActionId: t, ownershipOf: n, inspect: o, newId: i
3543
3543
  readOnlyActions: () => []
3544
3544
  };
3545
3545
  }
3546
- function Dp(e) {
3546
+ function Ep(e) {
3547
3547
  const { roots: t, catalog: n, selectedId: o, selectedItemId: i } = e;
3548
3548
  if (!o) return;
3549
3549
  const r = Le(t, o);
@@ -3568,14 +3568,14 @@ function wi(e, t, n, o, i) {
3568
3568
  let p;
3569
3569
  if (d.itemsPath !== void 0) {
3570
3570
  const m = s(t.id)?.properties.find((g) => g.descriptor.path === d.itemsPath);
3571
- p = m && Ip({
3571
+ p = m && Pp({
3572
3572
  componentId: t.id,
3573
3573
  property: m,
3574
3574
  newId: c,
3575
3575
  startingLabel: u.item,
3576
3576
  ...e.startingDestination ? { startingDestination: e.startingDestination } : {}
3577
3577
  });
3578
- } else tn[n] ? p = Rp({
3578
+ } else tn[n] ? p = Dp({
3579
3579
  component: t,
3580
3580
  addActionId: n,
3581
3581
  ownershipOf: l,
@@ -3594,14 +3594,14 @@ function wi(e, t, n, o, i) {
3594
3594
  ...h ? { selected: h } : {}
3595
3595
  };
3596
3596
  }
3597
- function Ep({ controller: e, environment: t, strings: n, startingLabels: o, startingDestination: i, otherSource: r }) {
3597
+ function Fp({ controller: e, environment: t, strings: n, startingLabels: o, startingDestination: i, otherSource: r }) {
3598
3598
  const [s, l] = W(0), [c, u] = W(""), [d, p] = W("");
3599
3599
  se(() => {
3600
3600
  if (d === "") return;
3601
3601
  const S = setTimeout(() => p(""), 4e3);
3602
3602
  return () => clearTimeout(S);
3603
3603
  }, [d]);
3604
- const { document: h, composition: m, context: g, selectedId: f, ownershipOf: v, selectedItemId: P, navigation: x, navigationModule: O, structure: T } = e, w = t.navigation?.slots ?? t.propertyEditors?.slots ?? Fp, b = U((S) => {
3604
+ const { document: h, composition: m, context: g, selectedId: f, ownershipOf: v, selectedItemId: P, navigation: x, navigationModule: O, structure: T } = e, w = t.navigation?.slots ?? t.propertyEditors?.slots ?? Mp, b = U((S) => {
3605
3605
  const E = nn(S.componentName);
3606
3606
  return E ? Vr({
3607
3607
  region: E,
@@ -3629,7 +3629,7 @@ function Ep({ controller: e, environment: t, strings: n, startingLabels: o, star
3629
3629
  n,
3630
3630
  r,
3631
3631
  P
3632
- ]), C = L(() => Dp({
3632
+ ]), C = L(() => Ep({
3633
3633
  roots: m.roots,
3634
3634
  catalog: g.catalog,
3635
3635
  selectedId: f,
@@ -3713,7 +3713,7 @@ function Ep({ controller: e, environment: t, strings: n, startingLabels: o, star
3713
3713
  }, [P, e])
3714
3714
  };
3715
3715
  }
3716
- var Fp = ["content"];
3716
+ var Mp = ["content"];
3717
3717
  function nn(e) {
3718
3718
  const t = e.slice(e.lastIndexOf(":") + 1).toLowerCase();
3719
3719
  return t === "topbar" ? Bo.Topbar : t === "sidebar" ? Bo.Sidebar : void 0;
@@ -3721,7 +3721,7 @@ function nn(e) {
3721
3721
  var Zr = (e) => ({
3722
3722
  content: e.mainArea,
3723
3723
  aside: e.sidePanel
3724
- }), Mp = [
3724
+ }), Ap = [
3725
3725
  Ne.Inherit,
3726
3726
  Ne.Extend,
3727
3727
  Ne.Override
@@ -3795,7 +3795,7 @@ var Zr = (e) => ({
3795
3795
  N(g.choice("icon", x)?.plan(I));
3796
3796
  }
3797
3797
  }, E = s.application.logo, _ = (k) => {
3798
- const I = xs(s, c, {
3798
+ const I = Os(s, c, {
3799
3799
  image: E?.image ?? "",
3800
3800
  title: E?.title ?? "",
3801
3801
  ...k
@@ -3862,7 +3862,7 @@ var Zr = (e) => ({
3862
3862
  className: "studio-editor-mode-cards",
3863
3863
  role: "radiogroup",
3864
3864
  "aria-label": o.modeTitle(P, v),
3865
- children: Mp.map((k) => /* @__PURE__ */ y("button", {
3865
+ children: Ap.map((k) => /* @__PURE__ */ y("button", {
3866
3866
  type: "button",
3867
3867
  role: "radio",
3868
3868
  "aria-checked": k === w,
@@ -3923,27 +3923,27 @@ var Zr = (e) => ({
3923
3923
  })
3924
3924
  ] })
3925
3925
  });
3926
- }, Ap = (e) => e.slots?.items ?? [];
3926
+ }, _p = (e) => e.slots?.items ?? [];
3927
3927
  function Si(e, t) {
3928
- const n = Ap(t).flatMap((r) => {
3928
+ const n = _p(t).flatMap((r) => {
3929
3929
  const { id: s, properties: l } = r, c = uo(s, l);
3930
3930
  return c ? [c] : [];
3931
3931
  });
3932
3932
  if (n.length === 0) return [];
3933
3933
  const o = new Map(n.map((r) => [r.id, r.title])), i = { buttons: n };
3934
- return Os(new Qt(e), i).map((r) => ({
3934
+ return Rs(new Qt(e), i).map((r) => ({
3935
3935
  code: r.code,
3936
- severity: r.severity === cs.Error ? "error" : "warning",
3936
+ severity: r.severity === ds.Error ? "error" : "warning",
3937
3937
  message: r.message.replace(`'${r.button}'`, `'${o.get(r.button) ?? r.button}'`),
3938
3938
  button: r.button
3939
3939
  }));
3940
3940
  }
3941
- var _p = (e) => String(e.componentName ?? "").endsWith("toolbarItem"), $p = (e) => /(^|:)toolbar$/.test(String(e.componentName ?? "")), Lp = ({ controller: e, strings: t, element: n }) => {
3942
- const o = (t.designMode ?? To).toolbar, { structure: i } = e, r = _p(n), s = $p(n), l = n.properties ?? {}, c = L(() => {
3941
+ var $p = (e) => String(e.componentName ?? "").endsWith("toolbarItem"), Lp = (e) => /(^|:)toolbar$/.test(String(e.componentName ?? "")), Bp = ({ controller: e, strings: t, element: n }) => {
3942
+ const o = (t.designMode ?? To).toolbar, { structure: i } = e, r = $p(n), s = Lp(n), l = n.properties ?? {}, c = L(() => {
3943
3943
  if (!r || i.modules.length === 0) return;
3944
3944
  const g = uo(n.id, l);
3945
3945
  if (!g) return;
3946
- const f = Ps(new Qt(i), g), v = f.slice ? jr(i).find((P) => P.id === f.slice) : void 0;
3946
+ const f = xs(new Qt(i), g), v = f.slice ? jr(i).find((P) => P.id === f.slice) : void 0;
3947
3947
  return {
3948
3948
  resolved: f,
3949
3949
  feature: v ? v.path[v.path.length - 1] : void 0
@@ -3997,7 +3997,7 @@ var _p = (e) => String(e.componentName ?? "").endsWith("toolbarItem"), $p = (e)
3997
3997
  children: [o.upgradeNote(p.slice), /* @__PURE__ */ a("button", {
3998
3998
  type: "button",
3999
3999
  "data-action": "upgrade",
4000
- onClick: () => e.applyAll(xp(n.id, p.slice), o.upgrade),
4000
+ onClick: () => e.applyAll(Op(n.id, p.slice), o.upgrade),
4001
4001
  children: o.upgrade
4002
4002
  })]
4003
4003
  }),
@@ -4012,7 +4012,7 @@ var _p = (e) => String(e.componentName ?? "").endsWith("toolbarItem"), $p = (e)
4012
4012
  label: t.properties.diagnostics
4013
4013
  })]
4014
4014
  });
4015
- }, Bp = (e, t) => e.find((n) => n.component === t), jp = /* @__PURE__ */ new Set([No]), Up = ({ controller: e, environment: t, strings: n, ownership: o, authoringTemplate: i }) => {
4015
+ }, jp = (e, t) => e.find((n) => n.component === t), Up = /* @__PURE__ */ new Set([No]), Wp = ({ controller: e, environment: t, strings: n, ownership: o, authoringTemplate: i }) => {
4016
4016
  const { inspection: r, selectedId: s, selection: l } = e, c = n.properties, u = L(() => bo(t.availableSources), [t.availableSources]), d = L(() => Gi(e.document, e.composition.roots, e.context, t.availableSources, t.queryCandidates), [
4017
4017
  e.document,
4018
4018
  e.composition.roots,
@@ -4043,12 +4043,12 @@ var _p = (e) => String(e.componentName ?? "").endsWith("toolbarItem"), $p = (e)
4043
4043
  strings: n,
4044
4044
  disabled: !1
4045
4045
  }),
4046
- /* @__PURE__ */ a(Wu, {
4046
+ /* @__PURE__ */ a(zu, {
4047
4047
  controller: e,
4048
4048
  strings: n,
4049
4049
  disabled: !1
4050
4050
  }),
4051
- /* @__PURE__ */ a(su, {
4051
+ /* @__PURE__ */ a(lu, {
4052
4052
  controller: e,
4053
4053
  slices: t.stateChangeSlices,
4054
4054
  strings: n,
@@ -4064,7 +4064,7 @@ var _p = (e) => String(e.componentName ?? "").endsWith("toolbarItem"), $p = (e)
4064
4064
  strings: n
4065
4065
  })
4066
4066
  });
4067
- const p = _a(e.composition.roots, s), h = zd(r.properties, p, l.properties), { runtime: m } = t, g = Bp(e.context.catalog.components, r.typeId), f = g ? m.packageDescriptorOf(g) : void 0, v = (k) => !!f && m.designTime.propertyEditor(f, k.descriptor).contribution !== void 0, P = t.propertyEditors?.registry ?? Xt, x = [...r.diagnostics, ...e.diagnostics], O = Hd(h, r.typeId, (k) => jp.has(k.descriptor.path) || v(k)), T = Vd(O), w = {
4067
+ const p = $a(e.composition.roots, s), h = qd(r.properties, p, l.properties), { runtime: m } = t, g = jp(e.context.catalog.components, r.typeId), f = g ? m.packageDescriptorOf(g) : void 0, v = (k) => !!f && m.designTime.propertyEditor(f, k.descriptor).contribution !== void 0, P = t.propertyEditors?.registry ?? Xt, x = [...r.diagnostics, ...e.diagnostics], O = Vd(h, r.typeId, (k) => Up.has(k.descriptor.path) || v(k)), T = Jd(O), w = {
4068
4068
  controller: e,
4069
4069
  environment: t,
4070
4070
  strings: n,
@@ -4097,16 +4097,16 @@ var _p = (e) => String(e.componentName ?? "").endsWith("toolbarItem"), $p = (e)
4097
4097
  environment: t,
4098
4098
  strings: n
4099
4099
  }),
4100
- l && /* @__PURE__ */ a(Lp, {
4100
+ l && /* @__PURE__ */ a(Bp, {
4101
4101
  controller: e,
4102
4102
  strings: n,
4103
4103
  element: l
4104
4104
  }),
4105
4105
  /* @__PURE__ */ a(Vi, {
4106
- diagnostics: Va(x),
4106
+ diagnostics: Ja(x),
4107
4107
  label: c.diagnostics
4108
4108
  }),
4109
- /* @__PURE__ */ a(Gu, {
4109
+ /* @__PURE__ */ a(Hu, {
4110
4110
  inspection: r,
4111
4111
  controller: e,
4112
4112
  strings: n,
@@ -4120,14 +4120,14 @@ var _p = (e) => String(e.componentName ?? "").endsWith("toolbarItem"), $p = (e)
4120
4120
  authoringTemplate: i
4121
4121
  }),
4122
4122
  g && Ue(l) && /* @__PURE__ */ y(ie, { children: [
4123
- /* @__PURE__ */ a(ou, {
4123
+ /* @__PURE__ */ a(iu, {
4124
4124
  component: l,
4125
4125
  descriptor: g,
4126
4126
  controller: e,
4127
4127
  environment: t,
4128
4128
  strings: n
4129
4129
  }),
4130
- /* @__PURE__ */ a(tu, {
4130
+ /* @__PURE__ */ a(nu, {
4131
4131
  component: l,
4132
4132
  descriptor: g,
4133
4133
  controller: e,
@@ -4135,7 +4135,7 @@ var _p = (e) => String(e.componentName ?? "").endsWith("toolbarItem"), $p = (e)
4135
4135
  strings: n,
4136
4136
  disabled: o !== void 0 && o !== "local"
4137
4137
  }),
4138
- /* @__PURE__ */ a(nu, {
4138
+ /* @__PURE__ */ a(ou, {
4139
4139
  component: l,
4140
4140
  descriptor: g,
4141
4141
  properties: r.properties.filter((k) => !Ar(r.typeId, k.descriptor.path)),
@@ -4158,22 +4158,22 @@ var _p = (e) => String(e.componentName ?? "").endsWith("toolbarItem"), $p = (e)
4158
4158
  }), k.properties.map((I) => /* @__PURE__ */ a(ko, {
4159
4159
  registry: P,
4160
4160
  property: I,
4161
- context: op(b, w, I),
4161
+ context: ip(b, w, I),
4162
4162
  componentId: s,
4163
4163
  onChange: e.setProperty,
4164
4164
  diagnostics: x
4165
4165
  }, `${s}:${I.descriptor.path}`))]
4166
4166
  }, k.name)),
4167
- C && /* @__PURE__ */ a(Zd, {
4167
+ C && /* @__PURE__ */ a(Xd, {
4168
4168
  action: qr(_, t.stateChangeSlices.find((k) => k.id === _?.command)?.name ?? ""),
4169
4169
  slices: t.stateChangeSlices,
4170
4170
  sources: _r(Object.keys(t.availableSources), d.componentOutputs, s),
4171
4171
  strings: n,
4172
4172
  disabled: o !== void 0 && o !== "local",
4173
4173
  suggestSource: (k) => k === "id" || k.endsWith("Id") ? "row.id" : void 0,
4174
- onChange: (k) => k && e.applyAll(lp(s, k), n.properties.action.label)
4174
+ onChange: (k) => k && e.applyAll(cp(s, k), n.properties.action.label)
4175
4175
  }),
4176
- N && /* @__PURE__ */ a(Pu, {
4176
+ N && /* @__PURE__ */ a(xu, {
4177
4177
  elementId: s,
4178
4178
  command: typeof _?.command == "string" ? _.command : void 0,
4179
4179
  slices: t.stateChangeSlices,
@@ -4181,21 +4181,21 @@ var _p = (e) => String(e.componentName ?? "").endsWith("toolbarItem"), $p = (e)
4181
4181
  strings: n,
4182
4182
  disabled: E,
4183
4183
  onCommandChange: (k) => {
4184
- e.applyAll([au(s, k)], n.properties.commandForm.label).applied && k && !S.some((I) => I.forCommand === k.name) && e.setScreenForms([...S, Un(k)], n.properties.commandForm.createForm(k.name));
4184
+ e.applyAll([su(s, k)], n.properties.commandForm.label).applied && k && !S.some((I) => I.forCommand === k.name) && e.setScreenForms([...S, Un(k)], n.properties.commandForm.createForm(k.name));
4185
4185
  },
4186
4186
  onFormChange: (k) => e.setScreenForms(S.map((I) => I.forCommand === k.forCommand ? k : I), n.properties.forms.label),
4187
4187
  onFormCreate: (k) => e.setScreenForms([...S, Un(k)], n.properties.commandForm.createForm(k.name))
4188
4188
  }),
4189
- F && /* @__PURE__ */ a(mp, {
4189
+ F && /* @__PURE__ */ a(hp, {
4190
4190
  behaviors: l.behaviors,
4191
- targets: Ja(t, e.document),
4191
+ targets: Qa(t, e.document),
4192
4192
  destinations: t.destinations,
4193
4193
  slices: t.stateChangeSlices,
4194
4194
  strings: n.properties.toolbarButton,
4195
4195
  disabled: E,
4196
4196
  onChange: (k) => e.setElementBehaviors(s, k, n.properties.toolbarButton.label)
4197
4197
  }, s),
4198
- /* @__PURE__ */ a(Yu, {
4198
+ /* @__PURE__ */ a(Zu, {
4199
4199
  inspection: r,
4200
4200
  componentId: s,
4201
4201
  controller: e,
@@ -4222,7 +4222,7 @@ var _p = (e) => String(e.componentName ?? "").endsWith("toolbarItem"), $p = (e)
4222
4222
  onClick: r,
4223
4223
  children: "×"
4224
4224
  })]
4225
- }), /* @__PURE__ */ a(Rs, {
4225
+ }), /* @__PURE__ */ a(Ds, {
4226
4226
  className: "studio-editor-inspector__tabs",
4227
4227
  "aria-label": e.inspectorTitle,
4228
4228
  value: s,
@@ -4230,7 +4230,7 @@ var _p = (e) => String(e.componentName ?? "").endsWith("toolbarItem"), $p = (e)
4230
4230
  tabs: [{
4231
4231
  id: yn.Properties,
4232
4232
  label: e.propertiesTab,
4233
- content: /* @__PURE__ */ a(Up, {
4233
+ content: /* @__PURE__ */ a(Wp, {
4234
4234
  controller: t,
4235
4235
  environment: n,
4236
4236
  strings: e,
@@ -4246,7 +4246,7 @@ var _p = (e) => String(e.componentName ?? "").endsWith("toolbarItem"), $p = (e)
4246
4246
  });
4247
4247
  }, Ve = /* @__PURE__ */ (function(e) {
4248
4248
  return e.Panel = "Panel", e.StackPanel = "StackPanel", e.WrapPanel = "WrapPanel", e.Grid = "Grid", e.Canvas = "Canvas", e;
4249
- })({}), Wp = [
4249
+ })({}), zp = [
4250
4250
  {
4251
4251
  item: B.Stack,
4252
4252
  type: "Stack",
@@ -4286,13 +4286,13 @@ var _p = (e) => String(e.componentName ?? "").endsWith("toolbarItem"), $p = (e)
4286
4286
  panel: Ve.Canvas,
4287
4287
  arrangement: H.Freeform
4288
4288
  }
4289
- ], zp = /* @__PURE__ */ new Set([
4289
+ ], qp = /* @__PURE__ */ new Set([
4290
4290
  "column",
4291
4291
  "screenShell",
4292
4292
  "shell"
4293
4293
  ]);
4294
- var qp = (e) => e.slice(e.lastIndexOf(":") + 1), ea = (e) => e.replace(/([A-Z])/g, " $1").replace(/^./, (t) => t.toUpperCase()).trim(), Kp = (e) => e.split(".").map((t) => ea(t)).join(" "), Gp = Xa.Layout;
4295
- function Hp(e, t, n = {}) {
4294
+ var Kp = (e) => e.slice(e.lastIndexOf(":") + 1), ea = (e) => e.replace(/([A-Z])/g, " $1").replace(/^./, (t) => t.toUpperCase()).trim(), Gp = (e) => e.split(".").map((t) => ea(t)).join(" "), Hp = es.Layout;
4295
+ function Vp(e, t, n = {}) {
4296
4296
  const o = t.map((r) => ({
4297
4297
  key: `layout:${r.item}`,
4298
4298
  label: r.label,
@@ -4300,15 +4300,15 @@ function Hp(e, t, n = {}) {
4300
4300
  component: r.item,
4301
4301
  displayName: r.label
4302
4302
  }),
4303
- category: Gp,
4303
+ category: Hp,
4304
4304
  keywords: [],
4305
4305
  payload: {
4306
4306
  kind: "layout",
4307
4307
  item: r.item
4308
4308
  }
4309
4309
  })), i = e.flatMap((r) => {
4310
- const s = new Map((r.descriptors ?? []).map((l) => [qp(l.component), l]));
4311
- return r.components.filter((l) => !zp.has(l)).map((l) => {
4310
+ const s = new Map((r.descriptors ?? []).map((l) => [Kp(l.component), l]));
4311
+ return r.components.filter((l) => !qp.has(l)).map((l) => {
4312
4312
  const c = s.get(l), u = c?.displayName ?? ea(l);
4313
4313
  return {
4314
4314
  key: `${r.package}:${l}`,
@@ -4321,7 +4321,7 @@ function Hp(e, t, n = {}) {
4321
4321
  category: c?.category?.trim() || "Other",
4322
4322
  keywords: c?.keywords ?? [],
4323
4323
  package: r.package,
4324
- packageTitle: n[r.package] ?? Kp(r.package),
4324
+ packageTitle: n[r.package] ?? Gp(r.package),
4325
4325
  payload: {
4326
4326
  kind: "component",
4327
4327
  componentName: l,
@@ -4333,16 +4333,16 @@ function Hp(e, t, n = {}) {
4333
4333
  return [...o, ...i];
4334
4334
  }
4335
4335
  var ta = "frequent";
4336
- function Vp({ entries: e, usage: t, query: n, groups: o, frequentTitle: i }) {
4336
+ function Jp({ entries: e, usage: t, query: n, groups: o, frequentTitle: i }) {
4337
4337
  const r = n.trim().length > 0, s = (h) => ({
4338
4338
  entry: h,
4339
- match: Ss({
4339
+ match: Cs({
4340
4340
  component: h.key,
4341
4341
  displayName: h.label,
4342
4342
  category: h.category,
4343
4343
  keywords: [...h.keywords]
4344
4344
  }, n)
4345
- }), l = (h) => h.map(s).filter((m) => m.match.matched), c = new Map(e.map((h) => [h.key, h])), u = Ns(t).flatMap((h) => c.get(h) ?? []), d = [], p = l(u);
4345
+ }), l = (h) => h.map(s).filter((m) => m.match.matched), c = new Map(e.map((h) => [h.key, h])), u = Ts(t).flatMap((h) => c.get(h) ?? []), d = [], p = l(u);
4346
4346
  return p.length > 0 && d.push({
4347
4347
  id: ta,
4348
4348
  title: i,
@@ -4351,7 +4351,7 @@ function Vp({ entries: e, usage: t, query: n, groups: o, frequentTitle: i }) {
4351
4351
  expanded: r || (o.frequent ?? !0),
4352
4352
  rows: p
4353
4353
  }), [...new Set(e.map((h) => h.category))].sort((h, m) => {
4354
- const g = (f) => ss.indexOf(f);
4354
+ const g = (f) => ls.indexOf(f);
4355
4355
  return (g(h) < 0 ? 1e3 : g(h)) - (g(m) < 0 ? 1e3 : g(m)) || h.localeCompare(m);
4356
4356
  }).forEach((h, m) => {
4357
4357
  const g = l(e.filter((v) => v.category === h));
@@ -4367,11 +4367,11 @@ function Vp({ entries: e, usage: t, query: n, groups: o, frequentTitle: i }) {
4367
4367
  });
4368
4368
  }), d;
4369
4369
  }
4370
- var Jp = (e) => e.filter((t) => t.expanded).flatMap((t) => t.rows.map((n) => ({
4370
+ var Qp = (e) => e.filter((t) => t.expanded).flatMap((t) => t.rows.map((n) => ({
4371
4371
  group: t,
4372
4372
  row: n
4373
4373
  })));
4374
- function Qp(e, t) {
4374
+ function Yp(e, t) {
4375
4375
  const n = [];
4376
4376
  let o = 0;
4377
4377
  for (const [i, r] of [...t].sort((s, l) => s[0] - l[0]))
@@ -4393,7 +4393,7 @@ var Ci = "cratis.studio.componentUsage.v1", Ni = "cratis.studio.componentGroups.
4393
4393
  } catch {
4394
4394
  return;
4395
4395
  }
4396
- }, Yp = () => Ce(() => typeof window < "u" ? window.localStorage : void 0), Ti = (e) => {
4396
+ }, Zp = () => Ce(() => typeof window < "u" ? window.localStorage : void 0), Ti = (e) => {
4397
4397
  const t = Ce(() => JSON.parse(e ?? "null"));
4398
4398
  if (t === null || typeof t != "object" || Array.isArray(t)) return {};
4399
4399
  const n = {};
@@ -4402,11 +4402,11 @@ var Ci = "cratis.studio.componentUsage.v1", Ni = "cratis.studio.componentGroups.
4402
4402
  last: typeof i.last == "number" && Number.isFinite(i.last) ? i.last : 0
4403
4403
  });
4404
4404
  return n;
4405
- }, Zp = (e) => {
4405
+ }, Xp = (e) => {
4406
4406
  const t = Ce(() => JSON.parse(e ?? "null"));
4407
4407
  return t === null || typeof t != "object" || Array.isArray(t) ? {} : Object.fromEntries(Object.entries(t).filter((n) => typeof n[1] == "boolean"));
4408
4408
  };
4409
- function Xp(e = Yp(), t) {
4409
+ function em(e = Zp(), t) {
4410
4410
  const n = t ? `${t}:${Ci}` : Ci, o = t ? `${t}:${Ni}` : Ni;
4411
4411
  let i, r;
4412
4412
  return {
@@ -4423,7 +4423,7 @@ function Xp(e = Yp(), t) {
4423
4423
  const u = JSON.stringify(i);
4424
4424
  return e && Ce(() => e.setItem(n, u)), i;
4425
4425
  },
4426
- readGroups: () => r ??= Zp(e ? Ce(() => e.getItem(o)) : void 0),
4426
+ readGroups: () => r ??= Xp(e ? Ce(() => e.getItem(o)) : void 0),
4427
4427
  writeGroups: (s) => {
4428
4428
  r = { ...s };
4429
4429
  const l = JSON.stringify(r);
@@ -4439,12 +4439,12 @@ function oa(e, t, n) {
4439
4439
  const o = document.createElement("div");
4440
4440
  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);
4441
4441
  }
4442
- var em = (e, t, n) => {
4442
+ var tm = (e, t, n) => {
4443
4443
  e.dataTransfer.setData(Ro, JSON.stringify(t)), e.dataTransfer.effectAllowed = "copyMove", n && oa(e, n, e.currentTarget instanceof Element ? e.currentTarget.querySelector("svg") : null);
4444
- }, tm = (e, t, n) => {
4444
+ }, nm = (e, t, n) => {
4445
4445
  e.dataTransfer.setData(na, t), e.dataTransfer.effectAllowed = "move", oa(e, n);
4446
- }, nm = (e) => e.dataTransfer.getData("application/x-studio-element") || void 0, Hn = (e) => e.dataTransfer.types.includes(na), Dt = (e) => im(e) || Hn(e);
4447
- function om(e) {
4446
+ }, om = (e) => e.dataTransfer.getData("application/x-studio-element") || void 0, Hn = (e) => e.dataTransfer.types.includes(na), Dt = (e) => rm(e) || Hn(e);
4447
+ function im(e) {
4448
4448
  try {
4449
4449
  const t = JSON.parse(e.dataTransfer.getData(Ro));
4450
4450
  return Oo(t) ? t : void 0;
@@ -4452,7 +4452,7 @@ function om(e) {
4452
4452
  return;
4453
4453
  }
4454
4454
  }
4455
- var im = (e) => e.dataTransfer.types.includes(Ro), rm = {
4455
+ var rm = (e) => e.dataTransfer.types.includes(Ro), am = {
4456
4456
  heading: "Components",
4457
4457
  filterPlaceholder: "Filter components...",
4458
4458
  filterLabel: "Filter components",
@@ -4461,8 +4461,8 @@ var im = (e) => e.dataTransfer.types.includes(Ro), rm = {
4461
4461
  nothingMatches: "No component matches.",
4462
4462
  viaKeyword: (e, t, n) => `...${e} matches "${t}" via keyword "${n}"`,
4463
4463
  addLabel: (e) => `Add ${e}`
4464
- }, am = "★", sm = ({ entries: e, memory: t, strings: n = rm, onAdd: o, usageVersion: i = 0 }) => {
4465
- const [r, s] = W(""), [l, c] = W(() => t.readGroups()), u = J(null), d = J(null), p = Za(), h = L(() => ({ ...t.readUsage() }), [t, i]), m = L(() => Vp({
4464
+ }, sm = "★", lm = ({ entries: e, memory: t, strings: n = am, onAdd: o, usageVersion: i = 0 }) => {
4465
+ const [r, s] = W(""), [l, c] = W(() => t.readGroups()), u = J(null), d = J(null), p = Xa(), h = L(() => ({ ...t.readUsage() }), [t, i]), m = L(() => Jp({
4466
4466
  entries: e,
4467
4467
  usage: h,
4468
4468
  query: r,
@@ -4498,10 +4498,10 @@ var im = (e) => e.dataTransfer.types.includes(Ro), rm = {
4498
4498
  N.indexOf(C) <= 0 ? u.current?.focus() : P(C, -1);
4499
4499
  } else b.key === "Escape" && F && r !== "" && (b.stopPropagation(), s(""));
4500
4500
  }, O = (b, C) => {
4501
- em(C, b.payload, b.label), C.currentTarget.closest('[data-cratis-part="toolbar-folder-panel"]')?.setAttribute("data-dragging", "");
4501
+ tm(C, b.payload, b.label), C.currentTarget.closest('[data-cratis-part="toolbar-folder-panel"]')?.setAttribute("data-dragging", "");
4502
4502
  }, T = (b) => {
4503
4503
  b.currentTarget.closest('[data-cratis-part="toolbar-folder-panel"]')?.removeAttribute("data-dragging");
4504
- }, w = Jp(m);
4504
+ }, w = Qp(m);
4505
4505
  return /* @__PURE__ */ y("div", {
4506
4506
  ref: d,
4507
4507
  className: "studio-component-picker",
@@ -4545,7 +4545,7 @@ var im = (e) => e.dataTransfer.types.includes(Ro), rm = {
4545
4545
  "aria-hidden": "true",
4546
4546
  children: b.frequent ? /* @__PURE__ */ a("span", {
4547
4547
  className: "studio-component-picker__star",
4548
- children: am
4548
+ children: sm
4549
4549
  }) : b.expanded ? "▼" : "▶"
4550
4550
  }),
4551
4551
  /* @__PURE__ */ a("span", {
@@ -4581,7 +4581,7 @@ var im = (e) => e.dataTransfer.types.includes(Ro), rm = {
4581
4581
  className: "studio-component-picker__label",
4582
4582
  children: [/* @__PURE__ */ a("span", {
4583
4583
  className: "studio-component-picker__name",
4584
- children: Qp(C.label, F.ranges).map((N, S) => N.marked ? /* @__PURE__ */ a("mark", { children: N.text }, S) : /* @__PURE__ */ a("span", { children: N.text }, S))
4584
+ children: Yp(C.label, F.ranges).map((N, S) => N.marked ? /* @__PURE__ */ a("mark", { children: N.text }, S) : /* @__PURE__ */ a("span", { children: N.text }, S))
4585
4585
  }), F.via === "keyword" && F.keyword && /* @__PURE__ */ a("span", {
4586
4586
  className: "studio-component-picker__hint",
4587
4587
  children: n.viaKeyword(C.badge, r.trim(), F.keyword)
@@ -4607,14 +4607,14 @@ var im = (e) => e.dataTransfer.types.includes(Ro), rm = {
4607
4607
  })
4608
4608
  ]
4609
4609
  });
4610
- }, lm = ({ entries: e, memory: t, icon: n, title: o, closeLabel: i, strings: r, usageVersion: s, onAdd: l }) => /* @__PURE__ */ a(Ks, {
4610
+ }, cm = ({ entries: e, memory: t, icon: n, title: o, closeLabel: i, strings: r, usageVersion: s, onAdd: l }) => /* @__PURE__ */ a(Gs, {
4611
4611
  className: "studio-palette-folder studio-palette-folder--picker",
4612
4612
  icon: n,
4613
4613
  title: o,
4614
4614
  heading: o,
4615
4615
  closeLabel: i,
4616
4616
  presentation: "drawer",
4617
- children: /* @__PURE__ */ a(sm, {
4617
+ children: /* @__PURE__ */ a(lm, {
4618
4618
  entries: e,
4619
4619
  memory: t,
4620
4620
  usageVersion: s,
@@ -4623,7 +4623,7 @@ var im = (e) => e.dataTransfer.types.includes(Ro), rm = {
4623
4623
  })
4624
4624
  });
4625
4625
  function ia({ strings: e, layoutLabels: t, icons: n, paletteSources: o, onAdd: i, memory: r }) {
4626
- const s = L(() => r ?? Xp(), [r]), [l, c] = W(0), u = L(() => Hp(o, Wp.map((p) => ({
4626
+ const s = L(() => r ?? em(), [r]), [l, c] = W(0), u = L(() => Vp(o, zp.map((p) => ({
4627
4627
  item: p.item,
4628
4628
  label: t[p.item]
4629
4629
  })), e.packageTitles), [
@@ -4634,7 +4634,7 @@ function ia({ strings: e, layoutLabels: t, icons: n, paletteSources: o, onAdd: i
4634
4634
  s.recordAdded(p), c((h) => h + 1);
4635
4635
  }, [s]);
4636
4636
  return {
4637
- palette: /* @__PURE__ */ a(lm, {
4637
+ palette: /* @__PURE__ */ a(cm, {
4638
4638
  entries: u,
4639
4639
  memory: s,
4640
4640
  usageVersion: l,
@@ -4654,18 +4654,18 @@ function Ut(e) {
4654
4654
  return e ? so(e) ? He.grid : lo(e) ? e.orientation === rt.Horizontal ? He.flexRow : He.flexColumn : at(e) ? He.absolute : He.flexColumn : He.absolute;
4655
4655
  }
4656
4656
  var Ii = {
4657
- unitType: ns.Star,
4657
+ unitType: os.Star,
4658
4658
  value: 1
4659
4659
  };
4660
4660
  function Vt(e, t, n, o = [], i = {}) {
4661
- const r = cm(e, i);
4661
+ const r = dm(e, i);
4662
4662
  return {
4663
4663
  ...Jr(t, n),
4664
4664
  children: o,
4665
4665
  ...r
4666
4666
  };
4667
4667
  }
4668
- function cm(e, t) {
4668
+ function dm(e, t) {
4669
4669
  switch (e) {
4670
4670
  case B.Stack:
4671
4671
  return {
@@ -4698,7 +4698,7 @@ function cm(e, t) {
4698
4698
  return {};
4699
4699
  }
4700
4700
  }
4701
- function dm(e) {
4701
+ function um(e) {
4702
4702
  const t = e.indexOf(":");
4703
4703
  return t > 0 ? {
4704
4704
  package: e.slice(0, t),
@@ -4708,8 +4708,8 @@ function dm(e) {
4708
4708
  name: e
4709
4709
  };
4710
4710
  }
4711
- function um(e, t, n) {
4712
- const { package: o, name: i } = dm(e);
4711
+ function pm(e, t, n) {
4712
+ const { package: o, name: i } = um(e);
4713
4713
  if (o !== void 0) return or(t).includes(o) && n[o]?.includes(i) ? {
4714
4714
  package: o,
4715
4715
  name: i
@@ -4720,7 +4720,7 @@ function um(e, t, n) {
4720
4720
  name: r.name
4721
4721
  } : void 0;
4722
4722
  }
4723
- function pm(e, t, n) {
4723
+ function mm(e, t, n) {
4724
4724
  const o = new Set(or(t)), i = (r) => {
4725
4725
  if (Array.isArray(r)) {
4726
4726
  const u = r.map(i);
@@ -4748,7 +4748,7 @@ function ra(e, t) {
4748
4748
  const o = zr(n, e.authoringTemplate);
4749
4749
  return o.readable ? {
4750
4750
  opened: !0,
4751
- subject: { document: t ? pm(o.document, t.profile, t.packages) : o.document }
4751
+ subject: { document: t ? mm(o.document, t.profile, t.packages) : o.document }
4752
4752
  } : {
4753
4753
  opened: !1,
4754
4754
  problem: o.problem
@@ -4756,17 +4756,17 @@ function ra(e, t) {
4756
4756
  }
4757
4757
  return {
4758
4758
  opened: !0,
4759
- subject: { document: mm(e) }
4759
+ subject: { document: hm(e) }
4760
4760
  };
4761
4761
  }
4762
- function mm(e) {
4763
- return e.authoringTemplate !== void 0 ? Nd(e.authoringTemplate, Vt(B.Stack, kd, "Template")) : Cd(Vt(B.Stack, Sd, "Screen"), e.screenTemplate);
4762
+ function hm(e) {
4763
+ return e.authoringTemplate !== void 0 ? Td(e.authoringTemplate, Vt(B.Stack, Sd, "Template")) : Nd(Vt(B.Stack, Cd, "Screen"), e.screenTemplate);
4764
4764
  }
4765
4765
  var aa = ({ placement: e, children: t }) => /* @__PURE__ */ a("div", {
4766
4766
  className: "studio-screen-editor-palette-host",
4767
4767
  "data-placement": e,
4768
4768
  "data-cratis-part": "screen-editor-palette",
4769
- children: /* @__PURE__ */ a(qs, { children: t })
4769
+ children: /* @__PURE__ */ a(Ks, { children: t })
4770
4770
  }), sa = ({ strings: e, onClose: t, children: n }) => /* @__PURE__ */ a(ze, {
4771
4771
  fallback: /* @__PURE__ */ y("div", {
4772
4772
  className: "studio-screen-editor-unreadable",
@@ -4814,8 +4814,8 @@ var aa = ({ placement: e, children: t }) => /* @__PURE__ */ a("div", {
4814
4814
  } catch {
4815
4815
  return;
4816
4816
  }
4817
- }, hm = () => Wt(() => typeof window < "u" ? window.localStorage : void 0);
4818
- function fm(e = hm()) {
4817
+ }, fm = () => Wt(() => typeof window < "u" ? window.localStorage : void 0);
4818
+ function gm(e = fm()) {
4819
4819
  return {
4820
4820
  read: (t) => e ? xi(Wt(() => e.getItem(`${Vn}:${t}`)) ?? null) : void 0,
4821
4821
  write: (t, n) => {
@@ -4858,38 +4858,38 @@ function ca(e) {
4858
4858
  var Oi = {
4859
4859
  width: 900,
4860
4860
  height: 640
4861
- }, gm = (e) => !!e && Number.isFinite(e.width) && Number.isFinite(e.height) && e.width > 0 && e.height > 0;
4861
+ }, vm = (e) => !!e && Number.isFinite(e.width) && Number.isFinite(e.height) && e.width > 0 && e.height > 0;
4862
4862
  function da(e) {
4863
4863
  return Eo(on[We.Desktop], e);
4864
4864
  }
4865
- function vm(e) {
4865
+ function bm(e) {
4866
4866
  return !!e && e.width === Oi.width && e.height === Oi.height;
4867
4867
  }
4868
- function bm(e, t) {
4869
- const n = vm(e.saved) ? void 0 : e.saved;
4870
- return ym([
4868
+ function ym(e, t) {
4869
+ const n = bm(e.saved) ? void 0 : e.saved;
4870
+ return wm([
4871
4871
  e.remembered,
4872
4872
  n,
4873
4873
  e.lastUsed
4874
- ].find(gm) ?? da(t), t);
4874
+ ].find(vm) ?? da(t), t);
4875
4875
  }
4876
- function ym(e, t) {
4876
+ function wm(e, t) {
4877
4877
  return {
4878
4878
  width: Math.round(Math.min(e.width, t.width)),
4879
4879
  height: Math.round(Math.min(e.height, t.height))
4880
4880
  };
4881
4881
  }
4882
4882
  var ua = ({ environment: e, children: t }) => {
4883
- const n = /* @__PURE__ */ a(Gs, {
4883
+ const n = /* @__PURE__ */ a(Hs, {
4884
4884
  handler: e.fileUpload?.handler,
4885
4885
  allowedOrigins: e.fileUpload?.allowedOrigins,
4886
4886
  children: t
4887
4887
  });
4888
- return e.richText ? /* @__PURE__ */ a(Hs, {
4888
+ return e.richText ? /* @__PURE__ */ a(Vs, {
4889
4889
  loader: e.richText,
4890
4890
  children: n
4891
4891
  }) : n;
4892
- }, wm = ({ controls: e }) => /* @__PURE__ */ a("div", {
4892
+ }, km = ({ controls: e }) => /* @__PURE__ */ a("div", {
4893
4893
  className: "studio-window-title-bar",
4894
4894
  role: "toolbar",
4895
4895
  children: /* @__PURE__ */ a("div", {
@@ -4897,18 +4897,18 @@ var ua = ({ environment: e, children: t }) => {
4897
4897
  children: e
4898
4898
  })
4899
4899
  });
4900
- function km(e, t) {
4900
+ function Sm(e, t) {
4901
4901
  return Object.values(We).find((n) => {
4902
4902
  const o = Eo(on[n], t);
4903
4903
  return o.width === e.width && o.height === e.height;
4904
4904
  });
4905
4905
  }
4906
- function Sm(e) {
4906
+ function Cm(e) {
4907
4907
  const t = ca(e);
4908
- return fs(t.width, t.height);
4908
+ return gs(t.width, t.height);
4909
4909
  }
4910
- var Cm = ({ windowSize: e, available: t, strings: n, onResize: o }) => {
4911
- const i = km(e, t), r = ca(e), s = Sm(e), l = (c, u, d) => /* @__PURE__ */ a(tt, {
4910
+ var Nm = ({ windowSize: e, available: t, strings: n, onResize: o }) => {
4911
+ const i = Sm(e, t), r = ca(e), s = Cm(e), l = (c, u, d) => /* @__PURE__ */ a(tt, {
4912
4912
  icon: u,
4913
4913
  "aria-label": d,
4914
4914
  "aria-pressed": i === c,
@@ -4923,7 +4923,7 @@ var Cm = ({ windowSize: e, available: t, strings: n, onResize: o }) => {
4923
4923
  "aria-label": n.sizeClass(s.width, s.height),
4924
4924
  children: [
4925
4925
  l(We.Desktop, /* @__PURE__ */ a(Dn, { "aria-hidden": "true" }), n.desktopPreview),
4926
- l(We.Mobile, /* @__PURE__ */ a(kl, { "aria-hidden": "true" }), n.mobilePreview),
4926
+ l(We.Mobile, /* @__PURE__ */ a(Sl, { "aria-hidden": "true" }), n.mobilePreview),
4927
4927
  /* @__PURE__ */ y("span", {
4928
4928
  className: "studio-editor-viewport-controls__size",
4929
4929
  role: "status",
@@ -4973,7 +4973,7 @@ var Jn = ({ elementId: e, tone: t, text: n }) => /* @__PURE__ */ a("div", {
4973
4973
  if (typeof o == "string" && o.length > 0) return o;
4974
4974
  }
4975
4975
  };
4976
- function Nm({ kind: e, tag: t, element: n, slots: o, message: i }) {
4976
+ function Tm({ kind: e, tag: t, element: n, slots: o, message: i }) {
4977
4977
  const r = o.content ?? [], s = Je(n, "header", "title", "summary") ?? n.name ?? n.componentName, l = Je(n, "message", "detail", "text", "label"), c = () => {
4978
4978
  switch (e) {
4979
4979
  case ae.Toast:
@@ -5051,8 +5051,8 @@ function Nm({ kind: e, tag: t, element: n, slots: o, message: i }) {
5051
5051
  }), c()]
5052
5052
  });
5053
5053
  }
5054
- var ma = Qa(void 0), Tm = () => {
5055
- const e = Ya(ma);
5054
+ var ma = Ya(void 0), Im = () => {
5055
+ const e = Za(ma);
5056
5056
  return e ? /* @__PURE__ */ y("span", {
5057
5057
  className: "studio-design-logo",
5058
5058
  "data-locked": e.locked ? "true" : void 0,
@@ -5068,7 +5068,7 @@ var ma = Qa(void 0), Tm = () => {
5068
5068
  }, Sn = (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>`)}`, Ri = [{
5069
5069
  label: "Documents",
5070
5070
  children: ["Work", "Home"]
5071
- }], Im = [
5071
+ }], Pm = [
5072
5072
  "New",
5073
5073
  "Open",
5074
5074
  { separator: !0 },
@@ -5322,7 +5322,7 @@ var ma = Qa(void 0), Tm = () => {
5322
5322
  text: "Tooltip",
5323
5323
  label: "Hover me"
5324
5324
  },
5325
- menu: { items: Im },
5325
+ menu: { items: Pm },
5326
5326
  menubar: { items: [{
5327
5327
  label: "File",
5328
5328
  items: ["New", "Open"]
@@ -5563,15 +5563,15 @@ function fa(e, t, n) {
5563
5563
  for (const [s, l] of Object.entries(i)) l !== void 0 && (r[s] = l);
5564
5564
  return r;
5565
5565
  }
5566
- function Pm(e, t, n) {
5566
+ function xm(e, t, n) {
5567
5567
  const o = Ao(e, t);
5568
5568
  return o ? Object.keys(o).filter((i) => n?.[i] === void 0) : [];
5569
5569
  }
5570
- var xm = (e) => {
5570
+ var Om = (e) => {
5571
5571
  const { width: t, height: n } = e.getBoundingClientRect();
5572
5572
  return t > 0 && n > 0;
5573
- }, Qn = (e) => Array.from(e.children).filter((t) => !t.hasAttribute("data-studio-placeholder-for")).some((t) => xm(t) || getComputedStyle(t).display === "contents" && Qn(t)), Om = 150;
5574
- function Rm(e, t) {
5573
+ }, Qn = (e) => Array.from(e.children).filter((t) => !t.hasAttribute("data-studio-placeholder-for")).some((t) => Om(t) || getComputedStyle(t).display === "contents" && Qn(t)), Rm = 150;
5574
+ function Dm(e, t) {
5575
5575
  const [n, o] = W(!0), i = J(!0);
5576
5576
  return ve(() => {
5577
5577
  const r = e.current;
@@ -5581,7 +5581,7 @@ function Rm(e, t) {
5581
5581
  };
5582
5582
  let l;
5583
5583
  const c = () => {
5584
- clearTimeout(l), Qn(r) ? s(!0) : l = setTimeout(() => s(Qn(r)), Om);
5584
+ clearTimeout(l), Qn(r) ? s(!0) : l = setTimeout(() => s(Qn(r)), Rm);
5585
5585
  }, u = typeof ResizeObserver > "u" ? void 0 : new ResizeObserver(c), d = () => {
5586
5586
  u?.disconnect(), Array.from(r.children).forEach((h) => u?.observe(h));
5587
5587
  }, p = new MutationObserver(() => {
@@ -5592,16 +5592,16 @@ function Rm(e, t) {
5592
5592
  };
5593
5593
  }, [e, t]), n;
5594
5594
  }
5595
- var Dm = ({ element: e }) => e.name || e.componentName, Em = (e, t) => {
5595
+ var Em = ({ element: e }) => e.name || e.componentName, Fm = (e, t) => {
5596
5596
  const n = J(e), o = J(0);
5597
5597
  return n.current !== e && (n.current = e, t && (o.current += 1)), o.current;
5598
5598
  };
5599
- function Fm(e, t, n, o) {
5599
+ function Mm(e, t, n, o) {
5600
5600
  const i = (r) => {
5601
5601
  const s = J(null), l = L(() => ({
5602
5602
  ...r.element,
5603
5603
  properties: fa(e, r.element.componentName, r.element.properties)
5604
- }), [r.element]), c = L(() => Pm(e, r.element.componentName, r.element.properties), [r.element]), u = ha.has(pt(r.element.componentName)), d = e.startsWith(`${As}:`), p = d ? void 0 : pa[pt(r.element.componentName)], h = d && pt(r.element.componentName) === "topbar", [m, g] = W(), f = Rm(s, r.element), v = Dm(r), P = Em(r.element, m !== void 0);
5604
+ }), [r.element]), c = L(() => xm(e, r.element.componentName, r.element.properties), [r.element]), u = ha.has(pt(r.element.componentName)), d = e.startsWith(`${_s}:`), p = d ? void 0 : pa[pt(r.element.componentName)], h = d && pt(r.element.componentName) === "topbar", [m, g] = W(), f = Dm(s, r.element), v = Em(r), P = Fm(r.element, m !== void 0);
5605
5605
  return /* @__PURE__ */ y("span", {
5606
5606
  ref: s,
5607
5607
  "data-studio-element": r.element.id,
@@ -5615,7 +5615,7 @@ function Fm(e, t, n, o) {
5615
5615
  tone: zt.Failed,
5616
5616
  text: n.failedToDraw(v, m ?? "")
5617
5617
  }),
5618
- children: p ? /* @__PURE__ */ a(Nm, {
5618
+ children: p ? /* @__PURE__ */ a(Tm, {
5619
5619
  kind: p,
5620
5620
  tag: n.overlay(v),
5621
5621
  element: l,
@@ -5623,7 +5623,7 @@ function Fm(e, t, n, o) {
5623
5623
  message: o
5624
5624
  }) : h ? /* @__PURE__ */ y("div", {
5625
5625
  className: "studio-design-topbar",
5626
- children: [/* @__PURE__ */ a(Tm, {}), ht(t, {
5626
+ children: [/* @__PURE__ */ a(Im, {}), ht(t, {
5627
5627
  ...r,
5628
5628
  element: l
5629
5629
  })]
@@ -5640,14 +5640,14 @@ function Fm(e, t, n, o) {
5640
5640
  };
5641
5641
  return i.displayName = `DesignTime(${t.displayName ?? t.name ?? "Component"})`, i;
5642
5642
  }
5643
- function Mm(e, t) {
5644
- const n = Object.fromEntries(Object.entries(e).map(([i, r]) => [i, Fm(i, r, t, e["PrimeReact:message"])])), o = {};
5643
+ function Am(e, t) {
5644
+ const n = Object.fromEntries(Object.entries(e).map(([i, r]) => [i, Mm(i, r, t, e["PrimeReact:message"])])), o = {};
5645
5645
  return new Proxy(n, { get: (i, r) => {
5646
5646
  if (typeof r == "string")
5647
- return i[r] ?? (o[r] ??= Am(t));
5647
+ return i[r] ?? (o[r] ??= _m(t));
5648
5648
  } });
5649
5649
  }
5650
- var Am = (e) => ({ element: t }) => ht("span", {
5650
+ var _m = (e) => ({ element: t }) => ht("span", {
5651
5651
  "data-studio-element": t.id,
5652
5652
  style: { display: "contents" }
5653
5653
  }, ht(Jn, {
@@ -5656,7 +5656,7 @@ var Am = (e) => ({ element: t }) => ht("span", {
5656
5656
  text: e.unavailable(t.name || t.componentName)
5657
5657
  })), we = /* @__PURE__ */ (function(e) {
5658
5658
  return e.Container = "container", e.Between = "between", e;
5659
- })({}), _m = ({ feedback: e, deniedText: t }) => {
5659
+ })({}), $m = ({ feedback: e, deniedText: t }) => {
5660
5660
  if (e.denied || !e.drop) return /* @__PURE__ */ a("div", {
5661
5661
  className: "studio-screen-surface__denied",
5662
5662
  "data-studio-drop-state": "denied",
@@ -5673,10 +5673,10 @@ var Am = (e) => ({ element: t }) => ht("span", {
5673
5673
  "data-empty": n.region.isEmptyContainer,
5674
5674
  style: n.rect
5675
5675
  })] });
5676
- }, $m = (e) => e.width > 0 && e.height > 0;
5676
+ }, Lm = (e) => e.width > 0 && e.height > 0;
5677
5677
  function ga(e) {
5678
5678
  const t = e.getBoundingClientRect();
5679
- return $m(t) ? [t] : Array.from(e.children).flatMap(ga);
5679
+ return Lm(t) ? [t] : Array.from(e.children).flatMap(ga);
5680
5680
  }
5681
5681
  function De(e, t, n) {
5682
5682
  const o = CSS.escape(t), i = [...Array.from(e.querySelectorAll(`[data-studio-element="${o}"]`)), ...Array.from(e.querySelectorAll(`[data-scene-id="${o}"]`))];
@@ -5696,7 +5696,7 @@ function va(e, t) {
5696
5696
  height: s - i
5697
5697
  };
5698
5698
  }
5699
- var ba = (e, t) => e === t || !!e && !!t && e.left === t.left && e.top === t.top && e.width === t.width && e.height === t.height, Lm = (e, t) => e.length === t.length && e.every((n, o) => n.region.id === t[o].region.id && ba(n.rect, t[o].rect)), ya = ba, Bm = ({ surface: e, markers: t }) => {
5699
+ var ba = (e, t) => e === t || !!e && !!t && e.left === t.left && e.top === t.top && e.width === t.width && e.height === t.height, Bm = (e, t) => e.length === t.length && e.every((n, o) => n.region.id === t[o].region.id && ba(n.rect, t[o].rect)), ya = ba, jm = ({ surface: e, markers: t }) => {
5700
5700
  const [n, o] = W([]);
5701
5701
  return ve(() => {
5702
5702
  const i = e.current;
@@ -5708,7 +5708,7 @@ var ba = (e, t) => e === t || !!e && !!t && e.left === t.left && e.top === t.top
5708
5708
  rect: c
5709
5709
  }] : [];
5710
5710
  });
5711
- o((l) => jm(l, s) ? l : s);
5711
+ o((l) => Um(l, s) ? l : s);
5712
5712
  }), /* @__PURE__ */ a(ie, { children: n.map((i) => /* @__PURE__ */ a("div", {
5713
5713
  className: "studio-screen-surface__binding-source",
5714
5714
  "data-binding-source": i.componentId,
@@ -5719,29 +5719,29 @@ var ba = (e, t) => e === t || !!e && !!t && e.left === t.left && e.top === t.top
5719
5719
  })
5720
5720
  }, `${i.componentId}:${i.label}`)) });
5721
5721
  };
5722
- function jm(e, t) {
5722
+ function Um(e, t) {
5723
5723
  return e.length === t.length && e.every((n, o) => {
5724
5724
  const i = t[o];
5725
5725
  return n.componentId === i.componentId && n.label === i.label && ya(n.rect, i.rect);
5726
5726
  });
5727
5727
  }
5728
- function Um(e, t) {
5728
+ function Wm(e, t) {
5729
5729
  return e ? Object.entries(e.inputs).flatMap(([n, o]) => {
5730
- const i = eu(o);
5730
+ const i = tu(o);
5731
5731
  return i ? [{
5732
5732
  componentId: i,
5733
5733
  label: `${n} ← ${t.find((r) => r.path === o)?.label ?? o}`
5734
5734
  }] : [];
5735
5735
  }) : [];
5736
5736
  }
5737
- function Wm(e, t) {
5737
+ function zm(e, t) {
5738
5738
  const { selectedId: n, document: o, composition: i, context: r } = e;
5739
5739
  return L(() => {
5740
5740
  if (!n) return [];
5741
5741
  const s = Le(i.roots, n), l = qr(s?.properties);
5742
5742
  if (!l) return [];
5743
5743
  const c = Gi(o, i.roots, r, t.availableSources, t.queryCandidates);
5744
- return Um(l, _r(c.dataContextPaths, c.componentOutputs, n));
5744
+ return Wm(l, _r(c.dataContextPaths, c.componentOutputs, n));
5745
5745
  }, [
5746
5746
  n,
5747
5747
  o,
@@ -5751,7 +5751,7 @@ function Wm(e, t) {
5751
5751
  t.queryCandidates
5752
5752
  ]);
5753
5753
  }
5754
- function zm(e, t, n, o, i) {
5754
+ function qm(e, t, n, o, i) {
5755
5755
  const r = ye(e, n, t);
5756
5756
  if (r)
5757
5757
  return {
@@ -5762,17 +5762,17 @@ function zm(e, t, n, o, i) {
5762
5762
  }
5763
5763
  var je = /* @__PURE__ */ (function(e) {
5764
5764
  return e.Horizontal = "horizontal", e.Vertical = "vertical", e.None = "none", e;
5765
- })({}), Ft = ({ width: e, height: t }) => e * t, qm = (e, t, n) => t >= e.left && t <= e.left + e.width && n >= e.top && n <= e.top + e.height, Km = (e, t, n, o) => {
5765
+ })({}), Ft = ({ width: e, height: t }) => e * t, Km = (e, t, n) => t >= e.left && t <= e.left + e.width && n >= e.top && n <= e.top + e.height, Gm = (e, t, n, o) => {
5766
5766
  const i = Math.min(o, e.width / 4), r = Math.min(o, e.height / 4);
5767
5767
  return t - e.left < i || e.left + e.width - t < i || n - e.top < r || e.top + e.height - n < r;
5768
5768
  }, Di = ({ region: e, rect: t }, n, o) => e.axis === je.Vertical ? Math.abs(n - (t.left + t.width / 2)) : Math.abs(o - (t.top + t.height / 2));
5769
- function Gm(e, t, n, o = 6) {
5769
+ function Hm(e, t, n, o = 6) {
5770
5770
  const i = e.filter((u) => u.region.kind === we.Container);
5771
5771
  if (i.length === 0) return;
5772
5772
  const r = i.map((u, d) => ({
5773
5773
  placed: u,
5774
5774
  order: d
5775
- })).filter(({ placed: u }) => qm(u.rect, t, n)).sort((u, d) => Ft(u.placed.rect) - Ft(d.placed.rect) || d.order - u.order).map(({ placed: u }) => u), s = r[0], l = s && r.length > 1 && Km(s.rect, t, n, o) ? r[1] : s ?? [...i].sort((u, d) => Ft(d.rect) - Ft(u.rect))[0], c = e.filter((u) => u.region.kind === we.Between && u.region.containerId === l.region.containerId);
5775
+ })).filter(({ placed: u }) => Km(u.rect, t, n)).sort((u, d) => Ft(u.placed.rect) - Ft(d.placed.rect) || d.order - u.order).map(({ placed: u }) => u), s = r[0], l = s && r.length > 1 && Gm(s.rect, t, n, o) ? r[1] : s ?? [...i].sort((u, d) => Ft(d.rect) - Ft(u.rect))[0], c = e.filter((u) => u.region.kind === we.Between && u.region.containerId === l.region.containerId);
5776
5776
  return l.region.isEmptyContainer || c.length === 0 ? {
5777
5777
  target: l,
5778
5778
  container: l.rect
@@ -5781,8 +5781,8 @@ function Gm(e, t, n, o = 6) {
5781
5781
  container: l.rect
5782
5782
  };
5783
5783
  }
5784
- var Hm = (e, t) => e?.top === t?.top && e?.left === t?.left && e?.width === t?.width && e?.height === t?.height, Vm = (e, t) => !!e && e.denied === t.denied && e.drop?.target.region.id === t.drop?.target.region.id && Hm(e.drop?.target.rect, t.drop?.target.rect);
5785
- function Jm(e, t, n) {
5784
+ var Vm = (e, t) => e?.top === t?.top && e?.left === t?.left && e?.width === t?.width && e?.height === t?.height, Jm = (e, t) => !!e && e.denied === t.denied && e.drop?.target.region.id === t.drop?.target.region.id && Vm(e.drop?.target.rect, t.drop?.target.rect);
5785
+ function Qm(e, t, n) {
5786
5786
  const [o, i] = W(), r = J(void 0);
5787
5787
  r.current = o;
5788
5788
  const [s, l] = W(), c = J(0), u = J(void 0), d = U(() => {
@@ -5802,7 +5802,7 @@ function Jm(e, t, n) {
5802
5802
  const b = u.current, { region: C } = w.target;
5803
5803
  if (!b || !C.containerId) return;
5804
5804
  const F = C.kind === we.Container ? g(C.containerId) : C.index;
5805
- return zm(n.composition.roots, n.adapter, b, C.containerId, F);
5805
+ return qm(n.composition.roots, n.adapter, b, C.containerId, F);
5806
5806
  }, g = (w) => {
5807
5807
  const b = [...n.composition.roots];
5808
5808
  for (; b.length > 0; ) {
@@ -5812,7 +5812,7 @@ function Jm(e, t, n) {
5812
5812
  }
5813
5813
  return 0;
5814
5814
  }, f = (w) => {
5815
- const b = e.current.getBoundingClientRect(), C = Gm(t(), w.clientX - b.left, w.clientY - b.top), F = w.target.closest("[data-scene-id], [data-studio-element]"), N = F?.dataset.sceneId ?? F?.dataset.studioElement, S = !!N && n.ownershipOf(N) !== ne.Local;
5815
+ const b = e.current.getBoundingClientRect(), C = Hm(t(), w.clientX - b.left, w.clientY - b.top), F = w.target.closest("[data-scene-id], [data-studio-element]"), N = F?.dataset.sceneId ?? F?.dataset.studioElement, S = !!N && n.ownershipOf(N) !== ne.Local;
5816
5816
  if (!C || S) return { denied: !0 };
5817
5817
  if (Hn(w)) {
5818
5818
  const E = m(C), _ = E ? n.validateMove(E) : te.NodeNotFound;
@@ -5841,14 +5841,14 @@ function Jm(e, t, n) {
5841
5841
  onDragOver: (w) => {
5842
5842
  if (!Dt(w) || (w.preventDefault(), p.current)) return;
5843
5843
  const b = f(w);
5844
- w.dataTransfer.dropEffect = b.denied ? "none" : Hn(w) ? "move" : "copy", i((C) => Vm(C, b) ? C : b);
5844
+ w.dataTransfer.dropEffect = b.denied ? "none" : Hn(w) ? "move" : "copy", i((C) => Jm(C, b) ? C : b);
5845
5845
  },
5846
5846
  onDragLeave: (w) => {
5847
5847
  Dt(w) && (c.current = Math.max(0, c.current - 1), c.current === 0 && i(void 0));
5848
5848
  },
5849
5849
  onDrop: (w) => {
5850
5850
  if (!Dt(w)) return;
5851
- const b = nm(w), C = om(w), { drop: F, denied: N } = f(w), S = F && b ? m(F) : void 0, E = p.current;
5851
+ const b = om(w), C = im(w), { drop: F, denied: N } = f(w), S = F && b ? m(F) : void 0, E = p.current;
5852
5852
  if (w.preventDefault(), d(), p.current = !1, E || N || !F) return;
5853
5853
  if (b) {
5854
5854
  S && n.move(S, v(w, F));
@@ -5862,7 +5862,7 @@ function Jm(e, t, n) {
5862
5862
  };
5863
5863
  }
5864
5864
  var Ye = 3;
5865
- function Qm(e, t, n) {
5865
+ function Ym(e, t, n) {
5866
5866
  const o = e.containerId === null ? t : n(e.containerId);
5867
5867
  if (!o) return;
5868
5868
  if (e.kind === we.Container) return o;
@@ -5883,7 +5883,7 @@ function Qm(e, t, n) {
5883
5883
  height: o.height
5884
5884
  };
5885
5885
  }
5886
- function Ym(e, t, n) {
5886
+ function Zm(e, t, n) {
5887
5887
  const [o, i] = W([]), [r, s] = W(), l = J([]), c = U(() => {
5888
5888
  const d = e.current;
5889
5889
  if (!d) return [];
@@ -5894,7 +5894,7 @@ function Ym(e, t, n) {
5894
5894
  height: p.height
5895
5895
  };
5896
5896
  return t.flatMap((g) => {
5897
- const f = Qm(g, m, h);
5897
+ const f = Ym(g, m, h);
5898
5898
  return f ? [{
5899
5899
  region: g,
5900
5900
  rect: f
@@ -5904,7 +5904,7 @@ function Ym(e, t, n) {
5904
5904
  const d = e.current;
5905
5905
  if (!d) return;
5906
5906
  const p = c();
5907
- l.current = p, i((m) => Lm(m, p) ? m : p);
5907
+ l.current = p, i((m) => Bm(m, p) ? m : p);
5908
5908
  const h = n ? De(d, n, d.getBoundingClientRect()) : void 0;
5909
5909
  s((m) => ya(m, h) ? m : h);
5910
5910
  }, [
@@ -5947,8 +5947,8 @@ var Ei = [
5947
5947
  "mouseup",
5948
5948
  "click",
5949
5949
  "dblclick"
5950
- ], Zm = "[data-scene-id], [data-studio-element], [data-studio-placeholder-for]";
5951
- function Xm(e, t, n = 0) {
5950
+ ], Xm = "[data-scene-id], [data-studio-element], [data-studio-placeholder-for]";
5951
+ function eh(e, t, n = 0) {
5952
5952
  const o = Zt(t);
5953
5953
  return {
5954
5954
  select: e === "pointerdown" && n === 0 || e === "click",
@@ -5956,16 +5956,16 @@ function Xm(e, t, n = 0) {
5956
5956
  cancelDefault: !o && e === "click"
5957
5957
  };
5958
5958
  }
5959
- function eh(e) {
5960
- const t = e, n = t && typeof t.closest == "function" ? t.closest(Zm) : null;
5959
+ function th(e) {
5960
+ const t = e, n = t && typeof t.closest == "function" ? t.closest(Xm) : null;
5961
5961
  return n?.dataset.sceneId ?? n?.dataset.studioElement ?? n?.dataset.studioPlaceholderFor;
5962
5962
  }
5963
- var th = "[data-scene-item], [data-scene-nav-item]";
5964
- function nh(e) {
5965
- const t = e, n = t && typeof t.closest == "function" ? t.closest(th) : null;
5963
+ var nh = "[data-scene-item], [data-scene-nav-item]";
5964
+ function oh(e) {
5965
+ const t = e, n = t && typeof t.closest == "function" ? t.closest(nh) : null;
5966
5966
  return n?.dataset.sceneItem ?? n?.dataset.sceneNavItem;
5967
5967
  }
5968
- function oh(e, t) {
5968
+ function ih(e, t) {
5969
5969
  const n = J(t);
5970
5970
  n.current = t, se(() => {
5971
5971
  const o = e.current;
@@ -5973,8 +5973,8 @@ function oh(e, t) {
5973
5973
  const i = (r) => {
5974
5974
  const s = r.target;
5975
5975
  if (s?.closest?.(".studio-screen-surface__chrome")) return;
5976
- const l = Xm(r.type, s, r.button);
5977
- l.select && (Zt(s) || o.focus({ preventScroll: !0 }), n.current(eh(s), nh(s))), l.cancelDefault && r.preventDefault(), l.swallow && r.stopPropagation();
5976
+ const l = eh(r.type, s, r.button);
5977
+ l.select && (Zt(s) || o.focus({ preventScroll: !0 }), n.current(th(s), oh(s))), l.cancelDefault && r.preventDefault(), l.swallow && r.stopPropagation();
5978
5978
  };
5979
5979
  for (const r of Ei) o.addEventListener(r, i, !0);
5980
5980
  return () => {
@@ -5982,7 +5982,7 @@ function oh(e, t) {
5982
5982
  };
5983
5983
  }, [e]);
5984
5984
  }
5985
- var Fi = 'button:not(:disabled), [href], input:not(:disabled), select:not(:disabled), textarea:not(:disabled), [tabindex]:not([tabindex="-1"])', Mi = 440, ih = ({ registry: e, property: t, context: n, componentId: o, anchor: i, opener: r, bounds: s, title: l, strings: c, onChange: u, onClose: d }) => {
5985
+ var Fi = 'button:not(:disabled), [href], input:not(:disabled), select:not(:disabled), textarea:not(:disabled), [tabindex]:not([tabindex="-1"])', Mi = 440, rh = ({ registry: e, property: t, context: n, componentId: o, anchor: i, opener: r, bounds: s, title: l, strings: c, onChange: u, onClose: d }) => {
5986
5986
  const p = J(null);
5987
5987
  se(() => ((p.current?.querySelector(Fi) ?? p.current)?.focus({ preventScroll: !0 }), () => {
5988
5988
  r.isConnected && r.focus({ preventScroll: !0 });
@@ -6031,7 +6031,7 @@ var Fi = 'button:not(:disabled), [href], input:not(:disabled), select:not(:disab
6031
6031
  })
6032
6032
  });
6033
6033
  };
6034
- function rh({ anchor: e, bounds: t, size: n, prefer: o, gap: i = 6 }) {
6034
+ function ah({ anchor: e, bounds: t, size: n, prefer: o, gap: i = 6 }) {
6035
6035
  const r = e.top - i - n.height, s = e.top + e.height + i, l = r >= t.top, c = s + n.height <= t.top + t.height, u = o === "above" ? l || !c ? "above" : "below" : c || !l ? "below" : "above", d = u === "above" ? r : s, p = Math.max(t.top, Math.min(d, t.top + t.height - n.height));
6036
6036
  return {
6037
6037
  left: Math.max(t.left, Math.min(e.left, t.left + t.width - n.width)),
@@ -6044,23 +6044,23 @@ var Ai = [
6044
6044
  A.slot,
6045
6045
  A.slice,
6046
6046
  A.emphasis
6047
- ], ah = [
6047
+ ], sh = [
6048
6048
  A.moveEarlier,
6049
6049
  A.moveLater,
6050
6050
  A.addSubItem,
6051
6051
  A.duplicate,
6052
6052
  A.delete
6053
- ], sh = {
6054
- [A.target]: /* @__PURE__ */ a(Gl, { "aria-hidden": "true" }),
6055
- [A.slot]: /* @__PURE__ */ a(Hl, { "aria-hidden": "true" }),
6056
- [A.slice]: /* @__PURE__ */ a(Ql, { "aria-hidden": "true" })
6057
- }, lh = {
6058
- [A.moveEarlier]: /* @__PURE__ */ a(Wl, { "aria-hidden": "true" }),
6059
- [A.moveLater]: /* @__PURE__ */ a(zl, { "aria-hidden": "true" }),
6060
- [A.addSubItem]: /* @__PURE__ */ a(Kl, { "aria-hidden": "true" }),
6061
- [A.duplicate]: /* @__PURE__ */ a(ql, { "aria-hidden": "true" }),
6062
- [A.delete]: /* @__PURE__ */ a(Jl, { "aria-hidden": "true" })
6063
- }, ch = ({ subject: e, item: t, anchor: n, bounds: o, strings: i, renameToken: r, chipLabel: s, onRename: l, onAction: c, onChoice: u, readOnlyActions: d, onReadOnlyAction: p, onLeave: h }) => {
6053
+ ], lh = {
6054
+ [A.target]: /* @__PURE__ */ a(Hl, { "aria-hidden": "true" }),
6055
+ [A.slot]: /* @__PURE__ */ a(Vl, { "aria-hidden": "true" }),
6056
+ [A.slice]: /* @__PURE__ */ a(Yl, { "aria-hidden": "true" })
6057
+ }, ch = {
6058
+ [A.moveEarlier]: /* @__PURE__ */ a(zl, { "aria-hidden": "true" }),
6059
+ [A.moveLater]: /* @__PURE__ */ a(ql, { "aria-hidden": "true" }),
6060
+ [A.addSubItem]: /* @__PURE__ */ a(Gl, { "aria-hidden": "true" }),
6061
+ [A.duplicate]: /* @__PURE__ */ a(Kl, { "aria-hidden": "true" }),
6062
+ [A.delete]: /* @__PURE__ */ a(Ql, { "aria-hidden": "true" })
6063
+ }, dh = ({ subject: e, item: t, anchor: n, bounds: o, strings: i, renameToken: r, chipLabel: s, onRename: l, onAction: c, onChoice: u, readOnlyActions: d, onReadOnlyAction: p, onLeave: h }) => {
6064
6064
  const m = J(null), g = J(null), [f, v] = W({
6065
6065
  width: 380,
6066
6066
  height: 100
@@ -6076,7 +6076,7 @@ var Ai = [
6076
6076
  height: R.height
6077
6077
  });
6078
6078
  });
6079
- const S = e.source.kind === "elements" ? "above" : "below", E = rh({
6079
+ const S = e.source.kind === "elements" ? "above" : "below", E = ah({
6080
6080
  anchor: n,
6081
6081
  bounds: o,
6082
6082
  size: f,
@@ -6141,7 +6141,7 @@ var Ai = [
6141
6141
  "data-roving": R,
6142
6142
  tabIndex: O === R ? 0 : -1
6143
6143
  };
6144
- }, Me = w.filter((R) => Ai.includes(R.id) && xt(R, t).visible), Z = ah.flatMap((R) => w.filter((X) => X.id === R)).filter((R) => xt(R, t).visible);
6144
+ }, Me = w.filter((R) => Ai.includes(R.id) && xt(R, t).visible), Z = sh.flatMap((R) => w.filter((X) => X.id === R)).filter((R) => xt(R, t).visible);
6145
6145
  return /* @__PURE__ */ y("div", {
6146
6146
  ...Ee,
6147
6147
  children: [
@@ -6172,7 +6172,7 @@ var Ai = [
6172
6172
  "aria-haspopup": "dialog",
6173
6173
  ...Fe(),
6174
6174
  onClick: (X) => u(R.id, X.currentTarget),
6175
- children: [sh[R.id], /* @__PURE__ */ a("span", { children: s(R.id, t) })]
6175
+ children: [lh[R.id], /* @__PURE__ */ a("span", { children: s(R.id, t) })]
6176
6176
  }, R.id))
6177
6177
  }),
6178
6178
  Me.length > 0 && Z.length > 0 && /* @__PURE__ */ a("span", {
@@ -6192,20 +6192,20 @@ var Ai = [
6192
6192
  disabled: !X.enabled,
6193
6193
  ...Fe(),
6194
6194
  onClick: () => c(R.id),
6195
- children: lh[R.id]
6195
+ children: ch[R.id]
6196
6196
  }, R.id);
6197
6197
  })
6198
6198
  })
6199
6199
  ]
6200
6200
  });
6201
- }, dh = (e) => {
6201
+ }, uh = (e) => {
6202
6202
  const t = CSS.escape(e);
6203
6203
  return [
6204
6204
  `[data-scene-nav-item="${t}"] > [data-scene-nav-link]`,
6205
6205
  `[data-scene-nav-item="${t}"]`,
6206
6206
  `[data-scene-item="${t}"]`
6207
6207
  ];
6208
- }, Nn = (e, t) => e === t || !!e && !!t && e.left === t.left && e.top === t.top && e.width === t.width && e.height === t.height, uh = (e, t) => Nn(e.surface, t.surface) && Nn(e.component, t.component) && Object.keys(t.items).length === Object.keys(e.items).length && Object.entries(t.items).every(([n, o]) => Nn(e.items[n], o));
6208
+ }, Nn = (e, t) => e === t || !!e && !!t && e.left === t.left && e.top === t.top && e.width === t.width && e.height === t.height, ph = (e, t) => Nn(e.surface, t.surface) && Nn(e.component, t.component) && Object.keys(t.items).length === Object.keys(e.items).length && Object.entries(t.items).every(([n, o]) => Nn(e.items[n], o));
6209
6209
  function Yn(e, t, n) {
6210
6210
  const [o, i] = W(), r = U(() => {
6211
6211
  const s = e.current, l = s ? t(s, s.getBoundingClientRect()) : void 0;
@@ -6245,12 +6245,12 @@ function Yn(e, t, n) {
6245
6245
  };
6246
6246
  }, [e, r]), o;
6247
6247
  }
6248
- function ph(e, t) {
6248
+ function mh(e, t) {
6249
6249
  return Yn(e, U((n, o) => {
6250
6250
  if (!t) return;
6251
6251
  const i = De(n, t.componentId, o), r = n.querySelector(`[data-studio-element="${CSS.escape(t.componentId)}"]`) ?? n.querySelector(`[data-scene-id="${CSS.escape(t.componentId)}"]`), s = {};
6252
6252
  for (const l of t.source.items) {
6253
- const c = De(n, l.id, o) ?? (r ? dh(l.id).map((u) => r.querySelector(u)).flatMap((u) => u ? [va(u, o)] : []).find((u) => u !== void 0) : void 0);
6253
+ const c = De(n, l.id, o) ?? (r ? uh(l.id).map((u) => r.querySelector(u)).flatMap((u) => u ? [va(u, o)] : []).find((u) => u !== void 0) : void 0);
6254
6254
  c && (s[l.id] = c);
6255
6255
  }
6256
6256
  return {
@@ -6263,10 +6263,10 @@ function ph(e, t) {
6263
6263
  component: i,
6264
6264
  items: s
6265
6265
  };
6266
- }, [t]), uh);
6266
+ }, [t]), ph);
6267
6267
  }
6268
- var Tn = 34, mh = ({ surface: e, state: t, controller: n, environment: o, editorStrings: i, strings: r }) => {
6269
- const { subject: s } = t, l = ph(e, s), [c, u] = W(), d = o.propertyEditors?.registry ?? Xt, p = L(() => bo(o.availableSources), [o.availableSources]), h = U((I) => {
6268
+ var Tn = 34, hh = ({ surface: e, state: t, controller: n, environment: o, editorStrings: i, strings: r }) => {
6269
+ const { subject: s } = t, l = mh(e, s), [c, u] = W(), d = o.propertyEditors?.registry ?? Xt, p = L(() => bo(o.availableSources), [o.availableSources]), h = U((I) => {
6270
6270
  if (typeof I != "string" || I === "") return;
6271
6271
  const q = o.propertyEditors?.slices?.find((le) => le.id === I) ?? o.stateChangeSlices.find((le) => le.id === I), G = I.split(".");
6272
6272
  return q?.name ?? G[G.length - 1];
@@ -6331,9 +6331,9 @@ var Tn = 34, mh = ({ surface: e, state: t, controller: n, environment: o, editor
6331
6331
  height: Tn
6332
6332
  },
6333
6333
  onClick: () => t.add(x.id),
6334
- children: /* @__PURE__ */ a(Vl, { "aria-hidden": "true" })
6334
+ children: /* @__PURE__ */ a(Jl, { "aria-hidden": "true" })
6335
6335
  }),
6336
- v && k && /* @__PURE__ */ a(ch, {
6336
+ v && k && /* @__PURE__ */ a(dh, {
6337
6337
  subject: s,
6338
6338
  item: v,
6339
6339
  anchor: k,
@@ -6352,12 +6352,12 @@ var Tn = 34, mh = ({ surface: e, state: t, controller: n, environment: o, editor
6352
6352
  onReadOnlyAction: (I) => t.perform(I.plan()),
6353
6353
  onLeave: () => e.current?.focus({ preventScroll: !0 })
6354
6354
  }, v.id),
6355
- N && c && k && /* @__PURE__ */ a(ih, {
6355
+ N && c && k && /* @__PURE__ */ a(rh, {
6356
6356
  registry: d,
6357
6357
  property: N.property,
6358
6358
  context: E(),
6359
6359
  componentId: v.id,
6360
- anchor: hh(e, c.opener),
6360
+ anchor: fh(e, c.opener),
6361
6361
  opener: c.opener,
6362
6362
  bounds: l.surface,
6363
6363
  title: s.mode.itemToolbar.find((I) => I.id === c.actionId)?.title ?? c.actionId,
@@ -6388,7 +6388,7 @@ var Tn = 34, mh = ({ surface: e, state: t, controller: n, environment: o, editor
6388
6388
  })
6389
6389
  ] });
6390
6390
  };
6391
- function hh(e, t) {
6391
+ function fh(e, t) {
6392
6392
  const n = e.current?.getBoundingClientRect(), o = t.getBoundingClientRect();
6393
6393
  return {
6394
6394
  left: o.left - (n?.left ?? 0),
@@ -6408,14 +6408,14 @@ function wa(e, t) {
6408
6408
  }] : [], ...wa(Jt(n), t)];
6409
6409
  });
6410
6410
  }
6411
- var fh = (e, t) => e.left === t.left && e.top === t.top && e.width === t.width && e.height === t.height, $i = "content", gh = (e, t) => e.length === t.length && e.every((n, o) => n.id === t[o].id && n.rect.left === t[o].rect.left && n.rect.top === t[o].rect.top && n.rect.width === t[o].rect.width && n.rect.height === t[o].rect.height), vh = ({ surface: e, controller: t, strings: n }) => {
6412
- const o = Yn(e, U((m, g) => De(m, "composition", g), []), fh), { composition: i, context: r, selectedId: s, navigation: l, navigationModule: c, structure: u } = t, d = L(() => wa(i.roots, r.catalog), [i.roots, r.catalog]), p = U((m, g) => d.flatMap((f) => {
6411
+ var gh = (e, t) => e.left === t.left && e.top === t.top && e.width === t.width && e.height === t.height, $i = "content", vh = (e, t) => e.length === t.length && e.every((n, o) => n.id === t[o].id && n.rect.left === t[o].rect.left && n.rect.top === t[o].rect.top && n.rect.width === t[o].rect.width && n.rect.height === t[o].rect.height), bh = ({ surface: e, controller: t, strings: n }) => {
6412
+ const o = Yn(e, U((m, g) => De(m, "composition", g), []), gh), { composition: i, context: r, selectedId: s, navigation: l, navigationModule: c, structure: u } = t, d = L(() => wa(i.roots, r.catalog), [i.roots, r.catalog]), p = U((m, g) => d.flatMap((f) => {
6413
6413
  const v = De(m, f.id, g);
6414
6414
  return v ? [{
6415
6415
  ...f,
6416
6416
  rect: v
6417
6417
  }] : [];
6418
- }), [d]), h = Yn(e, p, gh);
6418
+ }), [d]), h = Yn(e, p, vh);
6419
6419
  return /* @__PURE__ */ y(ie, { children: [o && /* @__PURE__ */ a("div", {
6420
6420
  className: "studio-design-slot",
6421
6421
  "data-slot": $i,
@@ -6469,9 +6469,9 @@ var fh = (e, t) => e.left === t.left && e.top === t.top && e.width === t.width &
6469
6469
  })
6470
6470
  }, m);
6471
6471
  })] });
6472
- }, bh = Bs(), In = () => {
6472
+ }, yh = js(), In = () => {
6473
6473
  throw new Error("The screen is being designed; it does not navigate.");
6474
- }, yh = ({ structure: e, navigation: t, module: n, logoLockedReason: o, children: i }) => {
6474
+ }, wh = ({ structure: e, navigation: t, module: n, logoLockedReason: o, children: i }) => {
6475
6475
  const r = L(() => new Qt(e), [e]), s = L(() => ({
6476
6476
  structure: r,
6477
6477
  navigation: t
@@ -6496,21 +6496,21 @@ var fh = (e, t) => e.left === t.left && e.top === t.top && e.width === t.width &
6496
6496
  o
6497
6497
  ]), p = /* @__PURE__ */ a(ma.Provider, {
6498
6498
  value: d,
6499
- children: /* @__PURE__ */ a(_s, {
6499
+ children: /* @__PURE__ */ a($s, {
6500
6500
  model: s,
6501
- children: /* @__PURE__ */ a(Ls, {
6502
- invoker: bh,
6501
+ children: /* @__PURE__ */ a(Bs, {
6502
+ invoker: yh,
6503
6503
  warnEmptySlices: !0,
6504
6504
  children: i
6505
6505
  })
6506
6506
  })
6507
6507
  });
6508
- return c ? /* @__PURE__ */ a($s, {
6508
+ return c ? /* @__PURE__ */ a(Ls, {
6509
6509
  value: c,
6510
6510
  children: p
6511
6511
  }) : p;
6512
6512
  };
6513
- function wh(e, t, n) {
6513
+ function kh(e, t, n) {
6514
6514
  const { subject: o } = t;
6515
6515
  if (!o) return !1;
6516
6516
  const i = Zt(e.target), r = () => (e.preventDefault(), e.stopPropagation(), !0);
@@ -6526,20 +6526,20 @@ function wh(e, t, n) {
6526
6526
  }
6527
6527
  return vo(e) ? (t.act(A.delete, s), r()) : !1;
6528
6528
  }
6529
- var kh = () => {
6530
- }, Sh = {
6529
+ var Sh = () => {
6530
+ }, Ch = {
6531
6531
  button: "Button",
6532
6532
  item: "New item"
6533
- }, Ch = ({ controller: e, environment: t, resolveBinding: n = kh, configuration: o, strings: i, editorStrings: r, viewportHeight: s }) => {
6534
- const l = J(null), { composition: c, dropRegions: u, selectedId: d } = e, { selectionRect: p, measureNow: h } = Ym(l, u, d), { feedback: m, draggedId: g, startMoving: f, endMoving: v, handlers: P } = Jm(l, h, e), [x, O] = W(), T = Wm(e, t), { document: w, context: b } = e, C = L(() => o ?? (w.instanceContributions.length > 0 ? ir(co(w, b.scope), w.instanceContributions, b.catalog) : void 0), [
6533
+ }, Nh = ({ controller: e, environment: t, resolveBinding: n = Sh, configuration: o, strings: i, editorStrings: r, viewportHeight: s }) => {
6534
+ const l = J(null), { composition: c, dropRegions: u, selectedId: d } = e, { selectionRect: p, measureNow: h } = Zm(l, u, d), { feedback: m, draggedId: g, startMoving: f, endMoving: v, handlers: P } = Qm(l, h, e), [x, O] = W(), T = zm(e, t), { document: w, context: b } = e, C = L(() => o ?? (w.instanceContributions.length > 0 ? ir(co(w, b.scope), w.instanceContributions, b.catalog) : void 0), [
6535
6535
  o,
6536
6536
  w,
6537
6537
  b
6538
- ]), F = r?.designMode ?? To, N = t.destinations[0], S = L(() => N ? { screen: N.id } : void 0, [N]), E = Ep({
6538
+ ]), F = r?.designMode ?? To, N = t.destinations[0], S = L(() => N ? { screen: N.id } : void 0, [N]), E = Fp({
6539
6539
  controller: e,
6540
6540
  environment: t,
6541
6541
  strings: F,
6542
- startingLabels: Sh,
6542
+ startingLabels: Ch,
6543
6543
  ...S ? { startingDestination: S } : {}
6544
6544
  });
6545
6545
  ve(() => {
@@ -6549,12 +6549,12 @@ var kh = () => {
6549
6549
  return O(Z.clientHeight), R.observe(Z), () => R.disconnect();
6550
6550
  }, [s]);
6551
6551
  const _ = (Z) => {
6552
- wh(Z, E, () => {
6552
+ kh(Z, E, () => {
6553
6553
  const R = l.current?.querySelector(".studio-design-toolbar__title");
6554
6554
  return R?.focus({ preventScroll: !0 }), !!R;
6555
6555
  }) || !vo(Z) || !e.selectedId || !e.canRemove(e.selectedId) || (Z.preventDefault(), e.remove(e.selectedId));
6556
6556
  }, k = !!e.selectedId && e.ownershipOf(e.selectedId) === ne.Local && e.canRemove(e.selectedId), I = e.selection && (e.selection.name || e.selection.componentName) || "";
6557
- oh(l, (Z, R) => {
6557
+ ih(l, (Z, R) => {
6558
6558
  e.select(Z), E.pointItem(Z, R);
6559
6559
  });
6560
6560
  const { setMeasurer: q } = e;
@@ -6580,11 +6580,11 @@ var kh = () => {
6580
6580
  c,
6581
6581
  t.runtime.profile,
6582
6582
  t.runtime.packages
6583
- ]), le = L(() => Mm(t.runtime.registry, i), [t.runtime.registry, i]), Ee = L(() => Mo(t.runtime), [t.runtime]), st = L(() => /* @__PURE__ */ a(lr, {
6583
+ ]), le = L(() => Am(t.runtime.registry, i), [t.runtime.registry, i]), Ee = L(() => Mo(t.runtime), [t.runtime]), st = L(() => /* @__PURE__ */ a(lr, {
6584
6584
  registry: t.runtime.iconAdapters,
6585
6585
  children: /* @__PURE__ */ a(ar, {
6586
6586
  storage: null,
6587
- children: /* @__PURE__ */ a(yh, {
6587
+ children: /* @__PURE__ */ a(wh, {
6588
6588
  structure: e.structure,
6589
6589
  navigation: e.navigation,
6590
6590
  module: e.navigationModule,
@@ -6639,25 +6639,25 @@ var kh = () => {
6639
6639
  "aria-hidden": "true",
6640
6640
  title: i.moveHandle(I),
6641
6641
  onDragStart: (Z) => {
6642
- f(e.selectedId), tm(Z, e.selectedId, I);
6642
+ f(e.selectedId), nm(Z, e.selectedId, I);
6643
6643
  },
6644
6644
  onDragEnd: v,
6645
- children: /* @__PURE__ */ a(ml, { "aria-hidden": "true" })
6645
+ children: /* @__PURE__ */ a(hl, { "aria-hidden": "true" })
6646
6646
  }),
6647
- m && /* @__PURE__ */ a(_m, {
6647
+ m && /* @__PURE__ */ a($m, {
6648
6648
  feedback: m,
6649
6649
  deniedText: i.dropDenied
6650
6650
  }),
6651
- /* @__PURE__ */ a(Bm, {
6651
+ /* @__PURE__ */ a(jm, {
6652
6652
  surface: l,
6653
6653
  markers: T
6654
6654
  }),
6655
- /* @__PURE__ */ a(vh, {
6655
+ /* @__PURE__ */ a(bh, {
6656
6656
  surface: l,
6657
6657
  controller: e,
6658
6658
  strings: F
6659
6659
  }),
6660
- r && /* @__PURE__ */ a(mh, {
6660
+ r && /* @__PURE__ */ a(hh, {
6661
6661
  surface: l,
6662
6662
  state: E,
6663
6663
  controller: e,
@@ -6683,14 +6683,14 @@ var kh = () => {
6683
6683
  "data-dirty": e.isDirty ? "" : void 0,
6684
6684
  children: e.isDirty ? n.unsavedChanges : n.allChangesSaved
6685
6685
  }),
6686
- /* @__PURE__ */ a(Cm, {
6686
+ /* @__PURE__ */ a(Nm, {
6687
6687
  windowSize: o.size,
6688
6688
  available: o.available,
6689
6689
  strings: n,
6690
6690
  onResize: o.setSize
6691
6691
  }),
6692
6692
  s && /* @__PURE__ */ a(tt, {
6693
- icon: /* @__PURE__ */ a(Ol, { "aria-hidden": "true" }),
6693
+ icon: /* @__PURE__ */ a(Rl, { "aria-hidden": "true" }),
6694
6694
  "aria-label": n.save,
6695
6695
  title: n.save,
6696
6696
  variant: "ghost",
@@ -6699,7 +6699,7 @@ var kh = () => {
6699
6699
  onClick: s
6700
6700
  }),
6701
6701
  /* @__PURE__ */ a(tt, {
6702
- icon: /* @__PURE__ */ a($l, { "aria-hidden": "true" }),
6702
+ icon: /* @__PURE__ */ a(Ll, { "aria-hidden": "true" }),
6703
6703
  "aria-label": n.undo,
6704
6704
  title: n.undo,
6705
6705
  variant: "ghost",
@@ -6708,7 +6708,7 @@ var kh = () => {
6708
6708
  onClick: e.undo
6709
6709
  }),
6710
6710
  /* @__PURE__ */ a(tt, {
6711
- icon: /* @__PURE__ */ a(Pl, { "aria-hidden": "true" }),
6711
+ icon: /* @__PURE__ */ a(xl, { "aria-hidden": "true" }),
6712
6712
  "aria-label": n.redo,
6713
6713
  title: n.redo,
6714
6714
  variant: "ghost",
@@ -6717,7 +6717,7 @@ var kh = () => {
6717
6717
  onClick: e.redo
6718
6718
  }),
6719
6719
  /* @__PURE__ */ a(tt, {
6720
- icon: /* @__PURE__ */ a(_l, { "aria-hidden": "true" }),
6720
+ icon: /* @__PURE__ */ a($l, { "aria-hidden": "true" }),
6721
6721
  "aria-label": n.deleteElement,
6722
6722
  title: n.deleteElement,
6723
6723
  variant: "ghost",
@@ -6740,7 +6740,7 @@ var kh = () => {
6740
6740
  role: "group",
6741
6741
  "aria-label": n.windowLabel,
6742
6742
  children: [
6743
- /* @__PURE__ */ a(wm, { controls: u }),
6743
+ /* @__PURE__ */ a(km, { controls: u }),
6744
6744
  r && /* @__PURE__ */ y("p", {
6745
6745
  className: "studio-screen-editor-window__notice",
6746
6746
  role: "alert",
@@ -6759,7 +6759,7 @@ var kh = () => {
6759
6759
  width: o.size.width,
6760
6760
  minHeight: o.size.height - Li
6761
6761
  } : void 0,
6762
- children: /* @__PURE__ */ a(Ch, {
6762
+ children: /* @__PURE__ */ a(Nh, {
6763
6763
  controller: e,
6764
6764
  environment: t,
6765
6765
  resolveBinding: () => {
@@ -6773,7 +6773,7 @@ var kh = () => {
6773
6773
  ]
6774
6774
  });
6775
6775
  };
6776
- function Nh(e, t, n) {
6776
+ function Th(e, t, n) {
6777
6777
  const o = e.screens.find((l) => l.name === ke);
6778
6778
  if (!o || o.screenTemplate === t?.name) return e;
6779
6779
  const i = o.screenTemplate, r = e.screens.map((l) => {
@@ -6784,14 +6784,14 @@ function Nh(e, t, n) {
6784
6784
  screenTemplate: t.name
6785
6785
  } : u;
6786
6786
  });
6787
- let s = e.screenTemplates.filter((l) => !Th(l, i, r, n));
6787
+ let s = e.screenTemplates.filter((l) => !Ih(l, i, r, n));
6788
6788
  return t && !s.some((l) => l.name === t.name) && (s = [...s, globalThis.structuredClone(t)]), {
6789
6789
  ...e,
6790
6790
  screens: r,
6791
6791
  screenTemplates: s
6792
6792
  };
6793
6793
  }
6794
- function Th(e, t, n, o) {
6794
+ function Ih(e, t, n, o) {
6795
6795
  if (e.name !== t || n.some((r) => r.screenTemplate === t)) return !1;
6796
6796
  const i = o.find((r) => r.name === t);
6797
6797
  return i !== void 0 && JSON.stringify(i) === JSON.stringify(e);
@@ -6827,14 +6827,14 @@ function Na(e) {
6827
6827
  top: o
6828
6828
  } : void 0;
6829
6829
  }
6830
- function Ih(e) {
6830
+ function Ph(e) {
6831
6831
  const { [qe]: t, [Ke]: n, ...o } = e.properties ?? {};
6832
6832
  return {
6833
6833
  ...e,
6834
6834
  properties: o
6835
6835
  };
6836
6836
  }
6837
- function Ph(e) {
6837
+ function xh(e) {
6838
6838
  if (e.targetParentId !== null)
6839
6839
  return {
6840
6840
  kind: V.MoveNode,
@@ -6851,7 +6851,7 @@ function Ta(e, t, n) {
6851
6851
  element: n
6852
6852
  };
6853
6853
  }
6854
- function xh(e) {
6854
+ function Oh(e) {
6855
6855
  return {
6856
6856
  kind: V.RemoveNode,
6857
6857
  nodeId: oe(e)
@@ -6865,18 +6865,18 @@ var Ia = (e, t) => (e?.children ?? []).map((n) => {
6865
6865
  bottom: o?.bottom
6866
6866
  };
6867
6867
  });
6868
- function Oh(e, t, n, o) {
6868
+ function Rh(e, t, n, o) {
6869
6869
  const i = Le(e, t.nodeId);
6870
6870
  if (!i || t.targetParentId === null) return;
6871
6871
  const r = eo(e, t.nodeId), s = Le(e, t.targetParentId), l = !!r && at(r), c = !!s && at(s);
6872
6872
  if (!l && !c) return;
6873
- const u = l && c && r.id === t.targetParentId, d = u ? r.children.findIndex((h) => h.id === t.nodeId) : t.index, p = c ? Ca(i, n ?? (u ? Na(i) : void 0) ?? Sa(Ia(s, o))) : Ih(i);
6873
+ const u = l && c && r.id === t.targetParentId, d = u ? r.children.findIndex((h) => h.id === t.nodeId) : t.index, p = c ? Ca(i, n ?? (u ? Na(i) : void 0) ?? Sa(Ia(s, o))) : Ph(i);
6874
6874
  return [{
6875
6875
  kind: V.RemoveNode,
6876
6876
  nodeId: oe(t.nodeId)
6877
6877
  }, Ta(t.targetParentId, d, p)];
6878
6878
  }
6879
- function Rh(e) {
6879
+ function Dh(e) {
6880
6880
  switch (e) {
6881
6881
  case H.Row:
6882
6882
  case H.Wrap:
@@ -6891,7 +6891,7 @@ function Rh(e) {
6891
6891
  }
6892
6892
  }
6893
6893
  function Bi(e, t, n, o) {
6894
- const i = e ?? "screen", r = Rh(n), s = {
6894
+ const i = e ?? "screen", r = Dh(n), s = {
6895
6895
  id: `${i}:container`,
6896
6896
  kind: we.Container,
6897
6897
  containerId: e,
@@ -6910,7 +6910,7 @@ function Bi(e, t, n, o) {
6910
6910
  ...c < t.length ? { beforeId: o.idOf(t[c]) } : {}
6911
6911
  }))];
6912
6912
  }
6913
- function Dh(e, t, n) {
6913
+ function Eh(e, t, n) {
6914
6914
  const o = (i) => i.flatMap((r) => {
6915
6915
  if (!n.acceptsChildren(r)) return [];
6916
6916
  const s = n.childrenOf(r);
@@ -6918,7 +6918,7 @@ function Dh(e, t, n) {
6918
6918
  });
6919
6919
  return [...Bi(null, e, t, n), ...o(e)];
6920
6920
  }
6921
- var Eh = class {
6921
+ var Fh = class {
6922
6922
  latest;
6923
6923
  publish;
6924
6924
  constructor(e, t) {
@@ -6931,7 +6931,7 @@ var Eh = class {
6931
6931
  return this.latest = e(this.latest), this.publish(this.latest), this.latest;
6932
6932
  }
6933
6933
  };
6934
- function Fh(e) {
6934
+ function Mh(e) {
6935
6935
  return {
6936
6936
  document: e,
6937
6937
  undoable: [],
@@ -6941,7 +6941,7 @@ function Fh(e) {
6941
6941
  savedDocument: e
6942
6942
  };
6943
6943
  }
6944
- function Mh(e, t, n, o) {
6944
+ function Ah(e, t, n, o) {
6945
6945
  const i = tr(e.document, t, n);
6946
6946
  return i.applied ? {
6947
6947
  ...e,
@@ -6971,7 +6971,7 @@ function Se(e, t, n) {
6971
6971
  isDirty: t !== e.savedDocument
6972
6972
  };
6973
6973
  }
6974
- function Ah(e, t, n, o) {
6974
+ function _h(e, t, n, o) {
6975
6975
  let i = e.document;
6976
6976
  const r = [];
6977
6977
  for (const s of t) {
@@ -6994,8 +6994,8 @@ function Ah(e, t, n, o) {
6994
6994
  isDirty: i !== e.savedDocument
6995
6995
  };
6996
6996
  }
6997
- var _h = (e) => e.undoable.length > 0, $h = (e) => e.redoable.length > 0;
6998
- function Lh(e) {
6997
+ var $h = (e) => e.undoable.length > 0, Lh = (e) => e.redoable.length > 0;
6998
+ function Bh(e) {
6999
6999
  const t = e.undoable[e.undoable.length - 1];
7000
7000
  return t ? {
7001
7001
  ...e,
@@ -7009,7 +7009,7 @@ function Lh(e) {
7009
7009
  isDirty: t.before !== e.savedDocument
7010
7010
  } : e;
7011
7011
  }
7012
- function Bh(e) {
7012
+ function jh(e) {
7013
7013
  const t = e.redoable[e.redoable.length - 1];
7014
7014
  return t ? {
7015
7015
  ...e,
@@ -7023,7 +7023,7 @@ function Bh(e) {
7023
7023
  isDirty: t.before !== e.savedDocument
7024
7024
  } : e;
7025
7025
  }
7026
- function jh(e) {
7026
+ function Uh(e) {
7027
7027
  return {
7028
7028
  ...e,
7029
7029
  savedDocument: e.document,
@@ -7046,7 +7046,7 @@ function mt(e, t, n) {
7046
7046
  Array.isArray(i) && mt(i, t, n);
7047
7047
  }
7048
7048
  }
7049
- var Zn = (e) => e.id, Uh = (e) => e.name || Zn(e), Wh = (e) => {
7049
+ var Zn = (e) => e.id, Wh = (e) => e.name || Zn(e), zh = (e) => {
7050
7050
  switch (e) {
7051
7051
  case B.Stack:
7052
7052
  return H.Column;
@@ -7064,10 +7064,10 @@ var Zn = (e) => e.id, Uh = (e) => e.name || Zn(e), Wh = (e) => {
7064
7064
  return;
7065
7065
  }
7066
7066
  };
7067
- function zh(e) {
7067
+ function qh(e) {
7068
7068
  return {
7069
7069
  idOf: Zn,
7070
- nameOf: Uh,
7070
+ nameOf: Wh,
7071
7071
  childrenOf: Jt,
7072
7072
  withChildren: (t, n) => At(t) ? {
7073
7073
  ...t,
@@ -7078,13 +7078,13 @@ function zh(e) {
7078
7078
  } : t,
7079
7079
  acceptsChildren: (t) => At(t),
7080
7080
  ownershipOf: (t) => e(Zn(t)) ?? ne.Local,
7081
- arrangementOf: (t) => At(t) ? Wh(xr(t)) : void 0
7081
+ arrangementOf: (t) => At(t) ? zh(xr(t)) : void 0
7082
7082
  };
7083
7083
  }
7084
- function qh(e) {
7084
+ function Kh(e) {
7085
7085
  return e ? at(e) ? H.Freeform : so(e) ? H.Grid : lo(e) ? e.orientation === rt.Horizontal ? H.Row : H.Column : H.Column : H.Column;
7086
7086
  }
7087
- var Kh = (e, t) => Math.max(0, Math.min(e, t));
7087
+ var Gh = (e, t) => Math.max(0, Math.min(e, t));
7088
7088
  function Ui(e, t, n) {
7089
7089
  const o = ye(e, t.nodeId, n);
7090
7090
  if (!o) return te.NodeNotFound;
@@ -7100,24 +7100,24 @@ function Ui(e, t, n) {
7100
7100
  }
7101
7101
  if ((o.parent === null ? null : n.idOf(o.parent)) === t.targetParentId) {
7102
7102
  const r = i.length - 1;
7103
- if (Kh(t.index, r) === o.index) return te.NoChange;
7103
+ if (Gh(t.index, r) === o.index) return te.NoChange;
7104
7104
  }
7105
7105
  }
7106
- var Gh = "composition";
7106
+ var Hh = "composition";
7107
7107
  function Xn(e, t) {
7108
- const n = e.screens.find((s) => s.name === ke), o = t !== void 0 ? An(t, !0) : An(void 0), i = co(e, o).levels.filter((s) => s.kind === rs.ScreenTemplate).map((s) => s.owner), r = [];
7108
+ const n = e.screens.find((s) => s.name === ke), o = t !== void 0 ? An(t, !0) : An(void 0), i = co(e, o).levels.filter((s) => s.kind === as.ScreenTemplate).map((s) => s.owner), r = [];
7109
7109
  for (const s of i) {
7110
7110
  const l = e.screenTemplates.find((c) => c.name === s);
7111
7111
  if (l)
7112
7112
  for (const c of l.slots) r.push(...l.content?.[c.name] ?? []);
7113
7113
  }
7114
7114
  return (t === void 0 || o.kind === qt.Screen) && r.push(...n?.slotContent.content ?? []), {
7115
- element: Vt(B.Stack, Gh, "Composition", r),
7115
+ element: Vt(B.Stack, Hh, "Composition", r),
7116
7116
  roots: r,
7117
7117
  templates: i
7118
7118
  };
7119
7119
  }
7120
- function Hh(e) {
7120
+ function Vh(e) {
7121
7121
  switch (e) {
7122
7122
  case jo.Inherited:
7123
7123
  return ne.Inherited;
@@ -7127,15 +7127,15 @@ function Hh(e) {
7127
7127
  return ne.Local;
7128
7128
  }
7129
7129
  }
7130
- function Vh(e, t, n) {
7130
+ function Jh(e, t, n) {
7131
7131
  const o = /* @__PURE__ */ new Map();
7132
- for (const i of Aa(t)) {
7132
+ for (const i of _a(t)) {
7133
7133
  const r = ao(e, oe(i), n);
7134
- o.set(i, r ? Hh(r.provenance.kind) : ne.Inherited);
7134
+ o.set(i, r ? Vh(r.provenance.kind) : ne.Inherited);
7135
7135
  }
7136
7136
  return (i) => o.get(i) ?? ne.Local;
7137
7137
  }
7138
- function Jh(e) {
7138
+ function Qh(e) {
7139
7139
  const [t, n] = W({
7140
7140
  catalog: e,
7141
7141
  times: 0
@@ -7153,10 +7153,10 @@ function Jh(e) {
7153
7153
  };
7154
7154
  }, [e]), t.catalog === e ? t.times : 0;
7155
7155
  }
7156
- var Qh = { modules: [] }, Yh = (e, t) => eo(e, t)?.id;
7156
+ var Yh = { modules: [] }, Zh = (e, t) => eo(e, t)?.id;
7157
7157
  function Pa(e, t, n, o) {
7158
- const [i, r] = W(() => Fh(e.document)), s = J(void 0);
7159
- s.current ??= new Eh(i, r);
7158
+ const [i, r] = W(() => Mh(e.document)), s = J(void 0);
7159
+ s.current ??= new Fh(i, r);
7160
7160
  const l = U((M) => s.current.commit(M), []), [c, u] = W(), [d, p] = W(), [h, m] = W(n.navigation?.module), g = J(void 0), f = U((M, z) => {
7161
7161
  const $ = g.current?.(M), j = g.current?.(z);
7162
7162
  return $ && j ? {
@@ -7165,7 +7165,7 @@ function Pa(e, t, n, o) {
7165
7165
  } : void 0;
7166
7166
  }, []), v = U((M) => {
7167
7167
  g.current = M;
7168
- }, []), P = Jh(n.runtime.icons), x = L(() => ({
7168
+ }, []), P = Qh(n.runtime.icons), x = L(() => ({
7169
7169
  catalog: n.runtime.catalog,
7170
7170
  scope: An(t, t !== void 0),
7171
7171
  queryCandidates: [...n.queryCandidates],
@@ -7174,11 +7174,11 @@ function Pa(e, t, n, o) {
7174
7174
  n,
7175
7175
  t,
7176
7176
  P
7177
- ]), O = L(() => Xn(i.document, t), [i.document, t]), T = L(() => Vh(i.document, O.roots, x), [
7177
+ ]), O = L(() => Xn(i.document, t), [i.document, t]), T = L(() => Jh(i.document, O.roots, x), [
7178
7178
  i.document,
7179
7179
  O,
7180
7180
  x
7181
- ]), w = L(() => zh(T), [T]), b = ct(i.document, t), C = L(() => Dh(O.roots, qh(b), w).filter((M) => M.containerId !== null), [
7181
+ ]), w = L(() => qh(T), [T]), b = ct(i.document, t), C = L(() => Eh(O.roots, Kh(b), w).filter((M) => M.containerId !== null), [
7182
7182
  O,
7183
7183
  b,
7184
7184
  w
@@ -7187,7 +7187,7 @@ function Pa(e, t, n, o) {
7187
7187
  c,
7188
7188
  x
7189
7189
  ]), S = U((M, z) => {
7190
- const $ = s.current.current, j = l((ee) => Mh(ee, M, x, z));
7190
+ const $ = s.current.current, j = l((ee) => Ah(ee, M, x, z));
7191
7191
  return {
7192
7192
  applied: j.undoable.length > $.undoable.length || j.document !== $.document,
7193
7193
  diagnostics: j.diagnostics
@@ -7195,7 +7195,7 @@ function Pa(e, t, n, o) {
7195
7195
  }, [l, x]), E = U((M, z) => {
7196
7196
  S(M, z);
7197
7197
  }, [S]), _ = U((M, z) => {
7198
- const $ = s.current.current, j = l((ee) => Ah(ee, M, x, z));
7198
+ const $ = s.current.current, j = l((ee) => _h(ee, M, x, z));
7199
7199
  return {
7200
7200
  applied: j.document !== $.document,
7201
7201
  diagnostics: j.diagnostics
@@ -7211,18 +7211,18 @@ function Pa(e, t, n, o) {
7211
7211
  const q = U((M, z, $, j, ee, ce) => {
7212
7212
  const Ae = k(z, $);
7213
7213
  if (!Ae.parent) return;
7214
- const Ge = Le(Xn(s.current.current.document, t).roots, Ae.parent), Fa = Ge && at(Ge) ? Ca(M, ee ?? Sa(Ia(Ge, f))) : M;
7215
- S(Ta(Ae.parent, Ae.index, Fa), j).applied && (u(M.id), ce && I.current?.(ce));
7214
+ const Ge = Le(Xn(s.current.current.document, t).roots, Ae.parent), Ma = Ge && at(Ge) ? Ca(M, ee ?? Sa(Ia(Ge, f))) : M;
7215
+ S(Ta(Ae.parent, Ae.index, Ma), j).applied && (u(M.id), ce && I.current?.(ce));
7216
7216
  }, [
7217
7217
  S,
7218
7218
  k,
7219
7219
  t,
7220
7220
  f
7221
7221
  ]), G = U((M, z) => {
7222
- const $ = Oh(O.roots, M, z, f), j = Ui(O.roots, M, w);
7223
- if (j && !(j === te.NoChange && $ && M.targetParentId === Yh(O.roots, M.nodeId))) return j;
7222
+ const $ = Rh(O.roots, M, z, f), j = Ui(O.roots, M, w);
7223
+ if (j && !(j === te.NoChange && $ && M.targetParentId === Zh(O.roots, M.nodeId))) return j;
7224
7224
  if ($) return _($, "Move").applied ? void 0 : te.NodeLocked;
7225
- const ee = Ph(M);
7225
+ const ee = xh(M);
7226
7226
  return ee ? S(ee, "Move").applied ? void 0 : te.NodeLocked : te.TargetNotContainer;
7227
7227
  }, [
7228
7228
  O,
@@ -7272,17 +7272,17 @@ function Pa(e, t, n, o) {
7272
7272
  dialogTemplates: M
7273
7273
  }, z));
7274
7274
  }, [l]), Me = U((M, z, $, j, ee) => {
7275
- l((ce) => Se(ce, ji(ce.document, M, (Ae) => Zh(Ae, z, $, j)), ee));
7275
+ l((ce) => Se(ce, ji(ce.document, M, (Ae) => Xh(Ae, z, $, j)), ee));
7276
7276
  }, [l]), Z = U((M, z) => {
7277
7277
  const $ = n.runtime.bundles.flatMap((j) => j.screenTemplates ?? []);
7278
- l((j) => Se(j, Nh(j.document, M, $), z));
7278
+ l((j) => Se(j, Th(j.document, M, $), z));
7279
7279
  }, [l, n.runtime.bundles]), R = U((M, z, $) => {
7280
7280
  l((j) => Se(j, ji(j.document, M, (ee) => {
7281
7281
  z ? ee.behaviors = z : delete ee.behaviors;
7282
7282
  }), $));
7283
- }, [l]), X = L(() => vi(i.document), [i.document]), re = n.navigation?.structure ?? Qh, ue = U((M, z) => {
7284
- const $ = ps(vi(s.current.current.document), M);
7285
- return $.applied ? (l((j) => Se(j, kp(j.document, $.model), z)), { applied: !0 }) : {
7283
+ }, [l]), X = L(() => vi(i.document), [i.document]), re = n.navigation?.structure ?? Yh, ue = U((M, z) => {
7284
+ const $ = ms(vi(s.current.current.document), M);
7285
+ return $.applied ? (l((j) => Se(j, Sp(j.document, $.model), z)), { applied: !0 }) : {
7286
7286
  applied: !1,
7287
7287
  rejected: $.rejected
7288
7288
  };
@@ -7322,7 +7322,7 @@ function Pa(e, t, n, o) {
7322
7322
  remove: (M) => {
7323
7323
  if (!Ln(O.roots, M, w)) return;
7324
7324
  const z = Dr(O.roots, M, w);
7325
- S(xh(M), "Remove").applied && u(($) => $ === M || $ === void 0 ? z : $);
7325
+ S(Oh(M), "Remove").applied && u(($) => $ === M || $ === void 0 ? z : $);
7326
7326
  },
7327
7327
  canRemove: (M) => Ln(O.roots, M, w),
7328
7328
  setProperty: (M, z) => c && E(qn(c, M, z), "Change"),
@@ -7334,24 +7334,24 @@ function Pa(e, t, n, o) {
7334
7334
  setElementBehaviors: R,
7335
7335
  setScreenTemplate: Z,
7336
7336
  markSaved: () => {
7337
- l(jh);
7337
+ l(Uh);
7338
7338
  },
7339
7339
  undo: () => {
7340
- l(Lh);
7340
+ l(Bh);
7341
7341
  },
7342
7342
  redo: () => {
7343
- l(Bh);
7343
+ l(jh);
7344
7344
  },
7345
- canUndo: _h(i),
7346
- canRedo: $h(i),
7345
+ canUndo: $h(i),
7346
+ canRedo: Lh(i),
7347
7347
  isDirty: i.isDirty
7348
7348
  };
7349
7349
  }
7350
- function Zh(e, t, n, o) {
7350
+ function Xh(e, t, n, o) {
7351
7351
  const i = e.properties[t];
7352
- Array.isArray(i) && (e.properties[t] = i.map((r) => xa(r) && r.id === n ? Xh(r, o) : r));
7352
+ Array.isArray(i) && (e.properties[t] = i.map((r) => xa(r) && r.id === n ? ef(r, o) : r));
7353
7353
  }
7354
- function Xh(e, t) {
7354
+ function ef(e, t) {
7355
7355
  if (xa(e.values)) {
7356
7356
  const o = { ...e.values };
7357
7357
  return t ? o.destination = t : delete o.destination, {
@@ -7368,13 +7368,13 @@ function xa(e) {
7368
7368
  var Wi = () => ({
7369
7369
  width: window.innerWidth - 64,
7370
7370
  height: window.innerHeight - 64
7371
- }), fb = (e) => /* @__PURE__ */ a(sa, {
7371
+ }), gb = (e) => /* @__PURE__ */ a(sa, {
7372
7372
  strings: e.strings,
7373
7373
  onClose: () => e.onDismiss?.(),
7374
- children: /* @__PURE__ */ a(ef, { ...e })
7375
- }), ef = (e) => {
7374
+ children: /* @__PURE__ */ a(tf, { ...e })
7375
+ }), tf = (e) => {
7376
7376
  const t = L(() => ra(e.subject, e.environment.runtime), [e.subject, e.environment.runtime]);
7377
- return t.opened ? /* @__PURE__ */ a(tf, {
7377
+ return t.opened ? /* @__PURE__ */ a(nf, {
7378
7378
  ...e,
7379
7379
  opened: t.subject
7380
7380
  }, e.environment.runtime.id) : /* @__PURE__ */ a(Yi, {
@@ -7388,8 +7388,8 @@ var Wi = () => ({
7388
7388
  onClose: () => n.close()
7389
7389
  })
7390
7390
  });
7391
- }, tf = ({ subject: e, environment: t, strings: n, layoutLabels: o, icons: i, paletteSources: r, sourceRect: s, initialSize: l, rememberWindowAs: c, windowMemory: u, centerOffsetX: d, renderPaletteHost: p, onClose: h, onBeforeClose: m, opened: g }) => {
7392
- const f = J(void 0), v = Pa(g, e.authoringTemplate, t, (I) => f.current?.(I)), P = L(() => u ?? fm(), [u]), x = L(() => bm({
7391
+ }, nf = ({ subject: e, environment: t, strings: n, layoutLabels: o, icons: i, paletteSources: r, sourceRect: s, initialSize: l, rememberWindowAs: c, windowMemory: u, centerOffsetX: d, renderPaletteHost: p, onClose: h, onBeforeClose: m, opened: g }) => {
7392
+ const f = J(void 0), v = Pa(g, e.authoringTemplate, t, (I) => f.current?.(I)), P = L(() => u ?? gm(), [u]), x = L(() => ym({
7393
7393
  remembered: c ? P.read(c) : void 0,
7394
7394
  saved: l,
7395
7395
  lastUsed: P.readLastUsed()
@@ -7458,7 +7458,7 @@ var Wi = () => ({
7458
7458
  f.current = _;
7459
7459
  function k(I) {
7460
7460
  if (!Oo(I)) return;
7461
- const q = v.selection && nf(v) ? v.selectedId : void 0;
7461
+ const q = v.selection && of(v) ? v.selectedId : void 0;
7462
7462
  I.kind === "layout" ? v.insertLayout(I.item, q, void 0) : v.insertComponent(Do(I.componentName, I.package), q, void 0);
7463
7463
  }
7464
7464
  return /* @__PURE__ */ y(ua, {
@@ -7505,11 +7505,11 @@ var Wi = () => ({
7505
7505
  })]
7506
7506
  });
7507
7507
  };
7508
- function nf(e) {
7508
+ function of(e) {
7509
7509
  return !!e.selection && "children" in e.selection;
7510
7510
  }
7511
7511
  var Ze = (e) => typeof e == "object" && e !== null && !Array.isArray(e);
7512
- function of(e, t) {
7512
+ function rf(e, t) {
7513
7513
  if (!t) return e;
7514
7514
  const n = { ...e };
7515
7515
  for (const [o, i] of Object.entries(t)) {
@@ -7528,115 +7528,115 @@ function of(e, t) {
7528
7528
  var Xe = "p-anchored-overlay", Mt = "p-collapsible", xn = "p-overlay-mask", D = (e, t) => ({ props: t ? {
7529
7529
  styles: e,
7530
7530
  motionProps: { name: t }
7531
- } : { styles: e } }), de = (e) => ({ props: { motionProps: { name: e } } }), rf = {
7532
- "Accordion.Root": D(Zl, Mt),
7533
- "AutoComplete.Root": D(Xl),
7531
+ } : { styles: e } }), de = (e) => ({ props: { motionProps: { name: e } } }), af = {
7532
+ "Accordion.Root": D(Xl, Mt),
7533
+ "AutoComplete.Root": D(ec),
7534
7534
  "AutoComplete.Popup": de(Xe),
7535
- "Avatar.Root": D(ec),
7536
- AvatarGroup: D(tc),
7537
- Badge: D(nc),
7538
- "Breadcrumb.Root": D(oc),
7539
- Button: D(ic),
7540
- ButtonGroup: D(rc),
7541
- "Card.Root": D(ac),
7542
- "Carousel.Root": D(sc),
7543
- "Checkbox.Root": D(lc),
7544
- CheckboxGroup: D(cc),
7545
- "Chip.Root": D(dc),
7546
- "Compare.Root": D(uc),
7547
- "ContextMenu.Root": D(pc),
7535
+ "Avatar.Root": D(tc),
7536
+ AvatarGroup: D(nc),
7537
+ Badge: D(oc),
7538
+ "Breadcrumb.Root": D(ic),
7539
+ Button: D(rc),
7540
+ ButtonGroup: D(ac),
7541
+ "Card.Root": D(sc),
7542
+ "Carousel.Root": D(lc),
7543
+ "Checkbox.Root": D(cc),
7544
+ CheckboxGroup: D(dc),
7545
+ "Chip.Root": D(uc),
7546
+ "Compare.Root": D(pc),
7547
+ "ContextMenu.Root": D(mc),
7548
7548
  "ContextMenu.Popup": de(Xe),
7549
- "DataTable.Root": D(mc),
7550
- "DataView.Root": D(hc),
7551
- "DatePicker.Root": D(fc),
7549
+ "DataTable.Root": D(hc),
7550
+ "DataView.Root": D(fc),
7551
+ "DatePicker.Root": D(gc),
7552
7552
  "DatePicker.Popup": de(Xe),
7553
- "Dialog.Root": D(gc),
7553
+ "Dialog.Root": D(vc),
7554
7554
  "Dialog.Backdrop": de(xn),
7555
7555
  "Dialog.Popup": de("p-dialog"),
7556
- Divider: D(vc),
7557
- "Drawer.Root": D(bc),
7556
+ Divider: D(bc),
7557
+ "Drawer.Root": D(yc),
7558
7558
  "Drawer.Backdrop": de(xn),
7559
7559
  "Drawer.Popup": de("p-drawer"),
7560
- "Fieldset.Root": D(yc, Mt),
7561
- "FileUpload.Root": D(wc),
7562
- FloatLabel: D(kc),
7563
- Fluid: D(Sc),
7564
- "Gallery.Root": D(Cc),
7565
- "IconField.Root": D(Nc),
7566
- IftaLabel: D(Tc),
7567
- "Inplace.Root": D(Ic),
7568
- "InputColor.Root": D(Pc),
7569
- "InputGroup.Root": D(xc),
7570
- "InputNumber.Root": D(Oc),
7571
- "InputOtp.Root": D(Rc),
7572
- InputPassword: D(qc),
7573
- "InputTags.Root": D(Dc),
7574
- InputText: D(Ec),
7575
- "Knob.Root": D(Fc),
7576
- Label: D(Mc),
7577
- "Listbox.Root": D(Ac),
7578
- "Menu.Root": D(_c),
7560
+ "Fieldset.Root": D(wc, Mt),
7561
+ "FileUpload.Root": D(kc),
7562
+ FloatLabel: D(Sc),
7563
+ Fluid: D(Cc),
7564
+ "Gallery.Root": D(Nc),
7565
+ "IconField.Root": D(Tc),
7566
+ IftaLabel: D(Ic),
7567
+ "Inplace.Root": D(Pc),
7568
+ "InputColor.Root": D(xc),
7569
+ "InputGroup.Root": D(Oc),
7570
+ "InputNumber.Root": D(Rc),
7571
+ "InputOtp.Root": D(Dc),
7572
+ InputPassword: D(Kc),
7573
+ "InputTags.Root": D(Ec),
7574
+ InputText: D(Fc),
7575
+ "Knob.Root": D(Mc),
7576
+ Label: D(Ac),
7577
+ "Listbox.Root": D(_c),
7578
+ "Menu.Root": D($c),
7579
7579
  "Menu.Popup": de(Xe),
7580
- "Message.Root": D($c),
7581
- "MeterGroup.Root": D(Lc),
7582
- NavigationMenu: D(Bc),
7583
- "OrganizationChart.Root": D(jc),
7584
- OverlayBadge: D(Uc),
7585
- "Paginator.Root": D(Wc),
7586
- "Panel.Root": D(zc, Mt),
7587
- "Popover.Root": D(Kc),
7580
+ "Message.Root": D(Lc),
7581
+ "MeterGroup.Root": D(Bc),
7582
+ NavigationMenu: D(jc),
7583
+ "OrganizationChart.Root": D(Uc),
7584
+ OverlayBadge: D(Wc),
7585
+ "Paginator.Root": D(zc),
7586
+ "Panel.Root": D(qc, Mt),
7587
+ "Popover.Root": D(Gc),
7588
7588
  "Popover.Popup": de(Xe),
7589
- "ProgressBar.Root": D(Gc),
7590
- "ProgressSpinner.Root": D(Hc),
7591
- "RadioButton.Root": D(Vc),
7592
- RadioButtonGroup: D(Jc),
7593
- "Rating.Root": D(Qc),
7594
- "ScrollArea.Root": D(Yc),
7595
- "Select.Root": D(Zc),
7589
+ "ProgressBar.Root": D(Hc),
7590
+ "ProgressSpinner.Root": D(Vc),
7591
+ "RadioButton.Root": D(Jc),
7592
+ RadioButtonGroup: D(Qc),
7593
+ "Rating.Root": D(Yc),
7594
+ "ScrollArea.Root": D(Zc),
7595
+ "Select.Root": D(Xc),
7596
7596
  "Select.Popup": de(Xe),
7597
- "Sidebar.Root": D(ed),
7598
- "Sidebar.Layout": D(Xc),
7597
+ "Sidebar.Root": D(td),
7598
+ "Sidebar.Layout": D(ed),
7599
7599
  "Sidebar.Backdrop": de(xn),
7600
- Skeleton: D(td),
7601
- "Slider.Root": D(nd),
7602
- "SpeedDial.Root": D(od),
7603
- "Splitter.Root": D(id),
7604
- "Stepper.Root": D(rd, Mt),
7605
- "Tabs.Root": D(ad),
7606
- Tag: D(sd),
7607
- "Terminal.Root": D(ld),
7608
- Textarea: D(cd),
7609
- "Timeline.Root": D(dd),
7610
- "Toast.Root": D(ud),
7611
- "Toaster.Root": D(pd),
7612
- "ToggleButton.Root": D(md),
7613
- ToggleButtonGroup: D(hd),
7614
- "ToggleSwitch.Root": D(fd),
7615
- "Toolbar.Root": D(gd),
7616
- "Tooltip.Root": D(vd),
7600
+ Skeleton: D(nd),
7601
+ "Slider.Root": D(od),
7602
+ "SpeedDial.Root": D(id),
7603
+ "Splitter.Root": D(rd),
7604
+ "Stepper.Root": D(ad, Mt),
7605
+ "Tabs.Root": D(sd),
7606
+ Tag: D(ld),
7607
+ "Terminal.Root": D(cd),
7608
+ Textarea: D(dd),
7609
+ "Timeline.Root": D(ud),
7610
+ "Toast.Root": D(pd),
7611
+ "Toaster.Root": D(md),
7612
+ "ToggleButton.Root": D(hd),
7613
+ ToggleButtonGroup: D(fd),
7614
+ "ToggleSwitch.Root": D(gd),
7615
+ "Toolbar.Root": D(vd),
7616
+ "Tooltip.Root": D(bd),
7617
7617
  "Tooltip.Popup": de("p-tooltip"),
7618
- "Tree.Root": D(bd)
7619
- }, af = Ko.find((e) => e.name === "lara-light-blue") ?? Ko[0], gb = ({ defaults: e, theme: t, ...n }) => {
7620
- const o = Vs(af);
7621
- return /* @__PURE__ */ a(Yl, {
7618
+ "Tree.Root": D(yd)
7619
+ }, sf = Ko.find((e) => e.name === "lara-light-blue") ?? Ko[0], vb = ({ defaults: e, theme: t, ...n }) => {
7620
+ const o = Js(sf);
7621
+ return /* @__PURE__ */ a(Zl, {
7622
7622
  ...n,
7623
7623
  theme: t ?? o?.theme,
7624
- defaults: of(rf, e)
7624
+ defaults: rf(af, e)
7625
7625
  });
7626
- }, vb = (e) => /* @__PURE__ */ a(sa, {
7626
+ }, bb = (e) => /* @__PURE__ */ a(sa, {
7627
7627
  strings: e.strings,
7628
7628
  onClose: e.onDismiss,
7629
- children: /* @__PURE__ */ a(sf, { ...e })
7630
- }), sf = (e) => {
7629
+ children: /* @__PURE__ */ a(lf, { ...e })
7630
+ }), lf = (e) => {
7631
7631
  const t = L(() => ra(e.subject, e.environment.runtime), [e.subject, e.environment.runtime]);
7632
- return t.opened ? /* @__PURE__ */ a(lf, {
7632
+ return t.opened ? /* @__PURE__ */ a(cf, {
7633
7633
  ...e,
7634
7634
  opened: t.subject
7635
7635
  }, e.environment.runtime.id) : /* @__PURE__ */ a(la, {
7636
7636
  problem: t.problem,
7637
7637
  strings: e.strings
7638
7638
  });
7639
- }, lf = ({ subject: e, environment: t, strings: n, layoutLabels: o, icons: i, paletteSources: r, initialSize: s, onChange: l, renderPaletteHost: c, opened: u }) => {
7639
+ }, cf = ({ subject: e, environment: t, strings: n, layoutLabels: o, icons: i, paletteSources: r, initialSize: s, onChange: l, renderPaletteHost: c, opened: u }) => {
7640
7640
  const d = J(void 0), p = Pa(u, e.authoringTemplate, t, (T) => d.current?.(T)), [h, m] = W(s ?? on[We.Desktop]), [g, f] = W(!0), v = J(l);
7641
7641
  v.current = l, se(() => {
7642
7642
  const T = ct(p.document, e.authoringTemplate);
@@ -7716,7 +7716,7 @@ var Xe = "p-anchored-overlay", Mt = "p-collapsible", xn = "p-overlay-mask", D =
7716
7716
  })
7717
7717
  });
7718
7718
  };
7719
- function cf(e) {
7719
+ function df(e) {
7720
7720
  const t = {
7721
7721
  "row.id": "Guid",
7722
7722
  "selection.id": "Guid"
@@ -7724,26 +7724,26 @@ function cf(e) {
7724
7724
  for (const n of e) for (const o of n.parameters) t[`route.${o.name}`] ??= o.type;
7725
7725
  return t;
7726
7726
  }
7727
- var df = new Set(Object.values(is)), uf = new Set(Object.values(os));
7728
- function pf(e) {
7729
- return e.filter((t) => df.has(t.resultShape) && t.origin.every((n) => uf.has(n.kind))).map((t) => t);
7727
+ var uf = new Set(Object.values(rs)), pf = new Set(Object.values(is));
7728
+ function mf(e) {
7729
+ return e.filter((t) => uf.has(t.resultShape) && t.origin.every((n) => pf.has(n.kind))).map((t) => t);
7730
7730
  }
7731
- function bb(e) {
7732
- const t = pf(e.queryCandidates ?? []);
7731
+ function yb(e) {
7732
+ const t = mf(e.queryCandidates ?? []);
7733
7733
  return {
7734
7734
  runtime: e.runtime,
7735
7735
  queryCandidates: t,
7736
7736
  stateChangeSlices: e.stateChangeSlices ?? [],
7737
7737
  destinations: e.destinations ?? [],
7738
- availableSources: cf(t),
7739
- ...e.richText === !1 ? {} : { richText: e.richText ?? yd },
7738
+ availableSources: df(t),
7739
+ ...e.richText === !1 ? {} : { richText: e.richText ?? wd },
7740
7740
  ...e.fileUpload ? { fileUpload: e.fileUpload } : {},
7741
7741
  ...e.templateScope ? { templateScope: e.templateScope } : {}
7742
7742
  };
7743
7743
  }
7744
- var mf = [.../* @__PURE__ */ new Set([...Xt.ids, ...Object.values(Q)])];
7745
- function hf(e, t) {
7746
- return zs({
7744
+ var hf = [.../* @__PURE__ */ new Set([...Xt.ids, ...Object.values(Q)])];
7745
+ function ff(e, t) {
7746
+ return qs({
7747
7747
  bundles: e,
7748
7748
  profile: t,
7749
7749
  policy: {
@@ -7751,16 +7751,16 @@ function hf(e, t) {
7751
7751
  allowNetworkAssets: !1,
7752
7752
  loadDesignTime: !0
7753
7753
  }
7754
- }, { hostEditorKinds: [...mf] });
7754
+ }, { hostEditorKinds: [...hf] });
7755
7755
  }
7756
- function ff(e) {
7756
+ function gf(e) {
7757
7757
  return e.flatMap((t) => t.iconLibrary ? [t.iconLibrary.catalog] : []);
7758
7758
  }
7759
- function gf(e, t) {
7760
- const n = Ts(e, t.map((o) => o.manifest));
7761
- return new ls(n, ff(t));
7759
+ function vf(e, t) {
7760
+ const n = Is(e, t.map((o) => o.manifest));
7761
+ return new cs(n, gf(t));
7762
7762
  }
7763
- var vf = [
7763
+ var bf = [
7764
7764
  "PrimeReact.Accordion",
7765
7765
  "PrimeReact.AutoComplete",
7766
7766
  "PrimeReact.Avatar",
@@ -7863,7 +7863,7 @@ var vf = [
7863
7863
  "itemsControl",
7864
7864
  "stackPanel",
7865
7865
  "wrapPanel"
7866
- ], bf = ["PrimeReact.Dialog"], yf = new Set(vf.filter((e) => !bf.includes(e))), wf = [
7866
+ ], yf = ["PrimeReact.Dialog"], wf = new Set(bf.filter((e) => !yf.includes(e))), kf = [
7867
7867
  {
7868
7868
  value: he.None,
7869
7869
  label: "Run directly"
@@ -7877,7 +7877,7 @@ var vf = [
7877
7877
  label: "Ask in a drawer"
7878
7878
  }
7879
7879
  ];
7880
- function kf(e) {
7880
+ function Sf(e) {
7881
7881
  return !e.component.endsWith(":action") || e.properties.some((t) => t.path === "presentation") ? e : {
7882
7882
  ...e,
7883
7883
  properties: [...e.properties, {
@@ -7886,13 +7886,13 @@ function kf(e) {
7886
7886
  group: "Behavior",
7887
7887
  valueType: K.Enum,
7888
7888
  default: he.None,
7889
- choices: wf,
7889
+ choices: kf,
7890
7890
  description: "Whether the command runs straight away or first asks for its input in a dialog or a drawer."
7891
7891
  }]
7892
7892
  };
7893
7893
  }
7894
- var Sf = (e) => e.replace(/([A-Z])/g, " $1").replace(/^./, (t) => t.toUpperCase()), Cf = (e) => /ies$/i.test(e) ? `${e.slice(0, -3)}y` : /(ss|us)$/i.test(e) || !/s$/i.test(e) ? e : e.slice(0, -1), Oa = (e) => e !== null && typeof e == "object" && !Array.isArray(e);
7895
- function _o(e, t, n = Sf(e)) {
7894
+ var Cf = (e) => e.replace(/([A-Z])/g, " $1").replace(/^./, (t) => t.toUpperCase()), Nf = (e) => /ies$/i.test(e) ? `${e.slice(0, -3)}y` : /(ss|us)$/i.test(e) || !/s$/i.test(e) ? e : e.slice(0, -1), Oa = (e) => e !== null && typeof e == "object" && !Array.isArray(e);
7895
+ function _o(e, t, n = Cf(e)) {
7896
7896
  const o = {
7897
7897
  path: e,
7898
7898
  label: n,
@@ -7904,7 +7904,7 @@ function _o(e, t, n = Sf(e)) {
7904
7904
  } : typeof t == "boolean" ? {
7905
7905
  ...o,
7906
7906
  valueType: K.Boolean
7907
- } : Array.isArray(t) ? Tf(o, t) : Oa(t) ? {
7907
+ } : Array.isArray(t) ? If(o, t) : Oa(t) ? {
7908
7908
  ...o,
7909
7909
  valueType: K.Object,
7910
7910
  properties: Ra(t),
@@ -7915,12 +7915,12 @@ function _o(e, t, n = Sf(e)) {
7915
7915
  };
7916
7916
  }
7917
7917
  function Ra(e, t = []) {
7918
- return Object.entries(e).filter(([n]) => !t.includes(n)).map(([n, o]) => Nf(n, o));
7918
+ return Object.entries(e).filter(([n]) => !t.includes(n)).map(([n, o]) => Tf(n, o));
7919
7919
  }
7920
- function Nf(e, t) {
7920
+ function Tf(e, t) {
7921
7921
  return _o(e, t);
7922
7922
  }
7923
- function Tf(e, t) {
7923
+ function If(e, t) {
7924
7924
  if (t.length > 0 && t.every((o) => typeof o == "string")) return {
7925
7925
  ...e,
7926
7926
  valueType: K.Json,
@@ -7937,17 +7937,17 @@ function Tf(e, t) {
7937
7937
  ...e,
7938
7938
  valueType: K.Collection,
7939
7939
  item: {
7940
- label: Cf(e.label),
7940
+ label: Nf(e.label),
7941
7941
  properties: Ra(n, ["id"]),
7942
7942
  open: !0
7943
7943
  }
7944
7944
  };
7945
7945
  }
7946
- var If = (e) => e.valueType === K.Json && e.editorKind === void 0;
7947
- function Pf(e) {
7946
+ var Pf = (e) => e.valueType === K.Json && e.editorKind === void 0;
7947
+ function xf(e) {
7948
7948
  const t = Ao(e.component, e.component.slice(e.component.lastIndexOf(":") + 1));
7949
7949
  if (!t) return e;
7950
- const n = new Set(e.properties.map((r) => r.path)), o = e.properties.map((r) => If(r) && r.path in t ? xf(r, t[r.path]) : r), i = Object.entries(t).filter(([r]) => !n.has(r)).map(([r, s]) => ({
7950
+ const n = new Set(e.properties.map((r) => r.path)), o = e.properties.map((r) => Pf(r) && r.path in t ? Of(r, t[r.path]) : r), i = Object.entries(t).filter(([r]) => !n.has(r)).map(([r, s]) => ({
7951
7951
  ..._o(r, s),
7952
7952
  description: "Shown as sample content on the design surface until you set it."
7953
7953
  }));
@@ -7956,7 +7956,7 @@ function Pf(e) {
7956
7956
  properties: [...o, ...i]
7957
7957
  } : e;
7958
7958
  }
7959
- function xf(e, t) {
7959
+ function Of(e, t) {
7960
7960
  const { editorKind: n, item: o, properties: i, choices: r, ...s } = e, l = _o(e.path, t);
7961
7961
  return {
7962
7962
  ...l,
@@ -7964,7 +7964,7 @@ function xf(e, t) {
7964
7964
  valueType: l.valueType
7965
7965
  };
7966
7966
  }
7967
- var zi = "Placement", Of = [{
7967
+ var zi = "Placement", Rf = [{
7968
7968
  path: qe,
7969
7969
  label: "Left",
7970
7970
  group: zi,
@@ -7975,32 +7975,32 @@ var zi = "Placement", Of = [{
7975
7975
  group: zi,
7976
7976
  valueType: K.Number
7977
7977
  }];
7978
- function Rf(e) {
7978
+ function Df(e) {
7979
7979
  const t = new Set(e.properties.map((n) => n.path));
7980
7980
  return {
7981
7981
  ...e,
7982
- properties: [...e.properties, ...Of.filter((n) => !t.has(n.path))]
7982
+ properties: [...e.properties, ...Rf.filter((n) => !t.has(n.path))]
7983
7983
  };
7984
7984
  }
7985
- var qi = "PrimeReact", Df = 1;
7986
- function Ef(e, t, n) {
7985
+ var qi = "PrimeReact", Ef = 1;
7986
+ function Ff(e, t, n) {
7987
7987
  const o = Yt(e.map((p) => p.manifest)), i = e.flatMap((p) => p.descriptors ?? []), r = new Set(i.map((p) => p.component)), s = e.flatMap((p) => p.manifest.components.map((h) => ({
7988
7988
  component: Rn(p.manifest.name, h),
7989
7989
  displayName: h,
7990
7990
  properties: []
7991
- }))).filter((p) => !r.has(p.component)), l = [...i, ...s].map(kf).map(Pf).map(Rf), c = [...l, ...Ff(l, o, t)], u = new Set(Object.values(o).flat()), d = new Map(l.map((p) => [p.component, p]));
7991
+ }))).filter((p) => !r.has(p.component)), l = [...i, ...s].map(Sf).map(xf).map(Df), c = [...l, ...Mf(l, o, t)], u = new Set(Object.values(o).flat()), d = new Map(l.map((p) => [p.component, p]));
7992
7992
  return {
7993
- id: Df++,
7993
+ id: Ef++,
7994
7994
  bundles: e,
7995
7995
  registry: ur(e),
7996
7996
  packages: o,
7997
7997
  descriptors: c,
7998
- catalog: gs(c),
7998
+ catalog: vs(c),
7999
7999
  profile: t,
8000
8000
  ...n ? { appearance: n } : {},
8001
- icons: gf(t.packages, e),
8002
- iconAdapters: Ws(e),
8003
- designTime: hf(e, t),
8001
+ icons: vf(t.packages, e),
8002
+ iconAdapters: zs(e),
8003
+ designTime: ff(e, t),
8004
8004
  packageDescriptorOf: (p) => {
8005
8005
  if (p.component.includes(":")) return p;
8006
8006
  const h = wt(p.component, t, o);
@@ -8008,12 +8008,12 @@ function Ef(e, t, n) {
8008
8008
  },
8009
8009
  isKnownComponent: (p) => u.has(p),
8010
8010
  legacyTypeOf: (p) => {
8011
- const h = um(p, t, o), m = h?.package === qi ? `${qi}.${Pr(h.name)}` : void 0;
8012
- return m !== void 0 && yf.has(m) ? m : void 0;
8011
+ const h = pm(p, t, o), m = h?.package === qi ? `${qi}.${Pr(h.name)}` : void 0;
8012
+ return m !== void 0 && wf.has(m) ? m : void 0;
8013
8013
  }
8014
8014
  };
8015
8015
  }
8016
- function Ff(e, t, n) {
8016
+ function Mf(e, t, n) {
8017
8017
  const o = [];
8018
8018
  for (const i of new Set(Object.values(t).flat())) {
8019
8019
  const r = wt(i, n, t), s = r && e.find((l) => l.component === Rn(r.package, r.name));
@@ -8024,7 +8024,7 @@ function Ff(e, t, n) {
8024
8024
  }
8025
8025
  return o;
8026
8026
  }
8027
- var $o = "Cratis.Icons.Lucide", Mf = {
8027
+ var $o = "Cratis.Icons.Lucide", Af = {
8028
8028
  name: $o,
8029
8029
  version: "1.52.0",
8030
8030
  kind: Kt.IconLibrary,
@@ -8046,18 +8046,18 @@ var $o = "Cratis.Icons.Lucide", Mf = {
8046
8046
  attributionUrl: "https://lucide.dev",
8047
8047
  iconCount: 1858
8048
8048
  }
8049
- }, Af = {
8049
+ }, _f = {
8050
8050
  library: $o,
8051
8051
  loadEntries: async () => (await import("./catalog-CZx3FR-E.js")).default
8052
- }, _f = wd, $f = {
8052
+ }, $f = kd, Lf = {
8053
8053
  library: $o,
8054
- loadGlyph: async ({ key: e }) => (await _f[e]?.())?.default
8055
- }, Lf = {
8056
- manifest: Mf,
8054
+ loadGlyph: async ({ key: e }) => (await $f[e]?.())?.default
8055
+ }, Bf = {
8056
+ manifest: Af,
8057
8057
  components: {},
8058
8058
  iconLibrary: {
8059
- catalog: Af,
8060
- adapter: $f
8059
+ catalog: _f,
8060
+ adapter: Lf
8061
8061
  }
8062
8062
  }, St = [
8063
8063
  dr,
@@ -8066,26 +8066,31 @@ var $o = "Cratis.Icons.Lucide", Mf = {
8066
8066
  Cr,
8067
8067
  sr,
8068
8068
  Tr,
8069
- Lf
8070
- ], Bf = St.map((e) => e.manifest), yb = ur(St), wb = Yt(Bf), kb = St.flatMap((e) => e.themes ?? []);
8071
- function jf(e) {
8072
- const t = ms(e).map((i) => i.name), n = qo(e, Kt.Styling).map((i) => i.name), o = qo(e, Kt.Blueprint)[0];
8069
+ Bf
8070
+ ], jf = St.map((e) => e.manifest), wb = ur(St), kb = Yt(jf), Sb = St.flatMap((e) => e.themes ?? []);
8071
+ function Uf(e) {
8072
+ const t = hs(e).map((i) => i.name), n = qo(e, Kt.Styling).map((i) => i.name), o = qo(e, Kt.Blueprint)[0];
8073
8073
  return o ? [
8074
8074
  ...t,
8075
8075
  ...n,
8076
8076
  o.name
8077
8077
  ] : [...t, ...n];
8078
8078
  }
8079
- function Uf(e, t) {
8080
- return t.filter((n) => ws(n, e));
8081
- }
8079
+ var Da = (e) => e === void 0 || e.activePack === "" && e.mappings.length === 0 ? void 0 : {
8080
+ ...e.activePack === "" ? {} : { activePack: e.activePack },
8081
+ mappings: e.mappings.map((t) => ({ ...t })),
8082
+ bindings: []
8083
+ };
8082
8084
  function Wf(e, t) {
8085
+ return t.filter((n) => ks(n, e));
8086
+ }
8087
+ function zf(e, t) {
8083
8088
  return [...new Set(Object.values(t).flat())].map((n) => wt(n, e, t)).filter((n) => n !== void 0 && n.shadows.length > 0).sort((n, o) => n.name.localeCompare(o.name));
8084
8089
  }
8085
8090
  var On = /* @__PURE__ */ (function(e) {
8086
8091
  return e.Fallback = "fallback", e.Explicit = "explicit", e.Automatic = "automatic", e;
8087
8092
  })({});
8088
- function zf(e) {
8093
+ function qf(e) {
8089
8094
  const t = [
8090
8095
  io,
8091
8096
  ...e.packages,
@@ -8094,17 +8099,18 @@ function zf(e) {
8094
8099
  ];
8095
8100
  return [...new Set(t.filter((n) => n.length > 0))];
8096
8101
  }
8097
- function qf(e, t) {
8102
+ function Kf(e, t) {
8098
8103
  return e.find((n) => n.manifest.name === t)?.manifest.layouts[0] ?? "";
8099
8104
  }
8100
- var Da = "UI Profile";
8101
- function Ea(e, t) {
8102
- const n = t.map((c) => c.manifest), o = zf(e), i = Is(o, n), r = qf(t, e.shell), s = {
8103
- name: Da,
8105
+ var Ea = "UI Profile";
8106
+ function Fa(e, t) {
8107
+ const n = t.map((c) => c.manifest), o = qf(e), i = Ps(o, n), r = Kf(t, e.shell), s = {
8108
+ name: Ea,
8104
8109
  targetPlatform: "web",
8105
8110
  packages: i.packages,
8106
8111
  layout: r.length > 0 ? r : void 0,
8107
- theme: e.theme.length > 0 ? e.theme : void 0
8112
+ theme: e.theme.length > 0 ? e.theme : void 0,
8113
+ sampleData: Da(e.sampleData)
8108
8114
  }, l = new Set(o);
8109
8115
  return {
8110
8116
  selection: i,
@@ -8121,42 +8127,43 @@ function Ea(e, t) {
8121
8127
  requiredBy: n.filter((d) => i.packages.includes(d.name) && d.dependencies.some((p) => p.name === c)).map((d) => d.name)
8122
8128
  }] : [];
8123
8129
  }),
8124
- collisions: Wf(s, Yt(n)),
8125
- compatibleThemes: Uf(s, t.flatMap((c) => c.themes ?? [])),
8130
+ collisions: zf(s, Yt(n)),
8131
+ compatibleThemes: Wf(s, t.flatMap((c) => c.themes ?? [])),
8126
8132
  layout: r,
8127
- isValid: ys(i)
8133
+ isValid: ws(i)
8128
8134
  };
8129
8135
  }
8130
- function Kf(e) {
8131
- const t = e.map((s) => s.manifest), n = jf(t), o = n.find((s) => t.find((l) => l.name === s)?.kind === Kt.Blueprint) ?? "", i = {
8136
+ function Gf(e) {
8137
+ const t = e.map((s) => s.manifest), n = Uf(t), o = n.find((s) => t.find((l) => l.name === s)?.kind === Kt.Blueprint) ?? "", i = {
8132
8138
  packages: n.filter((s) => s !== o && s !== io),
8133
8139
  shell: o,
8134
8140
  templatePacks: [],
8135
8141
  theme: "",
8136
- colorScheme: Ds.Light,
8137
- navigationMode: Es.Static,
8142
+ colorScheme: Es.Light,
8143
+ navigationMode: Fs.Static,
8138
8144
  accent: "",
8139
8145
  defaultScreenTemplate: ""
8140
- }, r = Ea(i, e).compatibleThemes.find((s) => !s.isDark);
8146
+ }, r = Fa(i, e).compatibleThemes.find((s) => !s.isDark);
8141
8147
  return {
8142
8148
  ...i,
8143
8149
  theme: r?.name ?? ""
8144
8150
  };
8145
8151
  }
8146
- function Gf(e) {
8152
+ function Hf(e, t) {
8147
8153
  return {
8148
- name: Da,
8154
+ name: Ea,
8149
8155
  targetPlatform: "web",
8150
8156
  packages: [...e.resolvedPackages],
8151
8157
  layout: e.layout.length > 0 ? e.layout : void 0,
8152
- theme: e.theme.length > 0 ? e.theme : void 0
8158
+ theme: e.theme.length > 0 ? e.theme : void 0,
8159
+ sampleData: Da(t)
8153
8160
  };
8154
8161
  }
8155
- function Sb(e, t = St, n) {
8156
- const o = e ? Gf(e) : Ea(Kf(t), t).profile;
8157
- return Ef(t, o, n);
8162
+ function Cb(e, t = St, n, o) {
8163
+ const i = e ? Hf(e, o) : Fa(Gf(t), t).profile;
8164
+ return Ff(t, i, n);
8158
8165
  }
8159
- function Hf(e, t) {
8166
+ function Vf(e, t) {
8160
8167
  const n = Xn(e), o = co(e, {
8161
8168
  kind: qt.Screen,
8162
8169
  name: ke
@@ -8166,8 +8173,8 @@ function Hf(e, t) {
8166
8173
  configuration: i
8167
8174
  };
8168
8175
  }
8169
- var Vf = ({ document: e, runtime: t, resolveBinding: n, registry: o = t.registry }) => {
8170
- const { element: i, configuration: r } = L(() => Hf(e, t.catalog), [e, t.catalog]), s = L(() => po(i, t.profile, t.packages), [
8176
+ var Jf = ({ document: e, runtime: t, resolveBinding: n, registry: o = t.registry }) => {
8177
+ const { element: i, configuration: r } = L(() => Vf(e, t.catalog), [e, t.catalog]), s = L(() => po(i, t.profile, t.packages), [
8171
8178
  i,
8172
8179
  t.profile,
8173
8180
  t.packages
@@ -8188,12 +8195,12 @@ var Vf = ({ document: e, runtime: t, resolveBinding: n, registry: o = t.registry
8188
8195
  })
8189
8196
  })
8190
8197
  });
8191
- }, Jf = (e) => {
8198
+ }, Qf = (e) => {
8192
8199
  const t = pt(e);
8193
8200
  return ha.has(t) || t in pa;
8194
- }, Qf = (e, t) => {
8201
+ }, Yf = (e, t) => {
8195
8202
  const n = (o) => {
8196
- const i = Jf(o.element.componentName), r = L(() => ({
8203
+ const i = Qf(o.element.componentName), r = L(() => ({
8197
8204
  ...o.element,
8198
8205
  properties: fa(e, o.element.componentName, o.element.properties)
8199
8206
  }), [o.element]);
@@ -8207,11 +8214,11 @@ var Vf = ({ document: e, runtime: t, resolveBinding: n, registry: o = t.registry
8207
8214
  };
8208
8215
  return n.displayName = `Miniature(${t.displayName ?? t.name ?? "Component"})`, n;
8209
8216
  };
8210
- function Yf(e) {
8211
- return Object.fromEntries(Object.entries(e).map(([t, n]) => [t, Qf(t, n)]));
8217
+ function Zf(e) {
8218
+ return Object.fromEntries(Object.entries(e).map(([t, n]) => [t, Yf(t, n)]));
8212
8219
  }
8213
- var Cb = 240, Nb = 112;
8214
- function Zf(e, t = 240, n = Number.POSITIVE_INFINITY) {
8220
+ var Nb = 240, Tb = 112;
8221
+ function Xf(e, t = 240, n = Number.POSITIVE_INFINITY) {
8215
8222
  const o = e && e.width > 0 && e.height > 0 ? e : da({
8216
8223
  width: 1 / 0,
8217
8224
  height: 1 / 0
@@ -8224,7 +8231,7 @@ function Zf(e, t = 240, n = Number.POSITIVE_INFINITY) {
8224
8231
  scale: s
8225
8232
  };
8226
8233
  }
8227
- function Xf(e, t = 240) {
8234
+ function eg(e, t = 240) {
8228
8235
  const n = typeof IntersectionObserver < "u", [o, i] = W(!n);
8229
8236
  return se(() => {
8230
8237
  const r = e.current;
@@ -8237,23 +8244,23 @@ function Xf(e, t = 240) {
8237
8244
  n
8238
8245
  ]), o;
8239
8246
  }
8240
- var eg = [
8247
+ var tg = [
8241
8248
  "#f66",
8242
8249
  "#fa0",
8243
8250
  "#3c3"
8244
- ], tg = () => {
8245
- }, Ki = 16, Tb = ({ document: e, runtime: t, windowSize: n, width: o, title: i, openTitle: r, onClick: s, placeholder: l }) => {
8246
- const c = J(null), u = Xf(c), d = L(() => Zf(n, o ?? 240, o === void 0 ? 112 : void 0), [
8251
+ ], ng = () => {
8252
+ }, Ki = 16, Ib = ({ document: e, runtime: t, windowSize: n, width: o, title: i, openTitle: r, onClick: s, placeholder: l }) => {
8253
+ const c = J(null), u = eg(c), d = L(() => Xf(n, o ?? 240, o === void 0 ? 112 : void 0), [
8247
8254
  n?.width,
8248
8255
  n?.height,
8249
8256
  o
8250
- ]), p = L(() => Mo(t), [t]), h = L(() => Yf(t.registry), [t.registry]), m = {
8257
+ ]), p = L(() => Mo(t), [t]), h = L(() => Zf(t.registry), [t.registry]), m = {
8251
8258
  width: d.width,
8252
8259
  height: Ki + d.bodyHeight
8253
8260
  }, g = /* @__PURE__ */ y(ie, { children: [/* @__PURE__ */ y("div", {
8254
8261
  className: "screen-thumbnail__title-bar",
8255
8262
  style: { height: Ki },
8256
- children: [eg.map((v) => /* @__PURE__ */ a("span", {
8263
+ children: [tg.map((v) => /* @__PURE__ */ a("span", {
8257
8264
  className: "screen-thumbnail__light",
8258
8265
  style: { borderColor: v }
8259
8266
  }, v)), i && /* @__PURE__ */ a("span", {
@@ -8273,10 +8280,10 @@ var eg = [
8273
8280
  "--studio-surface-viewport-height": `${d.canvasHeight}px`
8274
8281
  },
8275
8282
  "data-studio-viewport": "",
8276
- children: /* @__PURE__ */ a(Vf, {
8283
+ children: /* @__PURE__ */ a(Jf, {
8277
8284
  document: e,
8278
8285
  runtime: t,
8279
- resolveBinding: tg,
8286
+ resolveBinding: ng,
8280
8287
  registry: h
8281
8288
  })
8282
8289
  }) : l
@@ -8302,94 +8309,94 @@ var eg = [
8302
8309
  "aria-label": i,
8303
8310
  children: g
8304
8311
  });
8305
- }, et = /* @__PURE__ */ new Map(), ng = 200;
8306
- function Ib(e) {
8312
+ }, et = /* @__PURE__ */ new Map(), og = 200;
8313
+ function Pb(e) {
8307
8314
  if (!e) return;
8308
8315
  if (et.has(e)) return et.get(e);
8309
8316
  const t = zr(e), n = t.readable ? t.document : void 0;
8310
- return et.size >= ng && et.delete(et.keys().next().value), et.set(e, n), n;
8317
+ return et.size >= og && et.delete(et.keys().next().value), et.set(e, n), n;
8311
8318
  }
8312
- var Pb = {
8319
+ var xb = {
8313
8320
  [B.Stack]: "Stack",
8314
8321
  [B.Row]: "Row",
8315
8322
  [B.Grid]: "Grid",
8316
8323
  [B.Container]: "Container",
8317
8324
  [B.Wrap]: "Wrap",
8318
8325
  [B.Canvas]: "Canvas"
8319
- }, og = {
8326
+ }, ig = {
8320
8327
  [B.Stack]: ot,
8321
- [B.Row]: pl,
8328
+ [B.Row]: ml,
8322
8329
  [B.Grid]: wr,
8323
8330
  [B.Container]: ho,
8324
8331
  [B.Wrap]: fo,
8325
- [B.Canvas]: jl
8326
- }, ig = {
8327
- text: Js,
8332
+ [B.Canvas]: Ul
8333
+ }, rg = {
8334
+ text: Qs,
8328
8335
  button: $t,
8329
- card: al,
8330
- data: ll,
8331
- action: Zs,
8332
- section: Sl,
8333
- navigate: rl,
8336
+ card: sl,
8337
+ data: cl,
8338
+ action: Xs,
8339
+ section: Cl,
8340
+ navigate: al,
8334
8341
  title: _t,
8335
8342
  table: lt,
8336
8343
  summary: pn,
8337
8344
  field: gr,
8338
- code: ol,
8345
+ code: il,
8339
8346
  file: En,
8340
8347
  navigationBar: ot,
8341
8348
  inputText: Xo,
8342
8349
  inputTextarea: Go,
8343
8350
  inputNumber: ei,
8344
- password: wl,
8345
- floatLabel: Nl,
8351
+ password: kl,
8352
+ floatLabel: Tl,
8346
8353
  iconField: oi,
8347
8354
  dropdown: Vo,
8348
8355
  multiSelect: mn,
8349
8356
  listBox: vr,
8350
8357
  selectButton: _e,
8351
8358
  checkbox: Jo,
8352
- multiStateCheckbox: xl,
8359
+ multiStateCheckbox: Ol,
8353
8360
  radioButton: fn,
8354
8361
  toggleSwitch: kr,
8355
8362
  slider: Fn,
8356
- rating: Dl,
8357
- knob: Tl,
8363
+ rating: El,
8364
+ knob: Il,
8358
8365
  calendar: Ho,
8359
8366
  colorPicker: hn,
8360
8367
  chips: Tt,
8361
8368
  autoComplete: oi,
8362
8369
  treeSelect: Mn,
8363
8370
  editor: dn,
8364
- fileUpload: ul,
8371
+ fileUpload: pl,
8365
8372
  splitButton: ln,
8366
- speedDial: cl,
8373
+ speedDial: dl,
8367
8374
  buttonGroup: _e,
8368
8375
  dataTable: lt,
8369
8376
  dataView: ri,
8370
- dataScroller: Fl,
8377
+ dataScroller: Ml,
8371
8378
  tree: Mn,
8372
8379
  treeTable: gn,
8373
- timeline: hl,
8374
- paginator: Qs,
8380
+ timeline: fl,
8381
+ paginator: Ys,
8375
8382
  orderList: mn,
8376
- pickList: nl,
8377
- organizationChart: Il,
8383
+ pickList: ol,
8384
+ organizationChart: Pl,
8378
8385
  chart: mr,
8379
8386
  panel: ho,
8380
- accordion: bl,
8381
- fieldset: el,
8387
+ accordion: yl,
8388
+ fieldset: tl,
8382
8389
  divider: _e,
8383
8390
  splitter: cn,
8384
- scrollPanel: dl,
8391
+ scrollPanel: ul,
8385
8392
  tabView: Zo,
8386
- toolbar: Al,
8393
+ toolbar: _l,
8387
8394
  stepper: vn,
8388
8395
  dialog: Lt,
8389
8396
  confirmDialog: un,
8390
- overlayPanel: Ul,
8397
+ overlayPanel: Wl,
8391
8398
  sidebar: cn,
8392
- tooltip: il,
8399
+ tooltip: rl,
8393
8400
  menu: ot,
8394
8401
  menubar: ot,
8395
8402
  breadcrumb: ln,
@@ -8401,26 +8408,26 @@ var Pb = {
8401
8408
  megaMenu: ri,
8402
8409
  dock: _e,
8403
8410
  message: hr,
8404
- inlineMessage: vl,
8405
- toast: Ys,
8411
+ inlineMessage: bl,
8412
+ toast: Zs,
8406
8413
  image: fr,
8407
8414
  galleria: ti,
8408
8415
  carousel: ti,
8409
- avatar: Bl,
8410
- badge: Xs,
8416
+ avatar: jl,
8417
+ badge: el,
8411
8418
  chip: Tt,
8412
8419
  tag: Tt,
8413
- progressBar: fl,
8420
+ progressBar: gl,
8414
8421
  progressSpinner: ii,
8415
- skeleton: Rl,
8422
+ skeleton: Dl,
8416
8423
  scrollTop: ln,
8417
8424
  blockUI: ni,
8418
8425
  inplace: dn,
8419
- terminal: Ml,
8426
+ terminal: Al,
8420
8427
  page: En,
8421
8428
  dataPage: lt,
8422
8429
  formElement: pn,
8423
- singleResult: gl,
8430
+ singleResult: vl,
8424
8431
  queryInputForm: Yo,
8425
8432
  commandForm: pn,
8426
8433
  observableDataTable: lt,
@@ -8445,7 +8452,7 @@ var Pb = {
8445
8452
  objectContentEditor: dn,
8446
8453
  objectNavigationalBar: gn,
8447
8454
  schemaEditor: Qo,
8448
- timeMachine: tl,
8455
+ timeMachine: nl,
8449
8456
  filterPanel: Yo,
8450
8457
  toolbarButton: $t,
8451
8458
  toolbarGroup: _e,
@@ -8453,18 +8460,18 @@ var Pb = {
8453
8460
  appShell: Dn,
8454
8461
  fullPageShell: Lt,
8455
8462
  topbar: ot,
8456
- menuItem: yl,
8463
+ menuItem: wl,
8457
8464
  footer: _e,
8458
8465
  rightPanel: cn,
8459
8466
  configPanel: Qo,
8460
8467
  pageHeader: _t,
8461
8468
  mask: ni,
8462
- logo: El,
8463
- userMenu: Ll,
8469
+ logo: Fl,
8470
+ userMenu: Bl,
8464
8471
  themeSwitcher: hn,
8465
8472
  layoutModeSwitcher: Dn,
8466
8473
  arcPageHeader: _t
8467
- }, rg = [
8474
+ }, ag = [
8468
8475
  [/dialog/i, Lt],
8469
8476
  [/table|grid/i, lt],
8470
8477
  [/menu|bar$/i, ot],
@@ -8477,35 +8484,35 @@ var Pb = {
8477
8484
  [/message|toast/i, hr],
8478
8485
  [/tree/i, Mn],
8479
8486
  [/page|screen/i, En]
8480
- ], ag = (e) => ig[e] ?? rg.find(([t]) => t.test(e))?.[1] ?? br, sg = {
8487
+ ], sg = (e) => rg[e] ?? ag.find(([t]) => t.test(e))?.[1] ?? br, lg = {
8481
8488
  [dr.manifest.name]: yr,
8482
8489
  [pr.manifest.name]: kr,
8483
8490
  [Cr.manifest.name]: br,
8484
8491
  [sr.manifest.name]: fo,
8485
8492
  [Tr.manifest.name]: _t,
8486
- [Nr.manifest.name]: Cl
8487
- }, lg = sl, xb = {
8493
+ [Nr.manifest.name]: Nl
8494
+ }, cg = ll, Ob = {
8488
8495
  layout: (e) => {
8489
- const t = og[e];
8496
+ const t = ig[e];
8490
8497
  return /* @__PURE__ */ a(t, { "aria-hidden": "true" });
8491
8498
  },
8492
8499
  component: (e) => {
8493
- const t = ag(e);
8500
+ const t = sg(e);
8494
8501
  return /* @__PURE__ */ a(t, { "aria-hidden": "true" });
8495
8502
  },
8496
8503
  drawer: {
8497
8504
  layout: /* @__PURE__ */ a(wr, { "aria-hidden": "true" }),
8498
8505
  package: (e) => {
8499
- const t = sg[e] ?? lg;
8506
+ const t = lg[e] ?? cg;
8500
8507
  return /* @__PURE__ */ a(t, { "aria-hidden": "true" });
8501
8508
  }
8502
8509
  }
8503
- }, Ob = St.map((e) => ({
8510
+ }, Rb = St.map((e) => ({
8504
8511
  package: e.manifest.name,
8505
8512
  components: e.manifest.components,
8506
8513
  descriptors: e.descriptors ?? []
8507
8514
  }));
8508
- function Rb(e, t, n) {
8515
+ function Db(e, t, n) {
8509
8516
  return e.map((o) => ({
8510
8517
  type: o.type,
8511
8518
  name: t[o.item],
@@ -8513,10 +8520,10 @@ function Rb(e, t, n) {
8513
8520
  icon: n?.[o.item]
8514
8521
  }));
8515
8522
  }
8516
- var Db = /* @__PURE__ */ (function(e) {
8523
+ var Eb = /* @__PURE__ */ (function(e) {
8517
8524
  return e.Auto = "auto", e.Manual = "manual", e;
8518
8525
  })({});
8519
- function Eb(e) {
8526
+ function Fb(e) {
8520
8527
  return [
8521
8528
  {
8522
8529
  kind: Nt.DataContext,
@@ -8539,67 +8546,67 @@ function Eb(e) {
8539
8546
  ];
8540
8547
  }
8541
8548
  export {
8542
- xg as BindingMode,
8543
- Og as BindingNullBehavior,
8544
- Rg as BindingSourceKind,
8545
- Db as CommandFormMode,
8546
- Dg as DestinationKind,
8549
+ Og as BindingMode,
8550
+ Rg as BindingNullBehavior,
8551
+ Dg as BindingSourceKind,
8552
+ Eb as CommandFormMode,
8553
+ Eg as DestinationKind,
8547
8554
  B as LayoutItem,
8548
8555
  ne as Ownership,
8549
- Vf as PlayScreenView,
8556
+ Jf as PlayScreenView,
8550
8557
  Oe as SceneDocumentProblem,
8551
8558
  ua as ScreenEditorControlProviders,
8552
- fb as ScreenEditorOverlay,
8553
- gb as ScreenEditorPrimeReactProvider,
8559
+ gb as ScreenEditorOverlay,
8560
+ vb as ScreenEditorPrimeReactProvider,
8554
8561
  ka as ScreenEditorWindow,
8555
- vb as ScreenEditorWorkspace,
8556
- Tb as ScreenThumbnail,
8562
+ bb as ScreenEditorWorkspace,
8563
+ Ib as ScreenThumbnail,
8557
8564
  te as StructureEditRejection,
8558
- Ng as StructuredValueEditor,
8559
- bg as asList,
8560
- Eb as bindingSourceChoices,
8561
- hm as browserWindowSizeStorage,
8565
+ Tg as StructuredValueEditor,
8566
+ yg as asList,
8567
+ Fb as bindingSourceChoices,
8568
+ fm as browserWindowSizeStorage,
8562
8569
  gt as commandNameOf,
8563
- bb as createScreenEditorEnvironment,
8564
- Ef as createScreenEditorRuntime,
8565
- fm as createWindowSizeMemory,
8566
- og as defaultLayoutIcons,
8567
- Pb as defaultLayoutLabels,
8568
- xb as defaultPaletteIcons,
8569
- Ob as defaultPaletteSources,
8570
- tp as defaultScreenEditorStrings,
8570
+ yb as createScreenEditorEnvironment,
8571
+ Ff as createScreenEditorRuntime,
8572
+ gm as createWindowSizeMemory,
8573
+ ig as defaultLayoutIcons,
8574
+ xb as defaultLayoutLabels,
8575
+ Ob as defaultPaletteIcons,
8576
+ Rb as defaultPaletteSources,
8577
+ np as defaultScreenEditorStrings,
8571
8578
  Hi as defaultStructuredEditorStrings,
8572
8579
  da as defaultWindowSize,
8573
- ym as fitWindowSize,
8574
- gg as identified,
8575
- Ha as isCollectionOfRecords,
8576
- vm as isLegacyDefaultWindow,
8577
- Ka as isObjectWithFields,
8578
- mg as isPrimitiveList,
8580
+ wm as fitWindowSize,
8581
+ vg as identified,
8582
+ Va as isCollectionOfRecords,
8583
+ bm as isLegacyDefaultWindow,
8584
+ Ga as isObjectWithFields,
8585
+ hg as isPrimitiveList,
8579
8586
  rn as isRecord,
8580
- vg as isStringMap,
8587
+ bg as isStringMap,
8581
8588
  Lo as isStructured,
8582
- fg as movedItem,
8583
- yg as newItem,
8589
+ gg as movedItem,
8590
+ wg as newItem,
8584
8591
  Ji as numberListEditorKind,
8585
8592
  zr as readSceneDocument,
8586
- Ib as readThumbnailDocument,
8587
- bm as resolveInitialWindowSize,
8588
- za as scalarEditorKind,
8589
- rf as screenEditorPrimeReactDefaults,
8590
- Sb as screenEditorRuntimeForProfile,
8593
+ Pb as readThumbnailDocument,
8594
+ ym as resolveInitialWindowSize,
8595
+ qa as scalarEditorKind,
8596
+ af as screenEditorPrimeReactDefaults,
8597
+ Cb as screenEditorRuntimeForProfile,
8591
8598
  vt as sliceNamedBy,
8592
8599
  Qi as stringListEditorKind,
8593
- Ga as stringMapEditorKind,
8594
- qa as stringOrListEditorKind,
8600
+ Ha as stringMapEditorKind,
8601
+ Ka as stringOrListEditorKind,
8595
8602
  Wn as structuredProblem,
8596
- Zf as thumbnailGeometry,
8597
- Nb as thumbnailMaxBodyHeight,
8598
- Cb as thumbnailWidth,
8599
- Rb as toLayoutContainerDescriptors,
8600
- pf as toSceneCandidates,
8601
- hg as withField,
8602
- Wa as withIdentities,
8603
- wg as withItem,
8604
- kg as withoutItem
8603
+ Xf as thumbnailGeometry,
8604
+ Tb as thumbnailMaxBodyHeight,
8605
+ Nb as thumbnailWidth,
8606
+ Db as toLayoutContainerDescriptors,
8607
+ mf as toSceneCandidates,
8608
+ fg as withField,
8609
+ za as withIdentities,
8610
+ kg as withItem,
8611
+ Sg as withoutItem
8605
8612
  };