@elementor/editor-editing-panel 4.4.0-beta3 → 4.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -507,7 +507,7 @@ import {
507
507
  } from "@elementor/editor-styles-repository";
508
508
  import { InfoAlert, WarningInfotip } from "@elementor/editor-ui";
509
509
  import { ColorSwatchIcon, MapPinIcon } from "@elementor/icons";
510
- import { createLocation as createLocation2 } from "@elementor/locations";
510
+ import { createLocation as createLocation3 } from "@elementor/locations";
511
511
  import {
512
512
  Box as Box2,
513
513
  Button,
@@ -560,6 +560,14 @@ var trackStyles = (provider, event, data) => {
560
560
  providerInstance?.actions.tracking?.({ event, ...data });
561
561
  };
562
562
 
563
+ // src/components/style-tab-header-location.tsx
564
+ import { createLocation as createLocation2 } from "@elementor/locations";
565
+ var {
566
+ Slot: StyleTabHeaderSlot,
567
+ inject: injectIntoStyleTabHeader,
568
+ useInjections: useStyleTabHeaderInjections
569
+ } = createLocation2();
570
+
563
571
  // src/components/css-classes/css-class-item.tsx
564
572
  import * as React11 from "react";
565
573
  import { useEffect, useMemo as useMemo3, useState as useState3 } from "react";
@@ -1019,6 +1027,9 @@ var CLASS_STATES_MAP = {
1019
1027
  },
1020
1028
  disabled: {
1021
1029
  label: __5("disabled", "elementor")
1030
+ },
1031
+ current: {
1032
+ label: __5("current", "elementor")
1022
1033
  }
1023
1034
  };
1024
1035
  function useElementStates() {
@@ -1027,7 +1038,7 @@ function useElementStates() {
1027
1038
  const elementStates = styleStates.map(({ value, name }) => ({
1028
1039
  key: value,
1029
1040
  value,
1030
- label: CLASS_STATES_MAP[value]?.label ?? name
1041
+ label: CLASS_STATES_MAP[name]?.label ?? name
1031
1042
  }));
1032
1043
  return {
1033
1044
  elementStates,
@@ -1343,8 +1354,9 @@ var EMPTY_OPTION = {
1343
1354
  icon: /* @__PURE__ */ React13.createElement(MapPinIcon, null),
1344
1355
  provider: null
1345
1356
  };
1346
- var { Slot: ClassSelectorActionsSlot, inject: injectIntoClassSelectorActions } = createLocation2();
1357
+ var { Slot: ClassSelectorActionsSlot, inject: injectIntoClassSelectorActions } = createLocation3();
1347
1358
  function CssClassSelector() {
1359
+ const { element } = useElement();
1348
1360
  const options13 = useOptions();
1349
1361
  const { id: activeId, setId: setActiveId } = useStyle();
1350
1362
  const autocompleteRef = useRef(null);
@@ -1362,7 +1374,7 @@ function CssClassSelector() {
1362
1374
  const clearMissingClasses = useCallback2(() => {
1363
1375
  unapplyClasses(missingClassesIds);
1364
1376
  }, [missingClassesIds, unapplyClasses]);
1365
- return /* @__PURE__ */ React13.createElement(Stack4, { p: 2 }, /* @__PURE__ */ React13.createElement(Stack4, { direction: "row", gap: 1, alignItems: "center", justifyContent: "space-between" }, /* @__PURE__ */ React13.createElement(FormLabel, { htmlFor: ID, size: "small" }, __8("Classes", "elementor")), /* @__PURE__ */ React13.createElement(Stack4, { direction: "row", gap: 1 }, /* @__PURE__ */ React13.createElement(ClassSelectorActionsSlot, null))), /* @__PURE__ */ React13.createElement(
1377
+ return /* @__PURE__ */ React13.createElement(Stack4, { p: 2 }, /* @__PURE__ */ React13.createElement(Stack4, { direction: "row", gap: 1, alignItems: "center", justifyContent: "space-between" }, /* @__PURE__ */ React13.createElement(FormLabel, { htmlFor: ID, size: "small" }, __8("Classes", "elementor")), /* @__PURE__ */ React13.createElement(Stack4, { direction: "row", gap: 1 }, /* @__PURE__ */ React13.createElement(StyleTabHeaderSlot, { elementId: element.id }), /* @__PURE__ */ React13.createElement(ClassSelectorActionsSlot, null))), /* @__PURE__ */ React13.createElement(
1366
1378
  WarningInfotip,
1367
1379
  {
1368
1380
  open: Boolean(renameError),
@@ -1934,7 +1946,7 @@ import { useSelectedElementSettings } from "@elementor/editor-elements";
1934
1946
  import { Panel, PanelBody, PanelHeader, PanelHeaderTitle } from "@elementor/editor-panels";
1935
1947
  import { ThemeProvider as ThemeProvider3 } from "@elementor/editor-ui";
1936
1948
  import { AtomIcon } from "@elementor/icons";
1937
- import { createLocation as createLocation5 } from "@elementor/locations";
1949
+ import { createLocation as createLocation7 } from "@elementor/locations";
1938
1950
  import { controlActionsMenu } from "@elementor/menus";
1939
1951
  import { SessionStorageProvider as SessionStorageProvider3 } from "@elementor/session";
1940
1952
  import { ErrorBoundary } from "@elementor/ui";
@@ -2378,7 +2390,15 @@ import * as React21 from "react";
2378
2390
  import { useId as useId2, useRef as useRef3 } from "react";
2379
2391
  import { CollapseIcon, getCollapsibleValue, SectionRefContext } from "@elementor/editor-ui";
2380
2392
  import { Collapse, Divider as Divider2, ListItemButton, ListItemText, Stack as Stack5 } from "@elementor/ui";
2381
- function Section({ title, children, defaultExpanded = false, titleEnd, unmountOnExit = true, action }) {
2393
+ function Section({
2394
+ title,
2395
+ children,
2396
+ defaultExpanded = false,
2397
+ titleEnd,
2398
+ titleActions,
2399
+ unmountOnExit = true,
2400
+ action
2401
+ }) {
2382
2402
  const [isOpen, setIsOpen] = useStateByElement(title, !!defaultExpanded);
2383
2403
  const ref = useRef3(null);
2384
2404
  const isDisabled = !!action;
@@ -2408,7 +2428,15 @@ function Section({ title, children, defaultExpanded = false, titleEnd, unmountOn
2408
2428
  secondaryTypographyProps: { color: "text.primary", variant: "caption", fontWeight: "bold" },
2409
2429
  sx: { flexGrow: 0, flexShrink: 1, marginInlineEnd: 1 }
2410
2430
  }
2411
- ), getCollapsibleValue(titleEnd, isOpen)),
2431
+ ), getCollapsibleValue(titleEnd, isOpen), titleActions && /* @__PURE__ */ React21.createElement(
2432
+ Stack5,
2433
+ {
2434
+ direction: "row",
2435
+ alignItems: "center",
2436
+ onClick: (event) => event.stopPropagation()
2437
+ },
2438
+ titleActions
2439
+ )),
2412
2440
  action?.component,
2413
2441
  /* @__PURE__ */ React21.createElement(
2414
2442
  CollapseIcon,
@@ -2518,7 +2546,7 @@ var controlTypes = {
2518
2546
  toggle: { component: ToggleControl, layout: "full", propTypeUtil: stringPropTypeUtil2 },
2519
2547
  "date-time": { component: DateTimeControl, layout: "full", propTypeUtil: DateTimePropTypeUtil },
2520
2548
  video: { component: VideoMediaControl, layout: "full", propTypeUtil: videoSrcPropTypeUtil },
2521
- "inline-editing": { component: InlineEditingControl, layout: "full", propTypeUtil: escapedHtmlPropTypeUtil },
2549
+ "inline-editing": { component: InlineEditingControl, layout: "custom", propTypeUtil: escapedHtmlPropTypeUtil },
2522
2550
  email: { component: EmailFormActionControl, layout: "custom", propTypeUtil: emailsPropTypeUtil },
2523
2551
  "date-range": {
2524
2552
  component: DateRangeControl,
@@ -2884,7 +2912,7 @@ import * as React91 from "react";
2884
2912
  import { useState as useState10 } from "react";
2885
2913
  import { CLASSES_PROP_KEY } from "@elementor/editor-props";
2886
2914
  import { useActiveBreakpoint as useActiveBreakpoint2 } from "@elementor/editor-responsive";
2887
- import { createLocation as createLocation4 } from "@elementor/locations";
2915
+ import { createLocation as createLocation6 } from "@elementor/locations";
2888
2916
  import { SessionStorageProvider as SessionStorageProvider2 } from "@elementor/session";
2889
2917
  import { Box as Box8, Divider as Divider5, Stack as Stack13 } from "@elementor/ui";
2890
2918
 
@@ -3239,6 +3267,20 @@ function useActiveAndAppliedClassId(id, appliedClassesIds) {
3239
3267
  return isClassApplied ? id : null;
3240
3268
  }
3241
3269
 
3270
+ // src/hooks/use-broadcast-style-state.ts
3271
+ import { useEffect as useEffect4 } from "react";
3272
+ var STYLE_STATE_EVENT = "elementor/editor/style-state/change";
3273
+ function broadcast(id, state) {
3274
+ window.dispatchEvent(new CustomEvent(STYLE_STATE_EVENT, { detail: { id, state } }));
3275
+ }
3276
+ function useBroadcastStyleState(state) {
3277
+ const { element } = useElement();
3278
+ useEffect4(() => {
3279
+ broadcast(element.id, state);
3280
+ return () => broadcast(element.id, null);
3281
+ }, [element.id, state]);
3282
+ }
3283
+
3242
3284
  // src/components/style-sections.tsx
3243
3285
  import * as React90 from "react";
3244
3286
 
@@ -3267,7 +3309,7 @@ function useStylesField(propName, meta) {
3267
3309
  }
3268
3310
 
3269
3311
  // src/controls-registry/conditional-field.tsx
3270
- import { useEffect as useEffect4, useRef as useRef4 } from "react";
3312
+ import { useEffect as useEffect5, useRef as useRef4 } from "react";
3271
3313
  import { useBoundProp as useBoundProp2 } from "@elementor/editor-controls";
3272
3314
  import { isDependency as isDependency2, isDependencyMet as isDependencyMet2 } from "@elementor/editor-props";
3273
3315
  var ConditionalField = ({ children }) => {
@@ -3297,7 +3339,7 @@ function useSyncDepsWithInherited({
3297
3339
  resetValue
3298
3340
  }) {
3299
3341
  const syncRef = useRef4({ hasSynced: false, prevDepValues: depValues });
3300
- useEffect4(() => {
3342
+ useEffect5(() => {
3301
3343
  const { hasSynced, prevDepValues } = syncRef.current;
3302
3344
  if (hasSynced && value && wasDepsCleared(prevDepValues, depValues) || isHidden && depValues && value) {
3303
3345
  resetValue();
@@ -3734,7 +3776,7 @@ var EffectsSection = () => {
3734
3776
  import * as React62 from "react";
3735
3777
  import { ControlFormLabel as ControlFormLabel2 } from "@elementor/editor-controls";
3736
3778
  import { useParentElement } from "@elementor/editor-elements";
3737
- import { createLocation as createLocation3 } from "@elementor/locations";
3779
+ import { createLocation as createLocation4 } from "@elementor/locations";
3738
3780
  import { __ as __39 } from "@wordpress/i18n";
3739
3781
 
3740
3782
  // src/hooks/use-computed-style.ts
@@ -4228,7 +4270,7 @@ var FlexDirectionField = () => {
4228
4270
 
4229
4271
  // src/components/style-sections/layout-section/flex-order-field.tsx
4230
4272
  import * as React51 from "react";
4231
- import { useEffect as useEffect5, useMemo as useMemo9, useState as useState8 } from "react";
4273
+ import { useEffect as useEffect6, useMemo as useMemo9, useState as useState8 } from "react";
4232
4274
  import {
4233
4275
  ControlToggleButtonGroup,
4234
4276
  NumberControl as NumberControl2,
@@ -4283,12 +4325,12 @@ function FlexOrderFieldContent() {
4283
4325
  const currentGroup = useMemo9(() => getGroupControlValue(order?.value ?? null), [order]);
4284
4326
  const [activeGroup, setActiveGroup] = useState8(currentGroup);
4285
4327
  const [customLocked, setCustomLocked] = useState8(false);
4286
- useEffect5(() => {
4328
+ useEffect6(() => {
4287
4329
  if (!customLocked) {
4288
4330
  setActiveGroup(currentGroup);
4289
4331
  }
4290
4332
  }, [currentGroup, customLocked]);
4291
- useEffect5(() => {
4333
+ useEffect6(() => {
4292
4334
  if (order === null) {
4293
4335
  setCustomLocked(false);
4294
4336
  }
@@ -4348,7 +4390,7 @@ var getGroupControlValue = (order) => {
4348
4390
 
4349
4391
  // src/components/style-sections/layout-section/flex-size-field.tsx
4350
4392
  import * as React52 from "react";
4351
- import { useEffect as useEffect6, useMemo as useMemo10, useRef as useRef7, useState as useState9 } from "react";
4393
+ import { useEffect as useEffect7, useMemo as useMemo10, useRef as useRef7, useState as useState9 } from "react";
4352
4394
  import {
4353
4395
  ControlToggleButtonGroup as ControlToggleButtonGroup2,
4354
4396
  NumberControl as NumberControl3,
@@ -4394,12 +4436,12 @@ var FlexSizeFieldContent = () => {
4394
4436
  const currentGroup = useMemo10(() => getActiveGroup(flexValues), [flexValues]);
4395
4437
  const [activeGroup, setActiveGroup] = useState9(currentGroup);
4396
4438
  const [customLocked, setCustomLocked] = useState9(false);
4397
- useEffect6(() => {
4439
+ useEffect7(() => {
4398
4440
  if (!customLocked) {
4399
4441
  setActiveGroup(currentGroup);
4400
4442
  }
4401
4443
  }, [currentGroup, customLocked]);
4402
- useEffect6(() => {
4444
+ useEffect7(() => {
4403
4445
  if (value === null) {
4404
4446
  setCustomLocked(false);
4405
4447
  }
@@ -4941,7 +4983,7 @@ var WrapField = () => {
4941
4983
  var DISPLAY_LABEL2 = __39("Display", "elementor");
4942
4984
  var FLEX_WRAP_LABEL2 = __39("Flex wrap", "elementor");
4943
4985
  var DEFAULT_PARENT_FLOW_DIRECTION = "row";
4944
- var { Slot: GridFieldsSlot, inject: injectIntoGridFields } = createLocation3();
4986
+ var { Slot: GridFieldsSlot, inject: injectIntoGridFields } = createLocation4();
4945
4987
  var LayoutSection = () => {
4946
4988
  const { value: display } = useStylesField("display", {
4947
4989
  history: { propDisplayName: DISPLAY_LABEL2 }
@@ -4982,7 +5024,7 @@ var shouldDisplayFlexFields = (display, local) => {
4982
5024
 
4983
5025
  // src/components/style-sections/position-section/position-section.tsx
4984
5026
  import * as React67 from "react";
4985
- import { useEffect as useEffect7, useRef as useRef12 } from "react";
5027
+ import { useEffect as useEffect8, useRef as useRef12 } from "react";
4986
5028
  import { useSessionStorage as useSessionStorage4 } from "@elementor/session";
4987
5029
  import { styled as styled6 } from "@elementor/ui";
4988
5030
  import { __ as __44 } from "@wordpress/i18n";
@@ -5109,7 +5151,7 @@ var PositionSection = () => {
5109
5151
  const positionPrevRef = useRef12(position);
5110
5152
  const { values: dependentValues, setValues: setDependentValues } = useStylesFields(DEPENDENT_PROP_NAMES);
5111
5153
  const [savedDependentValues, saveToHistory, clearHistory] = usePersistDimensions();
5112
- useEffect7(() => {
5154
+ useEffect8(() => {
5113
5155
  if (position && position?.value === POSITION_STATIC && hasDependentValues(dependentValues)) {
5114
5156
  saveToHistory(extractDimensions(dependentValues));
5115
5157
  }
@@ -5757,8 +5799,25 @@ var STYLE_SECTION_NAMES = STYLE_SECTIONS.map((section) => section.name);
5757
5799
 
5758
5800
  // src/components/style-tab-section.tsx
5759
5801
  import * as React89 from "react";
5802
+
5803
+ // src/components/style-section-header-location.tsx
5804
+ import { createElement as createElement89 } from "react";
5805
+ import { createLocation as createLocation5 } from "@elementor/locations";
5806
+ var { Slot: StyleSectionHeaderSlot, inject: injectStyleSectionHeader } = createLocation5();
5807
+ var injectIntoStyleSectionHeader = ({ id, component, sections, options: options13 }) => {
5808
+ const filteredComponent = (props) => {
5809
+ if (sections && !sections.includes(props.sectionName)) {
5810
+ return null;
5811
+ }
5812
+ return createElement89(component, props);
5813
+ };
5814
+ injectStyleSectionHeader({ id, component: filteredComponent, options: options13 });
5815
+ };
5816
+
5817
+ // src/components/style-tab-section.tsx
5760
5818
  var StyleTabSection = ({ section, fields = [], unmountOnExit = true }) => {
5761
5819
  const { component, name, title, action } = section;
5820
+ const { element } = useElement();
5762
5821
  const tabDefaults = useDefaultPanelSettings();
5763
5822
  const SectionComponent = component || (() => /* @__PURE__ */ React89.createElement(React89.Fragment, null));
5764
5823
  const isExpanded = tabDefaults.defaultSectionsExpanded.style?.includes(name);
@@ -5768,6 +5827,7 @@ var StyleTabSection = ({ section, fields = [], unmountOnExit = true }) => {
5768
5827
  title,
5769
5828
  defaultExpanded: isExpanded,
5770
5829
  titleEnd: getStylesInheritanceIndicators(fields),
5830
+ titleActions: element ? /* @__PURE__ */ React89.createElement(StyleSectionHeaderSlot, { elementId: element.id, sectionName: name }) : void 0,
5771
5831
  unmountOnExit,
5772
5832
  action
5773
5833
  },
@@ -5793,7 +5853,7 @@ var StyleSections = () => {
5793
5853
 
5794
5854
  // src/components/style-tab.tsx
5795
5855
  var TABS_HEADER_HEIGHT = "37px";
5796
- var { Slot: StyleTabSlot, inject: injectIntoStyleTab } = createLocation4();
5856
+ var { Slot: StyleTabSlot, inject: injectIntoStyleTab } = createLocation6();
5797
5857
  var stickyHeaderStyles = {
5798
5858
  position: "sticky",
5799
5859
  zIndex: 1100,
@@ -5806,6 +5866,7 @@ var StyleTab = () => {
5806
5866
  const [activeStyleDefId, setActiveStyleDefId] = useActiveStyleDefId(currentClassesProp ?? "");
5807
5867
  const [activeStyleState, setActiveStyleState] = useState10(null);
5808
5868
  const breakpoint = useActiveBreakpoint2();
5869
+ useBroadcastStyleState(activeStyleState);
5809
5870
  if (!currentClassesProp) {
5810
5871
  return null;
5811
5872
  }
@@ -5924,7 +5985,7 @@ var resolveCurrentTab = ({
5924
5985
  };
5925
5986
 
5926
5987
  // src/components/editing-panel.tsx
5927
- var { Slot: PanelHeaderTopSlot, inject: injectIntoPanelHeaderTop } = createLocation5();
5988
+ var { Slot: PanelHeaderTopSlot, inject: injectIntoPanelHeaderTop } = createLocation7();
5928
5989
  var { useMenuItems } = controlActionsMenu;
5929
5990
  var EditingPanel = () => {
5930
5991
  const { element, elementType, settings } = useSelectedElementSettings();
@@ -5974,13 +6035,22 @@ function PseudoStateMenuItems({ states, activeState, onSelectState, onClose }) {
5974
6035
  )));
5975
6036
  }
5976
6037
 
6038
+ // src/components/custom-css-header-location.tsx
6039
+ import { createLocation as createLocation8 } from "@elementor/locations";
6040
+ var {
6041
+ Slot: CustomCssHeaderSlot,
6042
+ inject: injectIntoCustomCssHeader,
6043
+ useInjections: useCustomCssHeaderInjections
6044
+ } = createLocation8();
6045
+
5977
6046
  // src/init.ts
5978
6047
  import { injectIntoLogic } from "@elementor/editor";
6048
+ import { init as initEditorControls } from "@elementor/editor-controls";
5979
6049
  import { registerPanel } from "@elementor/editor-panels";
5980
6050
  import { blockCommand } from "@elementor/editor-v1-adapters";
5981
6051
 
5982
6052
  // src/hooks/use-open-editor-panel.ts
5983
- import { useEffect as useEffect8 } from "react";
6053
+ import { useEffect as useEffect9 } from "react";
5984
6054
  import { __privateListenTo as listenTo, commandStartEvent } from "@elementor/editor-v1-adapters";
5985
6055
 
5986
6056
  // src/panel.ts
@@ -6004,7 +6074,7 @@ var isAtomicWidgetSelected = () => {
6004
6074
  // src/hooks/use-open-editor-panel.ts
6005
6075
  var useOpenEditorPanel = () => {
6006
6076
  const { open } = usePanelActions();
6007
- useEffect8(() => {
6077
+ useEffect9(() => {
6008
6078
  return listenTo(commandStartEvent("panel/editor/open"), () => {
6009
6079
  if (isAtomicWidgetSelected()) {
6010
6080
  open();
@@ -6242,7 +6312,7 @@ var useActions = () => {
6242
6312
  };
6243
6313
 
6244
6314
  // src/controls-registry/element-controls/accordion-items-control/use-show-icon-write-through.ts
6245
- import { useEffect as useEffect9, useRef as useRef20 } from "react";
6315
+ import { useEffect as useEffect10, useRef as useRef20 } from "react";
6246
6316
  import { getContainer as getContainer4, getElementSettings as getElementSettings2, updateElementSettings as updateElementSettings4 } from "@elementor/editor-elements";
6247
6317
  import { booleanPropTypeUtil as booleanPropTypeUtil3 } from "@elementor/editor-props";
6248
6318
  import { undoable as undoable5 } from "@elementor/editor-v1-adapters";
@@ -6349,7 +6419,7 @@ var cascadeDifferentOpenIconToHeaders = undoable5(
6349
6419
  );
6350
6420
  function useDifferentOpenIconWriteThrough(accordionId, differentOpenIcon) {
6351
6421
  const previousRef = useRef20(null);
6352
- useEffect9(() => {
6422
+ useEffect10(() => {
6353
6423
  const previous = previousRef.current;
6354
6424
  previousRef.current = { accordionId, differentOpenIcon };
6355
6425
  if (!previous || previous.accordionId !== accordionId || previous.differentOpenIcon === differentOpenIcon) {
@@ -6360,7 +6430,7 @@ function useDifferentOpenIconWriteThrough(accordionId, differentOpenIcon) {
6360
6430
  }
6361
6431
  function useShowIconWriteThrough(accordionId, showIcon) {
6362
6432
  const previousRef = useRef20(null);
6363
- useEffect9(() => {
6433
+ useEffect10(() => {
6364
6434
  const previous = previousRef.current;
6365
6435
  previousRef.current = { accordionId, showIcon };
6366
6436
  if (!previous || previous.accordionId !== accordionId || previous.showIcon === showIcon) {
@@ -6610,7 +6680,7 @@ var addItem = ({
6610
6680
  };
6611
6681
 
6612
6682
  // src/controls-registry/element-controls/list-items-control/use-show-markers-write-through.ts
6613
- import { useEffect as useEffect10, useRef as useRef21 } from "react";
6683
+ import { useEffect as useEffect11, useRef as useRef21 } from "react";
6614
6684
  import { getContainer as getContainer6, getElementSettings as getElementSettings3, updateElementSettings as updateElementSettings5 } from "@elementor/editor-elements";
6615
6685
  import { booleanPropTypeUtil as booleanPropTypeUtil6 } from "@elementor/editor-props";
6616
6686
  import { undoable as undoable6 } from "@elementor/editor-v1-adapters";
@@ -6663,7 +6733,7 @@ function getListItemIds(listId) {
6663
6733
  }
6664
6734
  function useShowMarkersWriteThrough(listId, showMarkers) {
6665
6735
  const previousRef = useRef21(null);
6666
- useEffect10(() => {
6736
+ useEffect11(() => {
6667
6737
  const previous = previousRef.current;
6668
6738
  previousRef.current = { listId, showMarkers };
6669
6739
  if (!previous || previous.listId !== listId || previous.showMarkers === showMarkers) {
@@ -6774,21 +6844,18 @@ var ListItemLabelControl = ({ elementId, fallbackLabel }) => {
6774
6844
  ));
6775
6845
  };
6776
6846
 
6777
- // src/controls-registry/element-controls/tabs-control/tabs-control.tsx
6847
+ // src/controls-registry/element-controls/menu-items-control/menu-items-control.tsx
6778
6848
  import * as React98 from "react";
6849
+ import { useId as useId3 } from "react";
6850
+ import { ControlFormLabel as ControlFormLabel5, Repeater as Repeater3 } from "@elementor/editor-controls";
6779
6851
  import {
6780
- ControlFormLabel as ControlFormLabel5,
6781
- Repeater as Repeater3,
6782
- useBoundProp as useBoundProp8
6783
- } from "@elementor/editor-controls";
6784
- import {
6852
+ getElementType as getElementType2,
6785
6853
  updateElementEditorSettings as updateElementEditorSettings4,
6786
6854
  useElementChildren as useElementChildren3,
6787
6855
  useElementEditorSettings as useElementEditorSettings4
6788
6856
  } from "@elementor/editor-elements";
6789
- import { numberPropTypeUtil as numberPropTypeUtil4 } from "@elementor/editor-props";
6790
- import { InfoCircleFilledIcon as InfoCircleFilledIcon3 } from "@elementor/icons";
6791
- import { Alert as Alert5, Chip as Chip4, Infotip as Infotip3, Stack as Stack17, Switch as Switch2, TextField as TextField4, Typography as Typography5 } from "@elementor/ui";
6857
+ import { SessionStorageProvider as SessionStorageProvider4 } from "@elementor/session";
6858
+ import { Stack as Stack17, TextField as TextField4 } from "@elementor/ui";
6792
6859
  import { __ as __76 } from "@wordpress/i18n";
6793
6860
 
6794
6861
  // src/controls-registry/element-controls/get-element-by-type.ts
@@ -6804,20 +6871,277 @@ var getElementByType = (elementId, type) => {
6804
6871
  return currentElement.children?.findRecursive?.((child) => child.model.get("elType") === type) ?? null;
6805
6872
  };
6806
6873
 
6807
- // src/controls-registry/element-controls/tabs-control/use-actions.ts
6808
- import { useBoundProp as useBoundProp7 } from "@elementor/editor-controls";
6874
+ // src/controls-registry/element-controls/menu-items-control/use-actions.ts
6809
6875
  import {
6810
6876
  createElements as createElements3,
6811
6877
  duplicateElements as duplicateElements3,
6878
+ generateElementId as generateElementId3,
6812
6879
  getContainer as getContainer8,
6813
6880
  moveElements as moveElements3,
6814
6881
  removeElements as removeElements3
6815
6882
  } from "@elementor/editor-elements";
6816
- import { numberPropTypeUtil as numberPropTypeUtil3 } from "@elementor/editor-props";
6883
+ import { escapedHtmlPropTypeUtil as escapedHtmlPropTypeUtil4 } from "@elementor/editor-props";
6817
6884
  import { __ as __75 } from "@wordpress/i18n";
6885
+ var MENU_ITEMS_ELEMENT_TYPE = "e-menu-items";
6886
+ var MENU_ENTRY_ELEMENT_TYPE = "e-menu-entry";
6887
+ var MENU_ITEM_ELEMENT_TYPE = "e-menu-item";
6888
+ var MIN_ENTRIES = 1;
6889
+ var PARAGRAPH_WIDGET_TYPE3 = "e-paragraph";
6890
+ var getEntryTitle = () => __75("Menu item", "elementor");
6891
+ var buildEntryModel = (title) => ({
6892
+ elType: MENU_ENTRY_ELEMENT_TYPE,
6893
+ id: generateElementId3(),
6894
+ editor_settings: { title },
6895
+ elements: [
6896
+ {
6897
+ elType: MENU_ITEM_ELEMENT_TYPE,
6898
+ id: generateElementId3(),
6899
+ elements: [
6900
+ {
6901
+ elType: "widget",
6902
+ widgetType: PARAGRAPH_WIDGET_TYPE3,
6903
+ id: generateElementId3(),
6904
+ elements: [],
6905
+ settings: {
6906
+ paragraph: escapedHtmlPropTypeUtil4.create(title),
6907
+ tag: { $$type: "string", value: "span" }
6908
+ }
6909
+ }
6910
+ ]
6911
+ }
6912
+ ]
6913
+ });
6914
+ var useActions2 = () => {
6915
+ const addItem2 = ({ menuItemsId, items: items3 }) => {
6916
+ const menuItems = getContainer8(menuItemsId);
6917
+ if (!menuItems) {
6918
+ throw new Error("Menu items container not found");
6919
+ }
6920
+ items3.forEach(() => {
6921
+ createElements3({
6922
+ title: __75("Menu", "elementor"),
6923
+ elements: [
6924
+ {
6925
+ container: menuItems,
6926
+ model: buildEntryModel(getEntryTitle())
6927
+ }
6928
+ ]
6929
+ });
6930
+ });
6931
+ };
6932
+ const removeItem2 = ({ menuItemsId, items: items3 }) => {
6933
+ const entriesCount = getContainer8(menuItemsId)?.children?.filter(
6934
+ (child) => child.model.get("elType") === MENU_ENTRY_ELEMENT_TYPE
6935
+ ).length ?? 0;
6936
+ const removableCount = Math.max(0, Math.min(items3.length, entriesCount - MIN_ENTRIES));
6937
+ if (removableCount === 0) {
6938
+ return;
6939
+ }
6940
+ removeElements3({
6941
+ title: __75("Menu", "elementor"),
6942
+ elementIds: items3.slice(0, removableCount).map(({ item }) => item.id)
6943
+ });
6944
+ };
6945
+ const duplicateItem2 = ({ items: items3 }) => {
6946
+ duplicateElements3({
6947
+ title: __75("Duplicate Menu item", "elementor"),
6948
+ elementIds: items3.map(({ item }) => item.id)
6949
+ });
6950
+ };
6951
+ const moveItem2 = ({
6952
+ menuItemsId,
6953
+ movedElementId,
6954
+ toIndex
6955
+ }) => {
6956
+ const menuItems = getContainer8(menuItemsId);
6957
+ const movedElement = getContainer8(movedElementId);
6958
+ if (!menuItems || !movedElement) {
6959
+ throw new Error("Menu item or container not found");
6960
+ }
6961
+ moveElements3({
6962
+ title: __75("Reorder Menu items", "elementor"),
6963
+ moves: [
6964
+ {
6965
+ element: movedElement,
6966
+ targetContainer: menuItems,
6967
+ options: { at: toIndex }
6968
+ }
6969
+ ]
6970
+ });
6971
+ };
6972
+ return { addItem: addItem2, removeItem: removeItem2, duplicateItem: duplicateItem2, moveItem: moveItem2 };
6973
+ };
6974
+
6975
+ // src/controls-registry/element-controls/menu-items-control/use-entry-item.ts
6976
+ import { getContainer as getContainer9, getElementSettings as getElementSettings4, getElementType } from "@elementor/editor-elements";
6977
+ import { __privateUseListenTo as useListenTo4, commandEndEvent as commandEndEvent4 } from "@elementor/editor-v1-adapters";
6978
+ var useEntryItem = (entryId) => {
6979
+ return useListenTo4(
6980
+ [commandEndEvent4("document/elements/set-settings"), commandEndEvent4("document/elements/settings")],
6981
+ () => {
6982
+ const item = getContainer9(entryId)?.children?.find(
6983
+ (child) => child.model.get("elType") === MENU_ITEM_ELEMENT_TYPE
6984
+ );
6985
+ return {
6986
+ itemId: item?.id ?? null,
6987
+ settings: item ? getEntrySettings(item.id) : {}
6988
+ };
6989
+ },
6990
+ [entryId]
6991
+ );
6992
+ };
6993
+ var getEntrySettings = (itemId) => {
6994
+ const propsSchema = getElementType(MENU_ITEM_ELEMENT_TYPE)?.propsSchema ?? {};
6995
+ return getElementSettings4(itemId, Object.keys(propsSchema));
6996
+ };
6997
+
6998
+ // src/controls-registry/element-controls/menu-items-control/menu-items-control.tsx
6999
+ var LINK_BIND = "link";
7000
+ var MenuItemsControl = ({ label }) => {
7001
+ const { element } = useElement();
7002
+ const { addItem: addItem2, duplicateItem: duplicateItem2, moveItem: moveItem2, removeItem: removeItem2 } = useActions2();
7003
+ const { [MENU_ENTRY_ELEMENT_TYPE]: entries } = useElementChildren3(element.id, {
7004
+ [MENU_ITEMS_ELEMENT_TYPE]: MENU_ENTRY_ELEMENT_TYPE
7005
+ });
7006
+ const menuItems = getElementByType(element.id, MENU_ITEMS_ELEMENT_TYPE);
7007
+ const repeaterValues = entries.map((entry, index) => ({
7008
+ id: entry.id,
7009
+ title: entry.editorSettings?.title,
7010
+ index
7011
+ }));
7012
+ const setValue = (_newValues, _options, meta) => {
7013
+ if (!menuItems) {
7014
+ return;
7015
+ }
7016
+ if (meta?.action?.type === "add") {
7017
+ return addItem2({
7018
+ menuItemsId: menuItems.id,
7019
+ items: meta.action.payload
7020
+ });
7021
+ }
7022
+ if (meta?.action?.type === "remove") {
7023
+ return removeItem2({ menuItemsId: menuItems.id, items: meta.action.payload });
7024
+ }
7025
+ if (meta?.action?.type === "duplicate") {
7026
+ return duplicateItem2({ items: meta.action.payload });
7027
+ }
7028
+ if (meta?.action?.type === "reorder") {
7029
+ const { from, to } = meta.action.payload;
7030
+ return moveItem2({
7031
+ menuItemsId: menuItems.id,
7032
+ movedElementId: entries[from].id,
7033
+ toIndex: to
7034
+ });
7035
+ }
7036
+ };
7037
+ return /* @__PURE__ */ React98.createElement(
7038
+ Repeater3,
7039
+ {
7040
+ showToggle: false,
7041
+ values: repeaterValues,
7042
+ setValues: setValue,
7043
+ showRemove: repeaterValues.length > 1,
7044
+ label,
7045
+ adornment: () => null,
7046
+ itemSettings: {
7047
+ getId: ({ item }) => item.id,
7048
+ initialValues: { id: "", title: __76("Menu item", "elementor") },
7049
+ Label: ItemLabel3,
7050
+ Content: ItemContent3,
7051
+ Icon: () => null
7052
+ }
7053
+ }
7054
+ );
7055
+ };
7056
+ var ItemLabel3 = ({ value }) => /* @__PURE__ */ React98.createElement(Stack17, { sx: { minHeight: 20 }, direction: "row", alignItems: "center", gap: 1.5 }, value.id ? /* @__PURE__ */ React98.createElement(EntryLabel, { elementId: value.id, fallbackTitle: value.title }) : /* @__PURE__ */ React98.createElement("span", null, value?.title));
7057
+ var EntryLabel = ({ elementId, fallbackTitle }) => {
7058
+ const editorSettings = useElementEditorSettings4(elementId);
7059
+ return /* @__PURE__ */ React98.createElement("span", null, editorSettings?.title ?? fallbackTitle ?? "");
7060
+ };
7061
+ var ItemContent3 = ({ value }) => {
7062
+ if (!value.id) {
7063
+ return null;
7064
+ }
7065
+ return /* @__PURE__ */ React98.createElement(Stack17, { p: 2, gap: 1.5 }, /* @__PURE__ */ React98.createElement(ItemNameControl2, { elementId: value.id }), /* @__PURE__ */ React98.createElement(ItemLinkControl, { entryId: value.id }));
7066
+ };
7067
+ var ItemNameControl2 = ({ elementId }) => {
7068
+ const editorSettings = useElementEditorSettings4(elementId);
7069
+ const inputId = useId3();
7070
+ return /* @__PURE__ */ React98.createElement(Stack17, { gap: 1 }, /* @__PURE__ */ React98.createElement(ControlFormLabel5, { htmlFor: inputId }, __76("Item name", "elementor")), /* @__PURE__ */ React98.createElement(
7071
+ TextField4,
7072
+ {
7073
+ id: inputId,
7074
+ size: "tiny",
7075
+ value: editorSettings?.title ?? "",
7076
+ onChange: ({ target }) => {
7077
+ updateElementEditorSettings4({ elementId, settings: { title: target.value } });
7078
+ }
7079
+ }
7080
+ ));
7081
+ };
7082
+ var ItemLinkControl = ({ entryId }) => {
7083
+ const { itemId, settings } = useEntryItem(entryId);
7084
+ const elementType = itemId ? getElementType2(MENU_ITEM_ELEMENT_TYPE) : null;
7085
+ const linkControl = elementType ? findControlByBind(elementType.controls, LINK_BIND) : null;
7086
+ if (!itemId || !elementType || !linkControl) {
7087
+ return null;
7088
+ }
7089
+ return /* @__PURE__ */ React98.createElement(
7090
+ ElementProvider,
7091
+ {
7092
+ element: { id: itemId, type: MENU_ITEM_ELEMENT_TYPE },
7093
+ elementType,
7094
+ settings
7095
+ },
7096
+ /* @__PURE__ */ React98.createElement(SessionStorageProvider4, { prefix: itemId }, /* @__PURE__ */ React98.createElement(SettingsControl, { control: linkControl }))
7097
+ );
7098
+ };
7099
+ var findControlByBind = (items3, bind) => {
7100
+ for (const item of items3) {
7101
+ if (item.type === "section") {
7102
+ const found = findControlByBind(item.value.items, bind);
7103
+ if (found) {
7104
+ return found;
7105
+ }
7106
+ }
7107
+ if (item.type === "control" && item.value.bind === bind) {
7108
+ return item;
7109
+ }
7110
+ }
7111
+ return null;
7112
+ };
7113
+
7114
+ // src/controls-registry/element-controls/tabs-control/tabs-control.tsx
7115
+ import * as React99 from "react";
7116
+ import {
7117
+ ControlFormLabel as ControlFormLabel6,
7118
+ Repeater as Repeater4,
7119
+ useBoundProp as useBoundProp8
7120
+ } from "@elementor/editor-controls";
7121
+ import {
7122
+ updateElementEditorSettings as updateElementEditorSettings5,
7123
+ useElementChildren as useElementChildren4,
7124
+ useElementEditorSettings as useElementEditorSettings5
7125
+ } from "@elementor/editor-elements";
7126
+ import { numberPropTypeUtil as numberPropTypeUtil4 } from "@elementor/editor-props";
7127
+ import { InfoCircleFilledIcon as InfoCircleFilledIcon3 } from "@elementor/icons";
7128
+ import { Alert as Alert5, Chip as Chip4, Infotip as Infotip3, Stack as Stack18, Switch as Switch2, TextField as TextField5, Typography as Typography5 } from "@elementor/ui";
7129
+ import { __ as __78 } from "@wordpress/i18n";
7130
+
7131
+ // src/controls-registry/element-controls/tabs-control/use-actions.ts
7132
+ import { useBoundProp as useBoundProp7 } from "@elementor/editor-controls";
7133
+ import {
7134
+ createElements as createElements4,
7135
+ duplicateElements as duplicateElements4,
7136
+ getContainer as getContainer10,
7137
+ moveElements as moveElements4,
7138
+ removeElements as removeElements4
7139
+ } from "@elementor/editor-elements";
7140
+ import { numberPropTypeUtil as numberPropTypeUtil3 } from "@elementor/editor-props";
7141
+ import { __ as __77 } from "@wordpress/i18n";
6818
7142
  var TAB_ELEMENT_TYPE = "e-tab";
6819
7143
  var TAB_CONTENT_ELEMENT_TYPE = "e-tab-content";
6820
- var useActions2 = () => {
7144
+ var useActions3 = () => {
6821
7145
  const { value, setValue: setDefaultActiveTab } = useBoundProp7(numberPropTypeUtil3);
6822
7146
  const defaultActiveTab = value ?? 0;
6823
7147
  const duplicateItem2 = ({
@@ -6830,14 +7154,14 @@ var useActions2 = () => {
6830
7154
  });
6831
7155
  items3.forEach(({ item, index }) => {
6832
7156
  const tabId = item.id;
6833
- const tabContentAreaContainer = getContainer8(tabContentAreaId);
7157
+ const tabContentAreaContainer = getContainer10(tabContentAreaId);
6834
7158
  const tabContentId = tabContentAreaContainer?.children?.[index]?.id;
6835
7159
  if (!tabContentId) {
6836
7160
  throw new Error("Original content ID is required for duplication");
6837
7161
  }
6838
- duplicateElements3({
7162
+ duplicateElements4({
6839
7163
  elementIds: [tabId, tabContentId],
6840
- title: __75("Duplicate Tab", "elementor"),
7164
+ title: __77("Duplicate Tab", "elementor"),
6841
7165
  onDuplicateElements: () => {
6842
7166
  if (newDefault !== defaultActiveTab) {
6843
7167
  setDefaultActiveTab(newDefault, {}, { withHistory: false });
@@ -6858,10 +7182,10 @@ var useActions2 = () => {
6858
7182
  movedElementId,
6859
7183
  movedElementIndex
6860
7184
  }) => {
6861
- const tabContentContainer = getContainer8(tabContentAreaId);
7185
+ const tabContentContainer = getContainer10(tabContentAreaId);
6862
7186
  const tabContent = tabContentContainer?.children?.[movedElementIndex];
6863
- const movedElement = getContainer8(movedElementId);
6864
- const tabsMenu = getContainer8(tabsMenuId);
7187
+ const movedElement = getContainer10(movedElementId);
7188
+ const tabsMenu = getContainer10(tabsMenuId);
6865
7189
  if (!tabContent) {
6866
7190
  throw new Error("Content element is required");
6867
7191
  }
@@ -6873,8 +7197,8 @@ var useActions2 = () => {
6873
7197
  to: toIndex,
6874
7198
  defaultActiveTab
6875
7199
  });
6876
- moveElements3({
6877
- title: __75("Reorder Tabs", "elementor"),
7200
+ moveElements4({
7201
+ title: __77("Reorder Tabs", "elementor"),
6878
7202
  moves: [
6879
7203
  {
6880
7204
  element: movedElement,
@@ -6907,11 +7231,11 @@ var useActions2 = () => {
6907
7231
  items: items3,
6908
7232
  defaultActiveTab
6909
7233
  });
6910
- removeElements3({
6911
- title: __75("Tabs", "elementor"),
7234
+ removeElements4({
7235
+ title: __77("Tabs", "elementor"),
6912
7236
  elementIds: items3.flatMap(({ item, index }) => {
6913
7237
  const tabId = item.id;
6914
- const tabContentContainer = getContainer8(tabContentAreaId);
7238
+ const tabContentContainer = getContainer10(tabContentAreaId);
6915
7239
  const tabContentId = tabContentContainer?.children?.[index]?.id;
6916
7240
  if (!tabContentId) {
6917
7241
  throw new Error("Content ID is required");
@@ -6935,15 +7259,15 @@ var useActions2 = () => {
6935
7259
  tabsMenuId,
6936
7260
  items: items3
6937
7261
  }) => {
6938
- const tabContentArea = getContainer8(tabContentAreaId);
6939
- const tabsMenu = getContainer8(tabsMenuId);
7262
+ const tabContentArea = getContainer10(tabContentAreaId);
7263
+ const tabsMenu = getContainer10(tabsMenuId);
6940
7264
  if (!tabContentArea || !tabsMenu) {
6941
7265
  throw new Error("Tab containers not found");
6942
7266
  }
6943
7267
  items3.forEach(({ index }) => {
6944
7268
  const position = index + 1;
6945
- createElements3({
6946
- title: __75("Tabs", "elementor"),
7269
+ createElements4({
7270
+ title: __77("Tabs", "elementor"),
6947
7271
  elements: [
6948
7272
  {
6949
7273
  container: tabContentArea,
@@ -7012,12 +7336,12 @@ var calculateDefaultOnDuplicate = ({
7012
7336
  var TAB_MENU_ELEMENT_TYPE = "e-tabs-menu";
7013
7337
  var TAB_CONTENT_AREA_ELEMENT_TYPE = "e-tabs-content-area";
7014
7338
  var TabsControl = ({ label }) => {
7015
- return /* @__PURE__ */ React98.createElement(SettingsField, { bind: "default-active-tab", propDisplayName: __76("Tabs", "elementor") }, /* @__PURE__ */ React98.createElement(TabsControlContent, { label }));
7339
+ return /* @__PURE__ */ React99.createElement(SettingsField, { bind: "default-active-tab", propDisplayName: __78("Tabs", "elementor") }, /* @__PURE__ */ React99.createElement(TabsControlContent, { label }));
7016
7340
  };
7017
7341
  var TabsControlContent = ({ label }) => {
7018
7342
  const { element } = useElement();
7019
- const { addItem: addItem2, duplicateItem: duplicateItem2, moveItem: moveItem2, removeItem: removeItem2 } = useActions2();
7020
- const { [TAB_ELEMENT_TYPE]: tabLinks } = useElementChildren3(element.id, {
7343
+ const { addItem: addItem2, duplicateItem: duplicateItem2, moveItem: moveItem2, removeItem: removeItem2 } = useActions3();
7344
+ const { [TAB_ELEMENT_TYPE]: tabLinks } = useElementChildren4(element.id, {
7021
7345
  [TAB_MENU_ELEMENT_TYPE]: TAB_ELEMENT_TYPE
7022
7346
  });
7023
7347
  const tabList = getElementByType(element.id, TAB_MENU_ELEMENT_TYPE);
@@ -7056,8 +7380,8 @@ var TabsControlContent = ({ label }) => {
7056
7380
  });
7057
7381
  }
7058
7382
  };
7059
- return /* @__PURE__ */ React98.createElement(
7060
- Repeater3,
7383
+ return /* @__PURE__ */ React99.createElement(
7384
+ Repeater4,
7061
7385
  {
7062
7386
  showToggle: false,
7063
7387
  values: repeaterValues,
@@ -7067,20 +7391,20 @@ var TabsControlContent = ({ label }) => {
7067
7391
  itemSettings: {
7068
7392
  getId: ({ item }) => item.id,
7069
7393
  initialValues: { id: "", title: "Tab" },
7070
- Label: ItemLabel3,
7071
- Content: ItemContent3,
7394
+ Label: ItemLabel4,
7395
+ Content: ItemContent4,
7072
7396
  Icon: () => null
7073
7397
  }
7074
7398
  }
7075
7399
  );
7076
7400
  };
7077
- var ItemLabel3 = ({ value, index }) => {
7078
- return /* @__PURE__ */ React98.createElement(Stack17, { sx: { minHeight: 20 }, direction: "row", alignItems: "center", gap: 1.5 }, value.id ? /* @__PURE__ */ React98.createElement(TabRepeaterLabel, { elementId: value.id, fallbackTitle: value.title }) : /* @__PURE__ */ React98.createElement("span", null, value?.title), /* @__PURE__ */ React98.createElement(ItemDefaultTab, { index }));
7401
+ var ItemLabel4 = ({ value, index }) => {
7402
+ return /* @__PURE__ */ React99.createElement(Stack18, { sx: { minHeight: 20 }, direction: "row", alignItems: "center", gap: 1.5 }, value.id ? /* @__PURE__ */ React99.createElement(TabRepeaterLabel, { elementId: value.id, fallbackTitle: value.title }) : /* @__PURE__ */ React99.createElement("span", null, value?.title), /* @__PURE__ */ React99.createElement(ItemDefaultTab, { index }));
7079
7403
  };
7080
7404
  var TabRepeaterLabel = ({ elementId, fallbackTitle }) => {
7081
- const editorSettings = useElementEditorSettings4(elementId);
7405
+ const editorSettings = useElementEditorSettings5(elementId);
7082
7406
  const label = editorSettings?.title ?? fallbackTitle ?? "";
7083
- return /* @__PURE__ */ React98.createElement("span", null, label);
7407
+ return /* @__PURE__ */ React99.createElement("span", null, label);
7084
7408
  };
7085
7409
  var ItemDefaultTab = ({ index }) => {
7086
7410
  const { value: defaultItem } = useBoundProp8(numberPropTypeUtil4);
@@ -7088,18 +7412,18 @@ var ItemDefaultTab = ({ index }) => {
7088
7412
  if (!isDefault) {
7089
7413
  return null;
7090
7414
  }
7091
- return /* @__PURE__ */ React98.createElement(Chip4, { size: "tiny", shape: "rounded", label: __76("Default", "elementor") });
7415
+ return /* @__PURE__ */ React99.createElement(Chip4, { size: "tiny", shape: "rounded", label: __78("Default", "elementor") });
7092
7416
  };
7093
- var ItemContent3 = ({ value, index }) => {
7417
+ var ItemContent4 = ({ value, index }) => {
7094
7418
  if (!value.id) {
7095
7419
  return null;
7096
7420
  }
7097
- return /* @__PURE__ */ React98.createElement(Stack17, { p: 2, gap: 1.5 }, /* @__PURE__ */ React98.createElement(TabLabelControl, { elementId: value.id }), /* @__PURE__ */ React98.createElement(SettingsField, { bind: "default-active-tab", propDisplayName: __76("Tabs", "elementor") }, /* @__PURE__ */ React98.createElement(DefaultTabControl, { tabIndex: index })));
7421
+ return /* @__PURE__ */ React99.createElement(Stack18, { p: 2, gap: 1.5 }, /* @__PURE__ */ React99.createElement(TabLabelControl, { elementId: value.id }), /* @__PURE__ */ React99.createElement(SettingsField, { bind: "default-active-tab", propDisplayName: __78("Tabs", "elementor") }, /* @__PURE__ */ React99.createElement(DefaultTabControl, { tabIndex: index })));
7098
7422
  };
7099
7423
  var DefaultTabControl = ({ tabIndex }) => {
7100
7424
  const { value, setValue } = useBoundProp8(numberPropTypeUtil4);
7101
7425
  const isDefault = value === tabIndex;
7102
- return /* @__PURE__ */ React98.createElement(Stack17, { direction: "row", alignItems: "center", justifyContent: "space-between", gap: 2 }, /* @__PURE__ */ React98.createElement(ControlFormLabel5, null, __76("Set as default tab", "elementor")), /* @__PURE__ */ React98.createElement(ConditionalTooltip, { showTooltip: isDefault, placement: "right" }, /* @__PURE__ */ React98.createElement(
7426
+ return /* @__PURE__ */ React99.createElement(Stack18, { direction: "row", alignItems: "center", justifyContent: "space-between", gap: 2 }, /* @__PURE__ */ React99.createElement(ControlFormLabel6, null, __78("Set as default tab", "elementor")), /* @__PURE__ */ React99.createElement(ConditionalTooltip, { showTooltip: isDefault, placement: "right" }, /* @__PURE__ */ React99.createElement(
7103
7427
  Switch2,
7104
7428
  {
7105
7429
  size: "small",
@@ -7115,15 +7439,15 @@ var DefaultTabControl = ({ tabIndex }) => {
7115
7439
  )));
7116
7440
  };
7117
7441
  var TabLabelControl = ({ elementId }) => {
7118
- const editorSettings = useElementEditorSettings4(elementId);
7442
+ const editorSettings = useElementEditorSettings5(elementId);
7119
7443
  const label = editorSettings?.title ?? "";
7120
- return /* @__PURE__ */ React98.createElement(Stack17, { gap: 1 }, /* @__PURE__ */ React98.createElement(ControlFormLabel5, null, __76("Tab name", "elementor")), /* @__PURE__ */ React98.createElement(
7121
- TextField4,
7444
+ return /* @__PURE__ */ React99.createElement(Stack18, { gap: 1 }, /* @__PURE__ */ React99.createElement(ControlFormLabel6, null, __78("Tab name", "elementor")), /* @__PURE__ */ React99.createElement(
7445
+ TextField5,
7122
7446
  {
7123
7447
  size: "tiny",
7124
7448
  value: label,
7125
7449
  onChange: ({ target }) => {
7126
- updateElementEditorSettings4({
7450
+ updateElementEditorSettings5({
7127
7451
  elementId,
7128
7452
  settings: { title: target.value }
7129
7453
  });
@@ -7138,28 +7462,29 @@ var ConditionalTooltip = ({
7138
7462
  if (!showTooltip) {
7139
7463
  return children;
7140
7464
  }
7141
- return /* @__PURE__ */ React98.createElement(
7465
+ return /* @__PURE__ */ React99.createElement(
7142
7466
  Infotip3,
7143
7467
  {
7144
7468
  arrow: false,
7145
- content: /* @__PURE__ */ React98.createElement(
7469
+ content: /* @__PURE__ */ React99.createElement(
7146
7470
  Alert5,
7147
7471
  {
7148
7472
  color: "secondary",
7149
- icon: /* @__PURE__ */ React98.createElement(InfoCircleFilledIcon3, { fontSize: "tiny" }),
7473
+ icon: /* @__PURE__ */ React99.createElement(InfoCircleFilledIcon3, { fontSize: "tiny" }),
7150
7474
  size: "small",
7151
7475
  sx: { width: 288 }
7152
7476
  },
7153
- /* @__PURE__ */ React98.createElement(Typography5, { variant: "body2" }, __76("To change the default tab, simply set another tab as default.", "elementor"))
7477
+ /* @__PURE__ */ React99.createElement(Typography5, { variant: "body2" }, __78("To change the default tab, simply set another tab as default.", "elementor"))
7154
7478
  )
7155
7479
  },
7156
- /* @__PURE__ */ React98.createElement("span", null, children)
7480
+ /* @__PURE__ */ React99.createElement("span", null, children)
7157
7481
  );
7158
7482
  };
7159
7483
 
7160
7484
  // src/controls-registry/element-controls/registry.ts
7161
7485
  var controlTypes2 = {
7162
7486
  "list-items": { component: ListItemsControl, layout: "full" },
7487
+ "menu-items": { component: MenuItemsControl, layout: "full" },
7163
7488
  tabs: { component: TabsControl, layout: "full" },
7164
7489
  "accordion-items": { component: AccordionItemsControl, layout: "full" }
7165
7490
  };
@@ -7181,7 +7506,7 @@ import {
7181
7506
  import { controlActionsMenu as controlActionsMenu2 } from "@elementor/menus";
7182
7507
 
7183
7508
  // src/dynamics/components/background-control-dynamic-tag.tsx
7184
- import * as React99 from "react";
7509
+ import * as React100 from "react";
7185
7510
  import { PropKeyProvider as PropKeyProvider4, PropProvider as PropProvider4, useBoundProp as useBoundProp10 } from "@elementor/editor-controls";
7186
7511
  import {
7187
7512
  backgroundImageOverlayPropTypeUtil
@@ -7324,26 +7649,26 @@ var useDynamicTag = (tagName) => {
7324
7649
  };
7325
7650
 
7326
7651
  // src/dynamics/components/background-control-dynamic-tag.tsx
7327
- var BackgroundControlDynamicTagIcon = () => /* @__PURE__ */ React99.createElement(DatabaseIcon, { fontSize: "tiny" });
7652
+ var BackgroundControlDynamicTagIcon = () => /* @__PURE__ */ React100.createElement(DatabaseIcon, { fontSize: "tiny" });
7328
7653
  var BackgroundControlDynamicTagLabel = ({ value }) => {
7329
7654
  const context = useBoundProp10(backgroundImageOverlayPropTypeUtil);
7330
- return /* @__PURE__ */ React99.createElement(PropProvider4, { ...context, value: value.value }, /* @__PURE__ */ React99.createElement(PropKeyProvider4, { bind: "image" }, /* @__PURE__ */ React99.createElement(Wrapper2, { rawValue: value.value })));
7655
+ return /* @__PURE__ */ React100.createElement(PropProvider4, { ...context, value: value.value }, /* @__PURE__ */ React100.createElement(PropKeyProvider4, { bind: "image" }, /* @__PURE__ */ React100.createElement(Wrapper2, { rawValue: value.value })));
7331
7656
  };
7332
7657
  var Wrapper2 = ({ rawValue }) => {
7333
7658
  const { propType } = useBoundProp10();
7334
7659
  const imageOverlayPropType = propType.prop_types["background-image-overlay"];
7335
- return /* @__PURE__ */ React99.createElement(PropProvider4, { propType: imageOverlayPropType.shape.image, value: rawValue, setValue: () => void 0 }, /* @__PURE__ */ React99.createElement(PropKeyProvider4, { bind: "src" }, /* @__PURE__ */ React99.createElement(Content, { rawValue: rawValue.image })));
7660
+ return /* @__PURE__ */ React100.createElement(PropProvider4, { propType: imageOverlayPropType.shape.image, value: rawValue, setValue: () => void 0 }, /* @__PURE__ */ React100.createElement(PropKeyProvider4, { bind: "src" }, /* @__PURE__ */ React100.createElement(Content, { rawValue: rawValue.image })));
7336
7661
  };
7337
7662
  var Content = ({ rawValue }) => {
7338
7663
  const src = rawValue.value.src;
7339
7664
  const dynamicTag = useDynamicTag(src.value.name || "");
7340
- return /* @__PURE__ */ React99.createElement(React99.Fragment, null, dynamicTag?.label);
7665
+ return /* @__PURE__ */ React100.createElement(React100.Fragment, null, dynamicTag?.label);
7341
7666
  };
7342
7667
 
7343
7668
  // src/dynamics/components/dynamic-selection-control.tsx
7344
- import * as React103 from "react";
7669
+ import * as React104 from "react";
7345
7670
  import {
7346
- ControlFormLabel as ControlFormLabel6,
7671
+ ControlFormLabel as ControlFormLabel7,
7347
7672
  PropKeyProvider as PropKeyProvider6,
7348
7673
  PropProvider as PropProvider6,
7349
7674
  useBoundProp as useBoundProp13
@@ -7358,7 +7683,7 @@ import {
7358
7683
  Grid as Grid8,
7359
7684
  IconButton as IconButton2,
7360
7685
  Popover,
7361
- Stack as Stack19,
7686
+ Stack as Stack20,
7362
7687
  Tab as Tab2,
7363
7688
  TabPanel as TabPanel2,
7364
7689
  Tabs as Tabs2,
@@ -7366,7 +7691,7 @@ import {
7366
7691
  usePopupState as usePopupState2,
7367
7692
  useTabs as useTabs2
7368
7693
  } from "@elementor/ui";
7369
- import { __ as __78 } from "@wordpress/i18n";
7694
+ import { __ as __80 } from "@wordpress/i18n";
7370
7695
 
7371
7696
  // src/hooks/use-persist-dynamic-value.ts
7372
7697
  import { useSessionStorage as useSessionStorage5 } from "@elementor/session";
@@ -7377,11 +7702,11 @@ var usePersistDynamicValue = (propKey) => {
7377
7702
  };
7378
7703
 
7379
7704
  // src/dynamics/dynamic-control.tsx
7380
- import * as React101 from "react";
7705
+ import * as React102 from "react";
7381
7706
  import { PropKeyProvider as PropKeyProvider5, PropProvider as PropProvider5, useBoundProp as useBoundProp11 } from "@elementor/editor-controls";
7382
7707
 
7383
7708
  // src/dynamics/components/dynamic-conditional-control.tsx
7384
- import * as React100 from "react";
7709
+ import * as React101 from "react";
7385
7710
  import { useMemo as useMemo13 } from "react";
7386
7711
  import { isDependencyMet as isDependencyMet3 } from "@elementor/editor-props";
7387
7712
  var DynamicConditionalControl = ({
@@ -7423,10 +7748,10 @@ var DynamicConditionalControl = ({
7423
7748
  return { ...defaults, ...convertedSettings };
7424
7749
  }, [defaults, convertedSettings]);
7425
7750
  if (!propType?.dependencies?.terms.length) {
7426
- return /* @__PURE__ */ React100.createElement(React100.Fragment, null, children);
7751
+ return /* @__PURE__ */ React101.createElement(React101.Fragment, null, children);
7427
7752
  }
7428
7753
  const isHidden = !isDependencyMet3(propType?.dependencies, effectiveSettings).isMet;
7429
- return isHidden ? null : /* @__PURE__ */ React100.createElement(React100.Fragment, null, children);
7754
+ return isHidden ? null : /* @__PURE__ */ React101.createElement(React101.Fragment, null, children);
7430
7755
  };
7431
7756
 
7432
7757
  // src/dynamics/dynamic-control.tsx
@@ -7451,7 +7776,7 @@ var DynamicControl = ({ bind, children }) => {
7451
7776
  });
7452
7777
  };
7453
7778
  const propType = createTopLevelObjectType({ schema: dynamicTag.props_schema });
7454
- return /* @__PURE__ */ React101.createElement(PropProvider5, { propType, setValue: setDynamicValue, value: { [bind]: dynamicValue } }, /* @__PURE__ */ React101.createElement(PropKeyProvider5, { bind }, /* @__PURE__ */ React101.createElement(
7779
+ return /* @__PURE__ */ React102.createElement(PropProvider5, { propType, setValue: setDynamicValue, value: { [bind]: dynamicValue } }, /* @__PURE__ */ React102.createElement(PropKeyProvider5, { bind }, /* @__PURE__ */ React102.createElement(
7455
7780
  DynamicConditionalControl,
7456
7781
  {
7457
7782
  propType: dynamicPropType,
@@ -7463,13 +7788,13 @@ var DynamicControl = ({ bind, children }) => {
7463
7788
  };
7464
7789
 
7465
7790
  // src/dynamics/components/dynamic-selection.tsx
7466
- import * as React102 from "react";
7467
- import { Fragment as Fragment17, useEffect as useEffect11, useState as useState11 } from "react";
7791
+ import * as React103 from "react";
7792
+ import { Fragment as Fragment17, useEffect as useEffect12, useState as useState11 } from "react";
7468
7793
  import { trackUpgradePromotionClick, trackViewPromotion, useBoundProp as useBoundProp12 } from "@elementor/editor-controls";
7469
7794
  import { CtaButton, PopoverHeader, PopoverMenuList, SearchField, SectionPopoverBody } from "@elementor/editor-ui";
7470
7795
  import { DatabaseIcon as DatabaseIcon2 } from "@elementor/icons";
7471
- import { Divider as Divider7, Link as Link3, Stack as Stack18, Typography as Typography6, useTheme as useTheme3 } from "@elementor/ui";
7472
- import { __ as __77 } from "@wordpress/i18n";
7796
+ import { Divider as Divider7, Link as Link3, Stack as Stack19, Typography as Typography6, useTheme as useTheme3 } from "@elementor/ui";
7797
+ import { __ as __79 } from "@wordpress/i18n";
7473
7798
  var SIZE2 = "tiny";
7474
7799
  var PROMO_TEXT_WIDTH = 170;
7475
7800
  var PRO_DYNAMIC_TAGS_URL = "https://go.elementor.com/go-pro-dynamic-tags-modal/";
@@ -7484,7 +7809,7 @@ var DynamicSelection = ({ close: closePopover, expired = false }) => {
7484
7809
  const isCurrentValueDynamic = !!dynamicValue;
7485
7810
  const options13 = useFilteredOptions(searchValue);
7486
7811
  const hasNoDynamicTags = !options13.length && !searchValue.trim();
7487
- useEffect11(() => {
7812
+ useEffect12(() => {
7488
7813
  if (hasNoDynamicTags) {
7489
7814
  trackViewPromotion({ target_name: "dynamic_tags" });
7490
7815
  } else if (expired) {
@@ -7516,19 +7841,19 @@ var DynamicSelection = ({ close: closePopover, expired = false }) => {
7516
7841
  ]);
7517
7842
  const getPopOverContent = () => {
7518
7843
  if (hasNoDynamicTags) {
7519
- return /* @__PURE__ */ React102.createElement(NoDynamicTags, null);
7844
+ return /* @__PURE__ */ React103.createElement(NoDynamicTags, null);
7520
7845
  }
7521
7846
  if (expired) {
7522
- return /* @__PURE__ */ React102.createElement(ExpiredDynamicTags, null);
7847
+ return /* @__PURE__ */ React103.createElement(ExpiredDynamicTags, null);
7523
7848
  }
7524
- return /* @__PURE__ */ React102.createElement(Fragment17, null, /* @__PURE__ */ React102.createElement(
7849
+ return /* @__PURE__ */ React103.createElement(Fragment17, null, /* @__PURE__ */ React103.createElement(
7525
7850
  SearchField,
7526
7851
  {
7527
7852
  value: searchValue,
7528
7853
  onSearch: handleSearch,
7529
- placeholder: __77("Search dynamic tags\u2026", "elementor")
7854
+ placeholder: __79("Search dynamic tags\u2026", "elementor")
7530
7855
  }
7531
- ), /* @__PURE__ */ React102.createElement(Divider7, null), /* @__PURE__ */ React102.createElement(
7856
+ ), /* @__PURE__ */ React103.createElement(Divider7, null), /* @__PURE__ */ React103.createElement(
7532
7857
  PopoverMenuList,
7533
7858
  {
7534
7859
  items: virtualizedItems,
@@ -7536,21 +7861,21 @@ var DynamicSelection = ({ close: closePopover, expired = false }) => {
7536
7861
  onClose: closePopover,
7537
7862
  selectedValue: dynamicValue?.name,
7538
7863
  itemStyle: (item) => item.type === "item" ? { paddingInlineStart: theme.spacing(3.5) } : {},
7539
- noResultsComponent: /* @__PURE__ */ React102.createElement(NoResults, { searchValue, onClear: () => setSearchValue("") })
7864
+ noResultsComponent: /* @__PURE__ */ React103.createElement(NoResults, { searchValue, onClear: () => setSearchValue("") })
7540
7865
  }
7541
7866
  ));
7542
7867
  };
7543
- return /* @__PURE__ */ React102.createElement(SectionPopoverBody, { "aria-label": __77("Dynamic tags", "elementor") }, /* @__PURE__ */ React102.createElement(
7868
+ return /* @__PURE__ */ React103.createElement(SectionPopoverBody, { "aria-label": __79("Dynamic tags", "elementor") }, /* @__PURE__ */ React103.createElement(
7544
7869
  PopoverHeader,
7545
7870
  {
7546
- title: __77("Dynamic tags", "elementor"),
7871
+ title: __79("Dynamic tags", "elementor"),
7547
7872
  onClose: closePopover,
7548
- icon: /* @__PURE__ */ React102.createElement(DatabaseIcon2, { fontSize: SIZE2 })
7873
+ icon: /* @__PURE__ */ React103.createElement(DatabaseIcon2, { fontSize: SIZE2 })
7549
7874
  }
7550
7875
  ), getPopOverContent());
7551
7876
  };
7552
- var NoResults = ({ searchValue, onClear }) => /* @__PURE__ */ React102.createElement(
7553
- Stack18,
7877
+ var NoResults = ({ searchValue, onClear }) => /* @__PURE__ */ React103.createElement(
7878
+ Stack19,
7554
7879
  {
7555
7880
  gap: 1,
7556
7881
  alignItems: "center",
@@ -7560,12 +7885,12 @@ var NoResults = ({ searchValue, onClear }) => /* @__PURE__ */ React102.createEle
7560
7885
  color: "text.secondary",
7561
7886
  sx: { pb: 3.5 }
7562
7887
  },
7563
- /* @__PURE__ */ React102.createElement(DatabaseIcon2, { fontSize: "large" }),
7564
- /* @__PURE__ */ React102.createElement(Typography6, { align: "center", variant: "subtitle2" }, __77("Sorry, nothing matched", "elementor"), /* @__PURE__ */ React102.createElement("br", null), "\u201C", searchValue, "\u201D."),
7565
- /* @__PURE__ */ React102.createElement(Typography6, { align: "center", variant: "caption", sx: { display: "flex", flexDirection: "column" } }, __77("Try something else.", "elementor"), /* @__PURE__ */ React102.createElement(Link3, { color: "text.secondary", variant: "caption", component: "button", onClick: onClear }, __77("Clear & try again", "elementor")))
7888
+ /* @__PURE__ */ React103.createElement(DatabaseIcon2, { fontSize: "large" }),
7889
+ /* @__PURE__ */ React103.createElement(Typography6, { align: "center", variant: "subtitle2" }, __79("Sorry, nothing matched", "elementor"), /* @__PURE__ */ React103.createElement("br", null), "\u201C", searchValue, "\u201D."),
7890
+ /* @__PURE__ */ React103.createElement(Typography6, { align: "center", variant: "caption", sx: { display: "flex", flexDirection: "column" } }, __79("Try something else.", "elementor"), /* @__PURE__ */ React103.createElement(Link3, { color: "text.secondary", variant: "caption", component: "button", onClick: onClear }, __79("Clear & try again", "elementor")))
7566
7891
  );
7567
- var NoDynamicTags = () => /* @__PURE__ */ React102.createElement(React102.Fragment, null, /* @__PURE__ */ React102.createElement(Divider7, null), /* @__PURE__ */ React102.createElement(
7568
- Stack18,
7892
+ var NoDynamicTags = () => /* @__PURE__ */ React103.createElement(React103.Fragment, null, /* @__PURE__ */ React103.createElement(Divider7, null), /* @__PURE__ */ React103.createElement(
7893
+ Stack19,
7569
7894
  {
7570
7895
  gap: 1,
7571
7896
  alignItems: "center",
@@ -7575,10 +7900,10 @@ var NoDynamicTags = () => /* @__PURE__ */ React102.createElement(React102.Fragme
7575
7900
  color: "text.secondary",
7576
7901
  sx: { pb: 3.5 }
7577
7902
  },
7578
- /* @__PURE__ */ React102.createElement(DatabaseIcon2, { fontSize: "large" }),
7579
- /* @__PURE__ */ React102.createElement(Typography6, { align: "center", variant: "subtitle2" }, __77("Streamline your workflow with dynamic tags", "elementor")),
7580
- /* @__PURE__ */ React102.createElement(Typography6, { align: "center", variant: "caption", width: PROMO_TEXT_WIDTH }, __77("Upgrade now to display your content dynamically.", "elementor")),
7581
- /* @__PURE__ */ React102.createElement(
7903
+ /* @__PURE__ */ React103.createElement(DatabaseIcon2, { fontSize: "large" }),
7904
+ /* @__PURE__ */ React103.createElement(Typography6, { align: "center", variant: "subtitle2" }, __79("Streamline your workflow with dynamic tags", "elementor")),
7905
+ /* @__PURE__ */ React103.createElement(Typography6, { align: "center", variant: "caption", width: PROMO_TEXT_WIDTH }, __79("Upgrade now to display your content dynamically.", "elementor")),
7906
+ /* @__PURE__ */ React103.createElement(
7582
7907
  CtaButton,
7583
7908
  {
7584
7909
  size: "small",
@@ -7587,8 +7912,8 @@ var NoDynamicTags = () => /* @__PURE__ */ React102.createElement(React102.Fragme
7587
7912
  }
7588
7913
  )
7589
7914
  ));
7590
- var ExpiredDynamicTags = () => /* @__PURE__ */ React102.createElement(React102.Fragment, null, /* @__PURE__ */ React102.createElement(Divider7, null), /* @__PURE__ */ React102.createElement(
7591
- Stack18,
7915
+ var ExpiredDynamicTags = () => /* @__PURE__ */ React103.createElement(React103.Fragment, null, /* @__PURE__ */ React103.createElement(Divider7, null), /* @__PURE__ */ React103.createElement(
7916
+ Stack19,
7592
7917
  {
7593
7918
  gap: 1,
7594
7919
  alignItems: "center",
@@ -7598,16 +7923,16 @@ var ExpiredDynamicTags = () => /* @__PURE__ */ React102.createElement(React102.F
7598
7923
  color: "text.secondary",
7599
7924
  sx: { pb: 3.5 }
7600
7925
  },
7601
- /* @__PURE__ */ React102.createElement(DatabaseIcon2, { fontSize: "large" }),
7602
- /* @__PURE__ */ React102.createElement(Typography6, { align: "center", variant: "subtitle2" }, __77("Unlock your Dynamic tags again", "elementor")),
7603
- /* @__PURE__ */ React102.createElement(Typography6, { align: "center", variant: "caption", width: PROMO_TEXT_WIDTH }, __77("Dynamic tags need Elementor Pro. Renew now to keep them active.", "elementor")),
7604
- /* @__PURE__ */ React102.createElement(
7926
+ /* @__PURE__ */ React103.createElement(DatabaseIcon2, { fontSize: "large" }),
7927
+ /* @__PURE__ */ React103.createElement(Typography6, { align: "center", variant: "subtitle2" }, __79("Unlock your Dynamic tags again", "elementor")),
7928
+ /* @__PURE__ */ React103.createElement(Typography6, { align: "center", variant: "caption", width: PROMO_TEXT_WIDTH }, __79("Dynamic tags need Elementor Pro. Renew now to keep them active.", "elementor")),
7929
+ /* @__PURE__ */ React103.createElement(
7605
7930
  CtaButton,
7606
7931
  {
7607
7932
  size: "small",
7608
7933
  href: RENEW_DYNAMIC_TAGS_URL,
7609
7934
  onClick: () => trackUpgradePromotionClick({ target_name: "dynamic_tags" }),
7610
- children: __77("Renew Now", "elementor")
7935
+ children: __79("Renew Now", "elementor")
7611
7936
  }
7612
7937
  )
7613
7938
  ));
@@ -7644,7 +7969,7 @@ var DynamicSelectionControl = ({ OriginalControl, ...props }) => {
7644
7969
  const { name: tagName = "" } = value;
7645
7970
  const dynamicTag = useDynamicTag(tagName);
7646
7971
  if (!isDynamicTagSupported(tagName) && OriginalControl) {
7647
- return /* @__PURE__ */ React103.createElement(PropProvider6, { propType: originalPropType, value: { [bind]: null }, setValue: setAnyValue }, /* @__PURE__ */ React103.createElement(PropKeyProvider6, { bind }, /* @__PURE__ */ React103.createElement(OriginalControl, { ...props })));
7972
+ return /* @__PURE__ */ React104.createElement(PropProvider6, { propType: originalPropType, value: { [bind]: null }, setValue: setAnyValue }, /* @__PURE__ */ React104.createElement(PropKeyProvider6, { bind }, /* @__PURE__ */ React104.createElement(OriginalControl, { ...props })));
7648
7973
  }
7649
7974
  const removeDynamicTag = () => {
7650
7975
  setAnyValue(propValueFromHistory ?? null);
@@ -7652,25 +7977,25 @@ var DynamicSelectionControl = ({ OriginalControl, ...props }) => {
7652
7977
  if (!dynamicTag) {
7653
7978
  throw new Error(`Dynamic tag ${tagName} not found`);
7654
7979
  }
7655
- return /* @__PURE__ */ React103.createElement(Box9, null, /* @__PURE__ */ React103.createElement(
7980
+ return /* @__PURE__ */ React104.createElement(Box9, null, /* @__PURE__ */ React104.createElement(
7656
7981
  Tag,
7657
7982
  {
7658
7983
  fullWidth: true,
7659
7984
  showActionsOnHover: true,
7660
7985
  label: dynamicTag.label,
7661
- startIcon: /* @__PURE__ */ React103.createElement(DatabaseIcon3, { fontSize: SIZE3 }),
7986
+ startIcon: /* @__PURE__ */ React104.createElement(DatabaseIcon3, { fontSize: SIZE3 }),
7662
7987
  ...bindTrigger2(selectionPopoverState),
7663
- actions: /* @__PURE__ */ React103.createElement(React103.Fragment, null, /* @__PURE__ */ React103.createElement(DynamicSettingsPopover, { dynamicTag, disabled: readonly }), /* @__PURE__ */ React103.createElement(
7988
+ actions: /* @__PURE__ */ React104.createElement(React104.Fragment, null, /* @__PURE__ */ React104.createElement(DynamicSettingsPopover, { dynamicTag, disabled: readonly }), /* @__PURE__ */ React104.createElement(
7664
7989
  IconButton2,
7665
7990
  {
7666
7991
  size: SIZE3,
7667
7992
  onClick: removeDynamicTag,
7668
- "aria-label": __78("Remove dynamic value", "elementor")
7993
+ "aria-label": __80("Remove dynamic value", "elementor")
7669
7994
  },
7670
- /* @__PURE__ */ React103.createElement(XIcon, { fontSize: SIZE3 })
7995
+ /* @__PURE__ */ React104.createElement(XIcon, { fontSize: SIZE3 })
7671
7996
  ))
7672
7997
  }
7673
- ), /* @__PURE__ */ React103.createElement(
7998
+ ), /* @__PURE__ */ React104.createElement(
7674
7999
  Popover,
7675
8000
  {
7676
8001
  disablePortal: true,
@@ -7682,7 +8007,7 @@ var DynamicSelectionControl = ({ OriginalControl, ...props }) => {
7682
8007
  },
7683
8008
  ...bindPopover(selectionPopoverState)
7684
8009
  },
7685
- /* @__PURE__ */ React103.createElement(SectionPopoverBody2, { "aria-label": __78("Dynamic tags", "elementor") }, /* @__PURE__ */ React103.createElement(DynamicSelection, { close: selectionPopoverState.close, expired: readonly }))
8010
+ /* @__PURE__ */ React104.createElement(SectionPopoverBody2, { "aria-label": __80("Dynamic tags", "elementor") }, /* @__PURE__ */ React104.createElement(DynamicSelection, { close: selectionPopoverState.close, expired: readonly }))
7686
8011
  ));
7687
8012
  };
7688
8013
  var DynamicSettingsPopover = ({
@@ -7694,16 +8019,16 @@ var DynamicSettingsPopover = ({
7694
8019
  if (!hasDynamicSettings) {
7695
8020
  return null;
7696
8021
  }
7697
- return /* @__PURE__ */ React103.createElement(React103.Fragment, null, /* @__PURE__ */ React103.createElement(
8022
+ return /* @__PURE__ */ React104.createElement(React104.Fragment, null, /* @__PURE__ */ React104.createElement(
7698
8023
  IconButton2,
7699
8024
  {
7700
8025
  size: SIZE3,
7701
8026
  disabled,
7702
8027
  ...!disabled && bindTrigger2(popupState),
7703
- "aria-label": __78("Dynamic settings", "elementor")
8028
+ "aria-label": __80("Dynamic settings", "elementor")
7704
8029
  },
7705
- /* @__PURE__ */ React103.createElement(SettingsIcon, { fontSize: SIZE3 })
7706
- ), /* @__PURE__ */ React103.createElement(
8030
+ /* @__PURE__ */ React104.createElement(SettingsIcon, { fontSize: SIZE3 })
8031
+ ), /* @__PURE__ */ React104.createElement(
7707
8032
  Popover,
7708
8033
  {
7709
8034
  disablePortal: true,
@@ -7715,14 +8040,14 @@ var DynamicSettingsPopover = ({
7715
8040
  },
7716
8041
  ...bindPopover(popupState)
7717
8042
  },
7718
- /* @__PURE__ */ React103.createElement(SectionPopoverBody2, { "aria-label": __78("Dynamic settings", "elementor") }, /* @__PURE__ */ React103.createElement(
8043
+ /* @__PURE__ */ React104.createElement(SectionPopoverBody2, { "aria-label": __80("Dynamic settings", "elementor") }, /* @__PURE__ */ React104.createElement(
7719
8044
  PopoverHeader2,
7720
8045
  {
7721
8046
  title: dynamicTag.label,
7722
8047
  onClose: popupState.close,
7723
- icon: /* @__PURE__ */ React103.createElement(DatabaseIcon3, { fontSize: SIZE3 })
8048
+ icon: /* @__PURE__ */ React104.createElement(DatabaseIcon3, { fontSize: SIZE3 })
7724
8049
  }
7725
- ), /* @__PURE__ */ React103.createElement(DynamicSettings, { controls: dynamicTag.atomic_controls, tagName: dynamicTag.name }))
8050
+ ), /* @__PURE__ */ React104.createElement(DynamicSettings, { controls: dynamicTag.atomic_controls, tagName: dynamicTag.name }))
7726
8051
  ));
7727
8052
  };
7728
8053
  var DynamicSettings = ({ controls, tagName }) => {
@@ -7733,9 +8058,9 @@ var DynamicSettings = ({ controls, tagName }) => {
7733
8058
  }
7734
8059
  if (tagsWithoutTabs.includes(tagName)) {
7735
8060
  const singleTab = tabs[0];
7736
- return /* @__PURE__ */ React103.createElement(React103.Fragment, null, /* @__PURE__ */ React103.createElement(Divider8, null), /* @__PURE__ */ React103.createElement(ControlsItemsStack, { items: singleTab.value.items }));
8061
+ return /* @__PURE__ */ React104.createElement(React104.Fragment, null, /* @__PURE__ */ React104.createElement(Divider8, null), /* @__PURE__ */ React104.createElement(ControlsItemsStack, { items: singleTab.value.items }));
7737
8062
  }
7738
- return /* @__PURE__ */ React103.createElement(React103.Fragment, null, tabs.length > 1 && /* @__PURE__ */ React103.createElement(Tabs2, { size: "small", variant: "fullWidth", ...getTabsProps() }, tabs.map(({ value }, index) => /* @__PURE__ */ React103.createElement(
8063
+ return /* @__PURE__ */ React104.createElement(React104.Fragment, null, tabs.length > 1 && /* @__PURE__ */ React104.createElement(Tabs2, { size: "small", variant: "fullWidth", ...getTabsProps() }, tabs.map(({ value }, index) => /* @__PURE__ */ React104.createElement(
7739
8064
  Tab2,
7740
8065
  {
7741
8066
  key: index,
@@ -7743,15 +8068,15 @@ var DynamicSettings = ({ controls, tagName }) => {
7743
8068
  sx: { px: 1, py: 0.5 },
7744
8069
  ...getTabProps(index)
7745
8070
  }
7746
- ))), /* @__PURE__ */ React103.createElement(Divider8, null), tabs.map(({ value }, index) => {
7747
- return /* @__PURE__ */ React103.createElement(
8071
+ ))), /* @__PURE__ */ React104.createElement(Divider8, null), tabs.map(({ value }, index) => {
8072
+ return /* @__PURE__ */ React104.createElement(
7748
8073
  TabPanel2,
7749
8074
  {
7750
8075
  key: index,
7751
8076
  sx: { flexGrow: 1, py: 0, overflowY: "auto" },
7752
8077
  ...getTabPanelProps(index)
7753
8078
  },
7754
- /* @__PURE__ */ React103.createElement(ControlsItemsStack, { items: value.items })
8079
+ /* @__PURE__ */ React104.createElement(ControlsItemsStack, { items: value.items })
7755
8080
  );
7756
8081
  }));
7757
8082
  };
@@ -7793,11 +8118,11 @@ var Control2 = ({ control }) => {
7793
8118
  display: "grid",
7794
8119
  gridTemplateColumns: isSwitchControl ? "minmax(0, 1fr) max-content" : "1fr 1fr"
7795
8120
  } : {};
7796
- return /* @__PURE__ */ React103.createElement(DynamicControl, { bind: control.bind }, /* @__PURE__ */ React103.createElement(Grid8, { container: true, gap: 0.75, sx: layoutStyleProps }, control.label ? /* @__PURE__ */ React103.createElement(Grid8, { item: true, xs: 12 }, /* @__PURE__ */ React103.createElement(ControlFormLabel6, null, control.label)) : null, /* @__PURE__ */ React103.createElement(Grid8, { item: true, xs: 12 }, /* @__PURE__ */ React103.createElement(Control, { type: control.type, props: controlProps }))));
8121
+ return /* @__PURE__ */ React104.createElement(DynamicControl, { bind: control.bind }, /* @__PURE__ */ React104.createElement(Grid8, { container: true, gap: 0.75, sx: layoutStyleProps }, control.label ? /* @__PURE__ */ React104.createElement(Grid8, { item: true, xs: 12 }, /* @__PURE__ */ React104.createElement(ControlFormLabel7, null, control.label)) : null, /* @__PURE__ */ React104.createElement(Grid8, { item: true, xs: 12 }, /* @__PURE__ */ React104.createElement(Control, { type: control.type, props: controlProps }))));
7797
8122
  };
7798
8123
  function ControlsItemsStack({ items: items3 }) {
7799
- return /* @__PURE__ */ React103.createElement(Stack19, { p: 2, gap: 2, sx: { overflowY: "auto" } }, items3.map(
7800
- (item) => item.type === "control" ? /* @__PURE__ */ React103.createElement(Control2, { key: item.value.bind, control: item.value }) : null
8124
+ return /* @__PURE__ */ React104.createElement(Stack20, { p: 2, gap: 2, sx: { overflowY: "auto" } }, items3.map(
8125
+ (item) => item.type === "control" ? /* @__PURE__ */ React104.createElement(Control2, { key: item.value.bind, control: item.value }) : null
7801
8126
  ));
7802
8127
  }
7803
8128
 
@@ -7854,18 +8179,18 @@ function getDynamicValue(name, settings, renderPostId) {
7854
8179
  }
7855
8180
 
7856
8181
  // src/dynamics/hooks/use-prop-dynamic-action.tsx
7857
- import * as React104 from "react";
8182
+ import * as React105 from "react";
7858
8183
  import { useBoundProp as useBoundProp14 } from "@elementor/editor-controls";
7859
8184
  import { DatabaseIcon as DatabaseIcon4 } from "@elementor/icons";
7860
- import { __ as __79 } from "@wordpress/i18n";
8185
+ import { __ as __81 } from "@wordpress/i18n";
7861
8186
  var usePropDynamicAction = () => {
7862
8187
  const { propType } = useBoundProp14();
7863
8188
  const visible = !!propType && supportsDynamic(propType);
7864
8189
  return {
7865
8190
  visible,
7866
8191
  icon: DatabaseIcon4,
7867
- title: __79("Dynamic tags", "elementor"),
7868
- content: ({ close }) => /* @__PURE__ */ React104.createElement(DynamicSelection, { close })
8192
+ title: __81("Dynamic tags", "elementor"),
8193
+ content: ({ close }) => /* @__PURE__ */ React105.createElement(DynamicSelection, { close })
7869
8194
  };
7870
8195
  };
7871
8196
 
@@ -7900,7 +8225,7 @@ import { useBoundProp as useBoundProp15 } from "@elementor/editor-controls";
7900
8225
  import { hasVariable as hasVariable2 } from "@elementor/editor-variables";
7901
8226
  import { BrushBigIcon } from "@elementor/icons";
7902
8227
  import { controlActionsMenu as controlActionsMenu3 } from "@elementor/menus";
7903
- import { __ as __80 } from "@wordpress/i18n";
8228
+ import { __ as __82 } from "@wordpress/i18n";
7904
8229
 
7905
8230
  // src/utils/is-equal.ts
7906
8231
  function isEqual(a, b) {
@@ -7976,21 +8301,21 @@ function useResetStyleValueProps() {
7976
8301
  const visible = calculateVisibility();
7977
8302
  return {
7978
8303
  visible,
7979
- title: __80("Clear", "elementor"),
8304
+ title: __82("Clear", "elementor"),
7980
8305
  icon: BrushBigIcon,
7981
8306
  onClick: () => resetValue()
7982
8307
  };
7983
8308
  }
7984
8309
 
7985
8310
  // src/styles-inheritance/components/styles-inheritance-indicator.tsx
7986
- import * as React110 from "react";
8311
+ import * as React111 from "react";
7987
8312
  import { useBoundProp as useBoundProp16 } from "@elementor/editor-controls";
7988
8313
  import { isEmpty as isEmpty3 } from "@elementor/editor-props";
7989
8314
  import { ELEMENTS_BASE_STYLES_PROVIDER_KEY as ELEMENTS_BASE_STYLES_PROVIDER_KEY4 } from "@elementor/editor-styles-repository";
7990
- import { __ as __84 } from "@wordpress/i18n";
8315
+ import { __ as __86 } from "@wordpress/i18n";
7991
8316
 
7992
8317
  // src/styles-inheritance/components/styles-inheritance-infotip.tsx
7993
- import * as React109 from "react";
8318
+ import * as React110 from "react";
7994
8319
  import { useMemo as useMemo14, useRef as useRef22, useState as useState13 } from "react";
7995
8320
  import {
7996
8321
  createPropsResolver as createPropsResolver2,
@@ -8005,31 +8330,31 @@ import {
8005
8330
  ClickAwayListener,
8006
8331
  IconButton as IconButton3,
8007
8332
  Infotip as Infotip4,
8008
- Stack as Stack20,
8333
+ Stack as Stack21,
8009
8334
  Tooltip as Tooltip7
8010
8335
  } from "@elementor/ui";
8011
- import { __ as __83 } from "@wordpress/i18n";
8336
+ import { __ as __85 } from "@wordpress/i18n";
8012
8337
 
8013
8338
  // src/styles-inheritance/hooks/use-normalized-inheritance-chain-items.tsx
8014
- import { isValidElement, useEffect as useEffect12, useState as useState12 } from "react";
8339
+ import { isValidElement, useEffect as useEffect13, useState as useState12 } from "react";
8015
8340
  import { UnknownStyleStateError } from "@elementor/editor-canvas";
8016
8341
  import {
8017
8342
  isClassState as isClassState2,
8018
8343
  isPseudoState
8019
8344
  } from "@elementor/editor-styles";
8020
8345
  import { ELEMENTS_BASE_STYLES_PROVIDER_KEY as ELEMENTS_BASE_STYLES_PROVIDER_KEY2 } from "@elementor/editor-styles-repository";
8021
- import { __ as __81 } from "@wordpress/i18n";
8346
+ import { __ as __83 } from "@wordpress/i18n";
8022
8347
  var MAXIMUM_ITEMS = 2;
8023
8348
  var useNormalizedInheritanceChainItems = (inheritanceChain, bind, resolve) => {
8024
8349
  const [items3, setItems] = useState12([]);
8025
- useEffect12(() => {
8350
+ useEffect13(() => {
8026
8351
  (async () => {
8027
8352
  const normalizedItems = await Promise.all(
8028
8353
  inheritanceChain.filter(({ style }) => style).map((item, index) => normalizeInheritanceItem(item, index, bind, resolve))
8029
8354
  );
8030
8355
  const validItems = normalizedItems.map((item) => ({
8031
8356
  ...item,
8032
- displayLabel: ELEMENTS_BASE_STYLES_PROVIDER_KEY2 !== item.provider ? item.displayLabel : __81("Base", "elementor")
8357
+ displayLabel: ELEMENTS_BASE_STYLES_PROVIDER_KEY2 !== item.provider ? item.displayLabel : __83("Base", "elementor")
8033
8358
  })).filter((item) => !item.value || item.displayLabel !== "").slice(0, MAXIMUM_ITEMS);
8034
8359
  setItems(validItems);
8035
8360
  })();
@@ -8086,7 +8411,7 @@ var getTransformedValue = async (item, bind, resolve) => {
8086
8411
  };
8087
8412
 
8088
8413
  // src/styles-inheritance/components/infotip/breakpoint-icon.tsx
8089
- import * as React105 from "react";
8414
+ import * as React106 from "react";
8090
8415
  import { useBreakpoints as useBreakpoints2 } from "@elementor/editor-responsive";
8091
8416
  import {
8092
8417
  DesktopIcon,
@@ -8117,20 +8442,20 @@ var BreakpointIcon = ({ breakpoint }) => {
8117
8442
  return null;
8118
8443
  }
8119
8444
  const breakpointLabel = breakpoints.find((breakpointItem) => breakpointItem.id === currentBreakpoint)?.label;
8120
- return /* @__PURE__ */ React105.createElement(Tooltip4, { title: breakpointLabel, placement: "top" }, /* @__PURE__ */ React105.createElement(IconComponent, { fontSize: SIZE4, sx: { mt: "2px" } }));
8445
+ return /* @__PURE__ */ React106.createElement(Tooltip4, { title: breakpointLabel, placement: "top" }, /* @__PURE__ */ React106.createElement(IconComponent, { fontSize: SIZE4, sx: { mt: "2px" } }));
8121
8446
  };
8122
8447
 
8123
8448
  // src/styles-inheritance/components/infotip/label-chip.tsx
8124
- import * as React106 from "react";
8449
+ import * as React107 from "react";
8125
8450
  import { ELEMENTS_BASE_STYLES_PROVIDER_KEY as ELEMENTS_BASE_STYLES_PROVIDER_KEY3 } from "@elementor/editor-styles-repository";
8126
8451
  import { InfoCircleIcon as InfoCircleIcon2 } from "@elementor/icons";
8127
8452
  import { Chip as Chip5, Tooltip as Tooltip5 } from "@elementor/ui";
8128
- import { __ as __82 } from "@wordpress/i18n";
8453
+ import { __ as __84 } from "@wordpress/i18n";
8129
8454
  var SIZE5 = "tiny";
8130
8455
  var LabelChip = ({ displayLabel, provider }) => {
8131
8456
  const isBaseStyle = provider === ELEMENTS_BASE_STYLES_PROVIDER_KEY3;
8132
- const chipIcon = isBaseStyle ? /* @__PURE__ */ React106.createElement(Tooltip5, { title: __82("Inherited from base styles", "elementor"), placement: "top" }, /* @__PURE__ */ React106.createElement(InfoCircleIcon2, { fontSize: SIZE5 })) : void 0;
8133
- return /* @__PURE__ */ React106.createElement(
8457
+ const chipIcon = isBaseStyle ? /* @__PURE__ */ React107.createElement(Tooltip5, { title: __84("Inherited from base styles", "elementor"), placement: "top" }, /* @__PURE__ */ React107.createElement(InfoCircleIcon2, { fontSize: SIZE5 })) : void 0;
8458
+ return /* @__PURE__ */ React107.createElement(
8134
8459
  Chip5,
8135
8460
  {
8136
8461
  label: displayLabel,
@@ -8156,10 +8481,10 @@ var LabelChip = ({ displayLabel, provider }) => {
8156
8481
  };
8157
8482
 
8158
8483
  // src/styles-inheritance/components/infotip/value-component.tsx
8159
- import * as React107 from "react";
8484
+ import * as React108 from "react";
8160
8485
  import { Tooltip as Tooltip6, Typography as Typography7 } from "@elementor/ui";
8161
8486
  var ValueComponent = ({ index, value }) => {
8162
- return /* @__PURE__ */ React107.createElement(Tooltip6, { title: value, placement: "top" }, /* @__PURE__ */ React107.createElement(
8487
+ return /* @__PURE__ */ React108.createElement(Tooltip6, { title: value, placement: "top" }, /* @__PURE__ */ React108.createElement(
8163
8488
  Typography7,
8164
8489
  {
8165
8490
  variant: "caption",
@@ -8181,9 +8506,9 @@ var ValueComponent = ({ index, value }) => {
8181
8506
  };
8182
8507
 
8183
8508
  // src/styles-inheritance/components/infotip/action-icons.tsx
8184
- import * as React108 from "react";
8509
+ import * as React109 from "react";
8185
8510
  import { Box as Box10 } from "@elementor/ui";
8186
- var ActionIcons = () => /* @__PURE__ */ React108.createElement(Box10, { display: "flex", gap: 0.5, alignItems: "center" });
8511
+ var ActionIcons = () => /* @__PURE__ */ React109.createElement(Box10, { display: "flex", gap: 0.5, alignItems: "center" });
8187
8512
 
8188
8513
  // src/styles-inheritance/components/styles-inheritance-infotip.tsx
8189
8514
  var SECTION_PADDING_INLINE = 32;
@@ -8219,7 +8544,7 @@ var StylesInheritanceInfotip = ({
8219
8544
  });
8220
8545
  }, [key, propType]);
8221
8546
  const items3 = useNormalizedInheritanceChainItems(inheritanceChain, key, resolve);
8222
- const infotipContent = /* @__PURE__ */ React109.createElement(ClickAwayListener, { onClickAway: closeInfotip }, /* @__PURE__ */ React109.createElement(
8547
+ const infotipContent = /* @__PURE__ */ React110.createElement(ClickAwayListener, { onClickAway: closeInfotip }, /* @__PURE__ */ React110.createElement(
8223
8548
  Card,
8224
8549
  {
8225
8550
  elevation: 0,
@@ -8232,7 +8557,7 @@ var StylesInheritanceInfotip = ({
8232
8557
  flexDirection: "column"
8233
8558
  }
8234
8559
  },
8235
- /* @__PURE__ */ React109.createElement(
8560
+ /* @__PURE__ */ React110.createElement(
8236
8561
  Box11,
8237
8562
  {
8238
8563
  sx: {
@@ -8242,9 +8567,9 @@ var StylesInheritanceInfotip = ({
8242
8567
  backgroundColor: "background.paper"
8243
8568
  }
8244
8569
  },
8245
- /* @__PURE__ */ React109.createElement(PopoverHeader3, { title: __83("Style origin", "elementor"), onClose: closeInfotip })
8570
+ /* @__PURE__ */ React110.createElement(PopoverHeader3, { title: __85("Style origin", "elementor"), onClose: closeInfotip })
8246
8571
  ),
8247
- /* @__PURE__ */ React109.createElement(
8572
+ /* @__PURE__ */ React110.createElement(
8248
8573
  CardContent,
8249
8574
  {
8250
8575
  sx: {
@@ -8258,39 +8583,39 @@ var StylesInheritanceInfotip = ({
8258
8583
  }
8259
8584
  }
8260
8585
  },
8261
- /* @__PURE__ */ React109.createElement(Stack20, { gap: 1.5, sx: { pl: 2, pr: 1, pt: 1.5, pb: 1.5 }, role: "list" }, items3.map((item, index) => {
8262
- return /* @__PURE__ */ React109.createElement(
8586
+ /* @__PURE__ */ React110.createElement(Stack21, { gap: 1.5, sx: { pl: 2, pr: 1, pt: 1.5, pb: 1.5 }, role: "list" }, items3.map((item, index) => {
8587
+ return /* @__PURE__ */ React110.createElement(
8263
8588
  Box11,
8264
8589
  {
8265
8590
  key: item.id,
8266
8591
  display: "flex",
8267
8592
  gap: 0.5,
8268
8593
  role: "listitem",
8269
- "aria-label": __83("Inheritance item: %s", "elementor").replace(
8594
+ "aria-label": __85("Inheritance item: %s", "elementor").replace(
8270
8595
  "%s",
8271
8596
  item.displayLabel
8272
8597
  )
8273
8598
  },
8274
- /* @__PURE__ */ React109.createElement(
8599
+ /* @__PURE__ */ React110.createElement(
8275
8600
  Box11,
8276
8601
  {
8277
8602
  display: "flex",
8278
8603
  gap: 0.5,
8279
8604
  sx: { flexWrap: "wrap", width: "100%", alignItems: "flex-start" }
8280
8605
  },
8281
- /* @__PURE__ */ React109.createElement(BreakpointIcon, { breakpoint: item.breakpoint }),
8282
- /* @__PURE__ */ React109.createElement(LabelChip, { displayLabel: item.displayLabel, provider: item.provider }),
8283
- /* @__PURE__ */ React109.createElement(ValueComponent, { index, value: item.value })
8606
+ /* @__PURE__ */ React110.createElement(BreakpointIcon, { breakpoint: item.breakpoint }),
8607
+ /* @__PURE__ */ React110.createElement(LabelChip, { displayLabel: item.displayLabel, provider: item.provider }),
8608
+ /* @__PURE__ */ React110.createElement(ValueComponent, { index, value: item.value })
8284
8609
  ),
8285
- /* @__PURE__ */ React109.createElement(ActionIcons, null)
8610
+ /* @__PURE__ */ React110.createElement(ActionIcons, null)
8286
8611
  );
8287
8612
  }))
8288
8613
  )
8289
8614
  ));
8290
8615
  if (isDisabled) {
8291
- return /* @__PURE__ */ React109.createElement(Box11, { sx: { display: "inline-flex" } }, children);
8616
+ return /* @__PURE__ */ React110.createElement(Box11, { sx: { display: "inline-flex" } }, children);
8292
8617
  }
8293
- return /* @__PURE__ */ React109.createElement(Box11, { ref: triggerRef, sx: { display: "inline-flex" } }, /* @__PURE__ */ React109.createElement(
8618
+ return /* @__PURE__ */ React110.createElement(Box11, { ref: triggerRef, sx: { display: "inline-flex" } }, /* @__PURE__ */ React110.createElement(
8294
8619
  TooltipOrInfotip,
8295
8620
  {
8296
8621
  showInfotip,
@@ -8298,7 +8623,7 @@ var StylesInheritanceInfotip = ({
8298
8623
  infotipContent,
8299
8624
  isDisabled
8300
8625
  },
8301
- /* @__PURE__ */ React109.createElement(
8626
+ /* @__PURE__ */ React110.createElement(
8302
8627
  IconButton3,
8303
8628
  {
8304
8629
  onClick: toggleInfotip,
@@ -8318,10 +8643,10 @@ function TooltipOrInfotip({
8318
8643
  isDisabled
8319
8644
  }) {
8320
8645
  if (isDisabled) {
8321
- return /* @__PURE__ */ React109.createElement(Box11, { sx: { display: "inline-flex" } }, children);
8646
+ return /* @__PURE__ */ React110.createElement(Box11, { sx: { display: "inline-flex" } }, children);
8322
8647
  }
8323
8648
  if (showInfotip) {
8324
- return /* @__PURE__ */ React109.createElement(React109.Fragment, null, /* @__PURE__ */ React109.createElement(
8649
+ return /* @__PURE__ */ React110.createElement(React110.Fragment, null, /* @__PURE__ */ React110.createElement(
8325
8650
  Backdrop,
8326
8651
  {
8327
8652
  open: showInfotip,
@@ -8331,7 +8656,7 @@ function TooltipOrInfotip({
8331
8656
  zIndex: (theme) => theme.zIndex.modal - 1
8332
8657
  }
8333
8658
  }
8334
- ), /* @__PURE__ */ React109.createElement(
8659
+ ), /* @__PURE__ */ React110.createElement(
8335
8660
  Infotip4,
8336
8661
  {
8337
8662
  placement: "top-end",
@@ -8343,7 +8668,7 @@ function TooltipOrInfotip({
8343
8668
  children
8344
8669
  ));
8345
8670
  }
8346
- return /* @__PURE__ */ React109.createElement(Tooltip7, { title: __83("Style origin", "elementor"), placement: "top" }, children);
8671
+ return /* @__PURE__ */ React110.createElement(Tooltip7, { title: __85("Style origin", "elementor"), placement: "top" }, children);
8347
8672
  }
8348
8673
 
8349
8674
  // src/styles-inheritance/components/styles-inheritance-indicator.tsx
@@ -8356,7 +8681,7 @@ var StylesInheritanceIndicator = ({
8356
8681
  if (!path || !inheritanceChain.length) {
8357
8682
  return null;
8358
8683
  }
8359
- return /* @__PURE__ */ React110.createElement(Indicator, { inheritanceChain, path, propType });
8684
+ return /* @__PURE__ */ React111.createElement(Indicator, { inheritanceChain, path, propType });
8360
8685
  };
8361
8686
  var Indicator = ({ inheritanceChain, path, propType, isDisabled }) => {
8362
8687
  const { id: currentStyleId, provider: currentStyleProvider, meta: currentStyleMeta } = useStyle();
@@ -8372,7 +8697,7 @@ var Indicator = ({ inheritanceChain, path, propType, isDisabled }) => {
8372
8697
  getColor: isFinalValue && currentStyleProvider ? getStylesProviderThemeColor(currentStyleProvider.getKey()) : void 0,
8373
8698
  isOverridden: hasValue && !isFinalValue ? true : void 0
8374
8699
  };
8375
- return /* @__PURE__ */ React110.createElement(
8700
+ return /* @__PURE__ */ React111.createElement(
8376
8701
  StylesInheritanceInfotip,
8377
8702
  {
8378
8703
  inheritanceChain,
@@ -8381,17 +8706,17 @@ var Indicator = ({ inheritanceChain, path, propType, isDisabled }) => {
8381
8706
  label,
8382
8707
  isDisabled
8383
8708
  },
8384
- /* @__PURE__ */ React110.createElement(StyleIndicator, { ...styleIndicatorProps })
8709
+ /* @__PURE__ */ React111.createElement(StyleIndicator, { ...styleIndicatorProps })
8385
8710
  );
8386
8711
  };
8387
8712
  var getLabel = ({ isFinalValue, hasValue }) => {
8388
8713
  if (isFinalValue) {
8389
- return __84("This is the final value", "elementor");
8714
+ return __86("This is the final value", "elementor");
8390
8715
  }
8391
8716
  if (hasValue) {
8392
- return __84("This value is overridden by another style", "elementor");
8717
+ return __86("This value is overridden by another style", "elementor");
8393
8718
  }
8394
- return __84("This has value from another style", "elementor");
8719
+ return __86("This has value from another style", "elementor");
8395
8720
  };
8396
8721
 
8397
8722
  // src/styles-inheritance/init-styles-inheritance-transformers.ts
@@ -8416,7 +8741,7 @@ var excludePropTypeTransformers = /* @__PURE__ */ new Set([
8416
8741
  ]);
8417
8742
 
8418
8743
  // src/styles-inheritance/transformers/array-transformer.tsx
8419
- import * as React111 from "react";
8744
+ import * as React112 from "react";
8420
8745
  import { createTransformer as createTransformer2 } from "@elementor/editor-canvas";
8421
8746
  var arrayTransformer = createTransformer2((values) => {
8422
8747
  if (!values || values.length === 0) {
@@ -8426,16 +8751,16 @@ var arrayTransformer = createTransformer2((values) => {
8426
8751
  if (allStrings) {
8427
8752
  return values.join(" ");
8428
8753
  }
8429
- return /* @__PURE__ */ React111.createElement(React111.Fragment, null, values.map((item, index) => /* @__PURE__ */ React111.createElement(React111.Fragment, { key: index }, index > 0 && " ", item)));
8754
+ return /* @__PURE__ */ React112.createElement(React112.Fragment, null, values.map((item, index) => /* @__PURE__ */ React112.createElement(React112.Fragment, { key: index }, index > 0 && " ", item)));
8430
8755
  });
8431
8756
 
8432
8757
  // src/styles-inheritance/transformers/background-color-overlay-transformer.tsx
8433
- import * as React112 from "react";
8758
+ import * as React113 from "react";
8434
8759
  import { createTransformer as createTransformer3 } from "@elementor/editor-canvas";
8435
- import { Stack as Stack21, styled as styled7, UnstableColorIndicator } from "@elementor/ui";
8436
- var backgroundColorOverlayTransformer = createTransformer3((value) => /* @__PURE__ */ React112.createElement(Stack21, { direction: "row", gap: 1, alignItems: "center" }, /* @__PURE__ */ React112.createElement(ItemLabelColor, { value })));
8760
+ import { Stack as Stack22, styled as styled7, UnstableColorIndicator } from "@elementor/ui";
8761
+ var backgroundColorOverlayTransformer = createTransformer3((value) => /* @__PURE__ */ React113.createElement(Stack22, { direction: "row", gap: 1, alignItems: "center" }, /* @__PURE__ */ React113.createElement(ItemLabelColor, { value })));
8437
8762
  var ItemLabelColor = ({ value: { color } }) => {
8438
- return /* @__PURE__ */ React112.createElement("span", null, color);
8763
+ return /* @__PURE__ */ React113.createElement("span", null, color);
8439
8764
  };
8440
8765
  var StyledUnstableColorIndicator = styled7(UnstableColorIndicator)(({ theme }) => ({
8441
8766
  width: "1em",
@@ -8446,20 +8771,20 @@ var StyledUnstableColorIndicator = styled7(UnstableColorIndicator)(({ theme }) =
8446
8771
  }));
8447
8772
 
8448
8773
  // src/styles-inheritance/transformers/background-gradient-overlay-transformer.tsx
8449
- import * as React113 from "react";
8774
+ import * as React114 from "react";
8450
8775
  import { createTransformer as createTransformer4 } from "@elementor/editor-canvas";
8451
- import { Stack as Stack22 } from "@elementor/ui";
8452
- import { __ as __85 } from "@wordpress/i18n";
8453
- var backgroundGradientOverlayTransformer = createTransformer4((value) => /* @__PURE__ */ React113.createElement(Stack22, { direction: "row", gap: 1, alignItems: "center" }, /* @__PURE__ */ React113.createElement(ItemIconGradient, { value }), /* @__PURE__ */ React113.createElement(ItemLabelGradient, { value })));
8776
+ import { Stack as Stack23 } from "@elementor/ui";
8777
+ import { __ as __87 } from "@wordpress/i18n";
8778
+ var backgroundGradientOverlayTransformer = createTransformer4((value) => /* @__PURE__ */ React114.createElement(Stack23, { direction: "row", gap: 1, alignItems: "center" }, /* @__PURE__ */ React114.createElement(ItemIconGradient, { value }), /* @__PURE__ */ React114.createElement(ItemLabelGradient, { value })));
8454
8779
  var ItemIconGradient = ({ value }) => {
8455
8780
  const gradient = getGradientValue(value);
8456
- return /* @__PURE__ */ React113.createElement(StyledUnstableColorIndicator, { size: "inherit", component: "span", value: gradient });
8781
+ return /* @__PURE__ */ React114.createElement(StyledUnstableColorIndicator, { size: "inherit", component: "span", value: gradient });
8457
8782
  };
8458
8783
  var ItemLabelGradient = ({ value }) => {
8459
8784
  if (value.type === "linear") {
8460
- return /* @__PURE__ */ React113.createElement("span", null, __85("Linear gradient", "elementor"));
8785
+ return /* @__PURE__ */ React114.createElement("span", null, __87("Linear gradient", "elementor"));
8461
8786
  }
8462
- return /* @__PURE__ */ React113.createElement("span", null, __85("Radial gradient", "elementor"));
8787
+ return /* @__PURE__ */ React114.createElement("span", null, __87("Radial gradient", "elementor"));
8463
8788
  };
8464
8789
  var getGradientValue = (gradient) => {
8465
8790
  const stops = gradient.stops?.map(({ color, offset }) => `${color} ${offset ?? 0}%`)?.join(",");
@@ -8473,15 +8798,15 @@ var getGradientValue = (gradient) => {
8473
8798
  };
8474
8799
 
8475
8800
  // src/styles-inheritance/transformers/background-image-overlay-transformer.tsx
8476
- import * as React114 from "react";
8801
+ import * as React115 from "react";
8477
8802
  import { createTransformer as createTransformer5 } from "@elementor/editor-canvas";
8478
8803
  import { EllipsisWithTooltip as EllipsisWithTooltip2 } from "@elementor/editor-ui";
8479
- import { CardMedia, Stack as Stack23 } from "@elementor/ui";
8804
+ import { CardMedia, Stack as Stack24 } from "@elementor/ui";
8480
8805
  import { useWpMediaAttachment } from "@elementor/wp-media";
8481
- var backgroundImageOverlayTransformer = createTransformer5((value) => /* @__PURE__ */ React114.createElement(Stack23, { direction: "row", gap: 1, alignItems: "center" }, /* @__PURE__ */ React114.createElement(ItemIconImage, { value }), /* @__PURE__ */ React114.createElement(ItemLabelImage, { value })));
8806
+ var backgroundImageOverlayTransformer = createTransformer5((value) => /* @__PURE__ */ React115.createElement(Stack24, { direction: "row", gap: 1, alignItems: "center" }, /* @__PURE__ */ React115.createElement(ItemIconImage, { value }), /* @__PURE__ */ React115.createElement(ItemLabelImage, { value })));
8482
8807
  var ItemIconImage = ({ value }) => {
8483
8808
  const { imageUrl } = useImage(value);
8484
- return /* @__PURE__ */ React114.createElement(
8809
+ return /* @__PURE__ */ React115.createElement(
8485
8810
  CardMedia,
8486
8811
  {
8487
8812
  image: imageUrl,
@@ -8497,7 +8822,7 @@ var ItemIconImage = ({ value }) => {
8497
8822
  };
8498
8823
  var ItemLabelImage = ({ value }) => {
8499
8824
  const { imageTitle } = useImage(value);
8500
- return /* @__PURE__ */ React114.createElement(EllipsisWithTooltip2, { title: imageTitle }, /* @__PURE__ */ React114.createElement("span", null, imageTitle));
8825
+ return /* @__PURE__ */ React115.createElement(EllipsisWithTooltip2, { title: imageTitle }, /* @__PURE__ */ React115.createElement("span", null, imageTitle));
8501
8826
  };
8502
8827
  var useImage = (image) => {
8503
8828
  let imageTitle, imageUrl = null;
@@ -8522,7 +8847,7 @@ var getFileExtensionFromFilename = (filename) => {
8522
8847
  };
8523
8848
 
8524
8849
  // src/styles-inheritance/transformers/box-shadow-transformer.tsx
8525
- import * as React115 from "react";
8850
+ import * as React116 from "react";
8526
8851
  import { createTransformer as createTransformer6 } from "@elementor/editor-canvas";
8527
8852
  var boxShadowTransformer = createTransformer6((value) => {
8528
8853
  if (!value) {
@@ -8532,13 +8857,13 @@ var boxShadowTransformer = createTransformer6((value) => {
8532
8857
  const colorValue = color || "#000000";
8533
8858
  const sizes = [hOffset || "0px", vOffset || "0px", blur || "10px", spread || "0px"].join(" ");
8534
8859
  const positionValue = position || "outset";
8535
- return /* @__PURE__ */ React115.createElement(React115.Fragment, null, colorValue, " ", positionValue, ", ", sizes);
8860
+ return /* @__PURE__ */ React116.createElement(React116.Fragment, null, colorValue, " ", positionValue, ", ", sizes);
8536
8861
  });
8537
8862
 
8538
8863
  // src/styles-inheritance/transformers/color-transformer.tsx
8539
- import * as React116 from "react";
8864
+ import * as React117 from "react";
8540
8865
  import { createTransformer as createTransformer7 } from "@elementor/editor-canvas";
8541
- import { Stack as Stack24, styled as styled8, UnstableColorIndicator as UnstableColorIndicator2 } from "@elementor/ui";
8866
+ import { Stack as Stack25, styled as styled8, UnstableColorIndicator as UnstableColorIndicator2 } from "@elementor/ui";
8542
8867
  function isValidCSSColor(value) {
8543
8868
  if (!value.trim()) {
8544
8869
  return false;
@@ -8556,7 +8881,7 @@ var colorTransformer = createTransformer7((value) => {
8556
8881
  if (!isValidCSSColor(value)) {
8557
8882
  return value;
8558
8883
  }
8559
- return /* @__PURE__ */ React116.createElement(Stack24, { direction: "row", gap: 1, alignItems: "center" }, /* @__PURE__ */ React116.createElement(StyledColorIndicator, { size: "inherit", component: "span", value }), /* @__PURE__ */ React116.createElement("span", null, value));
8884
+ return /* @__PURE__ */ React117.createElement(Stack25, { direction: "row", gap: 1, alignItems: "center" }, /* @__PURE__ */ React117.createElement(StyledColorIndicator, { size: "inherit", component: "span", value }), /* @__PURE__ */ React117.createElement("span", null, value));
8560
8885
  });
8561
8886
 
8562
8887
  // src/styles-inheritance/transformers/repeater-to-items-transformer.tsx
@@ -8626,6 +8951,7 @@ var init3 = () => {
8626
8951
 
8627
8952
  // src/init.ts
8628
8953
  function init4() {
8954
+ initEditorControls();
8629
8955
  registerPanel(panel);
8630
8956
  blockV1Panel();
8631
8957
  injectIntoLogic({
@@ -8650,6 +8976,7 @@ export {
8650
8976
  ControlLabel,
8651
8977
  ControlTypeContainer,
8652
8978
  CreatableAutocomplete,
8979
+ CustomCssHeaderSlot,
8653
8980
  CustomCssIndicator,
8654
8981
  DEFAULT_PSEUDO_STATES,
8655
8982
  EditingPanelTabs,
@@ -8685,9 +9012,12 @@ export {
8685
9012
  init4 as init,
8686
9013
  injectIntoClassSelectorActions,
8687
9014
  injectIntoCssClassConvert,
9015
+ injectIntoCustomCssHeader,
8688
9016
  injectIntoGridFields,
8689
9017
  injectIntoPanelHeaderTop,
9018
+ injectIntoStyleSectionHeader,
8690
9019
  injectIntoStyleTab,
9020
+ injectIntoStyleTabHeader,
8691
9021
  isDynamicPropValue,
8692
9022
  registerEditingPanelReplacement,
8693
9023
  registerElementPanelDefaults,