@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.js CHANGED
@@ -35,6 +35,7 @@ __export(index_exports, {
35
35
  ControlLabel: () => ControlLabel,
36
36
  ControlTypeContainer: () => ControlTypeContainer,
37
37
  CreatableAutocomplete: () => CreatableAutocomplete,
38
+ CustomCssHeaderSlot: () => CustomCssHeaderSlot,
38
39
  CustomCssIndicator: () => CustomCssIndicator,
39
40
  DEFAULT_PSEUDO_STATES: () => DEFAULT_PSEUDO_STATES,
40
41
  EditingPanelTabs: () => EditingPanelTabs,
@@ -70,9 +71,12 @@ __export(index_exports, {
70
71
  init: () => init4,
71
72
  injectIntoClassSelectorActions: () => injectIntoClassSelectorActions,
72
73
  injectIntoCssClassConvert: () => injectIntoCssClassConvert,
74
+ injectIntoCustomCssHeader: () => injectIntoCustomCssHeader,
73
75
  injectIntoGridFields: () => injectIntoGridFields,
74
76
  injectIntoPanelHeaderTop: () => injectIntoPanelHeaderTop,
77
+ injectIntoStyleSectionHeader: () => injectIntoStyleSectionHeader,
75
78
  injectIntoStyleTab: () => injectIntoStyleTab,
79
+ injectIntoStyleTabHeader: () => injectIntoStyleTabHeader,
76
80
  isDynamicPropValue: () => isDynamicPropValue,
77
81
  registerEditingPanelReplacement: () => registerEditingPanelReplacement,
78
82
  registerElementPanelDefaults: () => registerElementPanelDefaults,
@@ -587,7 +591,7 @@ var import_react10 = require("react");
587
591
  var import_editor_styles_repository11 = require("@elementor/editor-styles-repository");
588
592
  var import_editor_ui4 = require("@elementor/editor-ui");
589
593
  var import_icons4 = require("@elementor/icons");
590
- var import_locations2 = require("@elementor/locations");
594
+ var import_locations3 = require("@elementor/locations");
591
595
  var import_ui9 = require("@elementor/ui");
592
596
  var import_i18n8 = require("@wordpress/i18n");
593
597
 
@@ -632,6 +636,14 @@ var trackStyles = (provider, event, data) => {
632
636
  providerInstance?.actions.tracking?.({ event, ...data });
633
637
  };
634
638
 
639
+ // src/components/style-tab-header-location.tsx
640
+ var import_locations2 = require("@elementor/locations");
641
+ var {
642
+ Slot: StyleTabHeaderSlot,
643
+ inject: injectIntoStyleTabHeader,
644
+ useInjections: useStyleTabHeaderInjections
645
+ } = (0, import_locations2.createLocation)();
646
+
635
647
  // src/components/css-classes/css-class-item.tsx
636
648
  var React11 = __toESM(require("react"));
637
649
  var import_react9 = require("react");
@@ -1080,6 +1092,9 @@ var CLASS_STATES_MAP = {
1080
1092
  },
1081
1093
  disabled: {
1082
1094
  label: (0, import_i18n5.__)("disabled", "elementor")
1095
+ },
1096
+ current: {
1097
+ label: (0, import_i18n5.__)("current", "elementor")
1083
1098
  }
1084
1099
  };
1085
1100
  function useElementStates() {
@@ -1088,7 +1103,7 @@ function useElementStates() {
1088
1103
  const elementStates = styleStates.map(({ value, name }) => ({
1089
1104
  key: value,
1090
1105
  value,
1091
- label: CLASS_STATES_MAP[value]?.label ?? name
1106
+ label: CLASS_STATES_MAP[name]?.label ?? name
1092
1107
  }));
1093
1108
  return {
1094
1109
  elementStates,
@@ -1404,8 +1419,9 @@ var EMPTY_OPTION = {
1404
1419
  icon: /* @__PURE__ */ React13.createElement(import_icons4.MapPinIcon, null),
1405
1420
  provider: null
1406
1421
  };
1407
- var { Slot: ClassSelectorActionsSlot, inject: injectIntoClassSelectorActions } = (0, import_locations2.createLocation)();
1422
+ var { Slot: ClassSelectorActionsSlot, inject: injectIntoClassSelectorActions } = (0, import_locations3.createLocation)();
1408
1423
  function CssClassSelector() {
1424
+ const { element } = useElement();
1409
1425
  const options13 = useOptions();
1410
1426
  const { id: activeId, setId: setActiveId } = useStyle();
1411
1427
  const autocompleteRef = (0, import_react10.useRef)(null);
@@ -1423,7 +1439,7 @@ function CssClassSelector() {
1423
1439
  const clearMissingClasses = (0, import_react10.useCallback)(() => {
1424
1440
  unapplyClasses(missingClassesIds);
1425
1441
  }, [missingClassesIds, unapplyClasses]);
1426
- return /* @__PURE__ */ React13.createElement(import_ui9.Stack, { p: 2 }, /* @__PURE__ */ React13.createElement(import_ui9.Stack, { direction: "row", gap: 1, alignItems: "center", justifyContent: "space-between" }, /* @__PURE__ */ React13.createElement(import_ui9.FormLabel, { htmlFor: ID, size: "small" }, (0, import_i18n8.__)("Classes", "elementor")), /* @__PURE__ */ React13.createElement(import_ui9.Stack, { direction: "row", gap: 1 }, /* @__PURE__ */ React13.createElement(ClassSelectorActionsSlot, null))), /* @__PURE__ */ React13.createElement(
1442
+ return /* @__PURE__ */ React13.createElement(import_ui9.Stack, { p: 2 }, /* @__PURE__ */ React13.createElement(import_ui9.Stack, { direction: "row", gap: 1, alignItems: "center", justifyContent: "space-between" }, /* @__PURE__ */ React13.createElement(import_ui9.FormLabel, { htmlFor: ID, size: "small" }, (0, import_i18n8.__)("Classes", "elementor")), /* @__PURE__ */ React13.createElement(import_ui9.Stack, { direction: "row", gap: 1 }, /* @__PURE__ */ React13.createElement(StyleTabHeaderSlot, { elementId: element.id }), /* @__PURE__ */ React13.createElement(ClassSelectorActionsSlot, null))), /* @__PURE__ */ React13.createElement(
1427
1443
  import_editor_ui4.WarningInfotip,
1428
1444
  {
1429
1445
  open: Boolean(renameError),
@@ -1980,7 +1996,7 @@ var import_editor_elements16 = require("@elementor/editor-elements");
1980
1996
  var import_editor_panels = require("@elementor/editor-panels");
1981
1997
  var import_editor_ui9 = require("@elementor/editor-ui");
1982
1998
  var import_icons28 = require("@elementor/icons");
1983
- var import_locations5 = require("@elementor/locations");
1999
+ var import_locations7 = require("@elementor/locations");
1984
2000
  var import_menus = require("@elementor/menus");
1985
2001
  var import_session9 = require("@elementor/session");
1986
2002
  var import_ui46 = require("@elementor/ui");
@@ -2019,7 +2035,7 @@ var EditingPanelStickyPromotion = () => {
2019
2035
  };
2020
2036
 
2021
2037
  // src/components/editing-panel-tabs.tsx
2022
- var import_react38 = require("react");
2038
+ var import_react40 = require("react");
2023
2039
  var React92 = __toESM(require("react"));
2024
2040
  var import_editor_current_user = require("@elementor/editor-current-user");
2025
2041
  var import_editor_elements15 = require("@elementor/editor-elements");
@@ -2417,7 +2433,15 @@ var React21 = __toESM(require("react"));
2417
2433
  var import_react18 = require("react");
2418
2434
  var import_editor_ui5 = require("@elementor/editor-ui");
2419
2435
  var import_ui14 = require("@elementor/ui");
2420
- function Section({ title, children, defaultExpanded = false, titleEnd, unmountOnExit = true, action }) {
2436
+ function Section({
2437
+ title,
2438
+ children,
2439
+ defaultExpanded = false,
2440
+ titleEnd,
2441
+ titleActions,
2442
+ unmountOnExit = true,
2443
+ action
2444
+ }) {
2421
2445
  const [isOpen, setIsOpen] = useStateByElement(title, !!defaultExpanded);
2422
2446
  const ref = (0, import_react18.useRef)(null);
2423
2447
  const isDisabled = !!action;
@@ -2447,7 +2471,15 @@ function Section({ title, children, defaultExpanded = false, titleEnd, unmountOn
2447
2471
  secondaryTypographyProps: { color: "text.primary", variant: "caption", fontWeight: "bold" },
2448
2472
  sx: { flexGrow: 0, flexShrink: 1, marginInlineEnd: 1 }
2449
2473
  }
2450
- ), (0, import_editor_ui5.getCollapsibleValue)(titleEnd, isOpen)),
2474
+ ), (0, import_editor_ui5.getCollapsibleValue)(titleEnd, isOpen), titleActions && /* @__PURE__ */ React21.createElement(
2475
+ import_ui14.Stack,
2476
+ {
2477
+ direction: "row",
2478
+ alignItems: "center",
2479
+ onClick: (event) => event.stopPropagation()
2480
+ },
2481
+ titleActions
2482
+ )),
2451
2483
  action?.component,
2452
2484
  /* @__PURE__ */ React21.createElement(
2453
2485
  import_editor_ui5.CollapseIcon,
@@ -2510,7 +2542,7 @@ var controlTypes = {
2510
2542
  toggle: { component: import_editor_controls2.ToggleControl, layout: "full", propTypeUtil: import_editor_props6.stringPropTypeUtil },
2511
2543
  "date-time": { component: import_editor_controls2.DateTimeControl, layout: "full", propTypeUtil: import_editor_props6.DateTimePropTypeUtil },
2512
2544
  video: { component: import_editor_controls2.VideoMediaControl, layout: "full", propTypeUtil: import_editor_props6.videoSrcPropTypeUtil },
2513
- "inline-editing": { component: import_editor_controls2.InlineEditingControl, layout: "full", propTypeUtil: import_editor_props6.escapedHtmlPropTypeUtil },
2545
+ "inline-editing": { component: import_editor_controls2.InlineEditingControl, layout: "custom", propTypeUtil: import_editor_props6.escapedHtmlPropTypeUtil },
2514
2546
  email: { component: import_editor_controls2.EmailFormActionControl, layout: "custom", propTypeUtil: import_editor_props6.emailsPropTypeUtil },
2515
2547
  "date-range": {
2516
2548
  component: import_editor_controls2.DateRangeControl,
@@ -2870,10 +2902,10 @@ function isControlHiddenByDependencies(control, propsSchema, settings, elementId
2870
2902
 
2871
2903
  // src/components/style-tab.tsx
2872
2904
  var React91 = __toESM(require("react"));
2873
- var import_react37 = require("react");
2905
+ var import_react39 = require("react");
2874
2906
  var import_editor_props17 = require("@elementor/editor-props");
2875
2907
  var import_editor_responsive4 = require("@elementor/editor-responsive");
2876
- var import_locations4 = require("@elementor/locations");
2908
+ var import_locations6 = require("@elementor/locations");
2877
2909
  var import_session8 = require("@elementor/session");
2878
2910
  var import_ui44 = require("@elementor/ui");
2879
2911
 
@@ -3225,6 +3257,20 @@ function useActiveAndAppliedClassId(id, appliedClassesIds) {
3225
3257
  return isClassApplied ? id : null;
3226
3258
  }
3227
3259
 
3260
+ // src/hooks/use-broadcast-style-state.ts
3261
+ var import_react21 = require("react");
3262
+ var STYLE_STATE_EVENT = "elementor/editor/style-state/change";
3263
+ function broadcast(id, state) {
3264
+ window.dispatchEvent(new CustomEvent(STYLE_STATE_EVENT, { detail: { id, state } }));
3265
+ }
3266
+ function useBroadcastStyleState(state) {
3267
+ const { element } = useElement();
3268
+ (0, import_react21.useEffect)(() => {
3269
+ broadcast(element.id, state);
3270
+ return () => broadcast(element.id, null);
3271
+ }, [element.id, state]);
3272
+ }
3273
+
3228
3274
  // src/components/style-sections.tsx
3229
3275
  var React90 = __toESM(require("react"));
3230
3276
 
@@ -3253,7 +3299,7 @@ function useStylesField(propName, meta) {
3253
3299
  }
3254
3300
 
3255
3301
  // src/controls-registry/conditional-field.tsx
3256
- var import_react21 = require("react");
3302
+ var import_react22 = require("react");
3257
3303
  var import_editor_controls5 = require("@elementor/editor-controls");
3258
3304
  var import_editor_props11 = require("@elementor/editor-props");
3259
3305
  var ConditionalField = ({ children }) => {
@@ -3282,8 +3328,8 @@ function useSyncDepsWithInherited({
3282
3328
  setDepValues,
3283
3329
  resetValue
3284
3330
  }) {
3285
- const syncRef = (0, import_react21.useRef)({ hasSynced: false, prevDepValues: depValues });
3286
- (0, import_react21.useEffect)(() => {
3331
+ const syncRef = (0, import_react22.useRef)({ hasSynced: false, prevDepValues: depValues });
3332
+ (0, import_react22.useEffect)(() => {
3287
3333
  const { hasSynced, prevDepValues } = syncRef.current;
3288
3334
  if (hasSynced && value && wasDepsCleared(prevDepValues, depValues) || isHidden && depValues && value) {
3289
3335
  resetValue();
@@ -3677,12 +3723,12 @@ var BlendModeField = () => {
3677
3723
 
3678
3724
  // src/components/style-sections/effects-section/opacity-control-field.tsx
3679
3725
  var React40 = __toESM(require("react"));
3680
- var import_react22 = require("react");
3726
+ var import_react23 = require("react");
3681
3727
  var import_editor_controls13 = require("@elementor/editor-controls");
3682
3728
  var import_i18n18 = require("@wordpress/i18n");
3683
3729
  var OPACITY_LABEL = (0, import_i18n18.__)("Opacity", "elementor");
3684
3730
  var OpacityControlField = () => {
3685
- const rowRef = (0, import_react22.useRef)(null);
3731
+ const rowRef = (0, import_react23.useRef)(null);
3686
3732
  return /* @__PURE__ */ React40.createElement(StylesField, { bind: "opacity", propDisplayName: OPACITY_LABEL }, /* @__PURE__ */ React40.createElement(StylesFieldLayout, { ref: rowRef, label: OPACITY_LABEL }, /* @__PURE__ */ React40.createElement(import_editor_controls13.SizeControl, { units: ["%"], anchorRef: rowRef, defaultUnit: "%" })));
3687
3733
  };
3688
3734
 
@@ -3709,7 +3755,7 @@ var EffectsSection = () => {
3709
3755
  var React62 = __toESM(require("react"));
3710
3756
  var import_editor_controls31 = require("@elementor/editor-controls");
3711
3757
  var import_editor_elements14 = require("@elementor/editor-elements");
3712
- var import_locations3 = require("@elementor/locations");
3758
+ var import_locations4 = require("@elementor/locations");
3713
3759
  var import_i18n39 = require("@wordpress/i18n");
3714
3760
 
3715
3761
  // src/hooks/use-computed-style.ts
@@ -3826,7 +3872,7 @@ var import_i18n22 = require("@wordpress/i18n");
3826
3872
 
3827
3873
  // src/components/style-sections/layout-section/utils/rotated-icon.tsx
3828
3874
  var React44 = __toESM(require("react"));
3829
- var import_react23 = require("react");
3875
+ var import_react24 = require("react");
3830
3876
  var import_ui25 = require("@elementor/ui");
3831
3877
  var import_i18n21 = require("@wordpress/i18n");
3832
3878
  var FLEX_DIRECTION_LABEL = (0, import_i18n21.__)("Flex direction", "elementor");
@@ -3849,7 +3895,7 @@ var RotatedIcon = ({
3849
3895
  offset = 0,
3850
3896
  disableRotationForReversed = false
3851
3897
  }) => {
3852
- const rotate = (0, import_react23.useRef)(useGetTargetAngle(isClockwise, offset, disableRotationForReversed));
3898
+ const rotate = (0, import_react24.useRef)(useGetTargetAngle(isClockwise, offset, disableRotationForReversed));
3853
3899
  rotate.current = useGetTargetAngle(isClockwise, offset, disableRotationForReversed, rotate);
3854
3900
  return /* @__PURE__ */ React44.createElement(Icon, { fontSize: size, sx: { transition: ".3s", rotate: `${rotate.current}deg` } });
3855
3901
  };
@@ -4181,7 +4227,7 @@ var FlexDirectionField = () => {
4181
4227
 
4182
4228
  // src/components/style-sections/layout-section/flex-order-field.tsx
4183
4229
  var React51 = __toESM(require("react"));
4184
- var import_react24 = require("react");
4230
+ var import_react25 = require("react");
4185
4231
  var import_editor_controls21 = require("@elementor/editor-controls");
4186
4232
  var import_icons13 = require("@elementor/icons");
4187
4233
  var import_ui30 = require("@elementor/ui");
@@ -4229,15 +4275,15 @@ function FlexOrderFieldContent() {
4229
4275
  });
4230
4276
  const { placeholder } = (0, import_editor_controls21.useBoundProp)();
4231
4277
  const placeholderValue = placeholder;
4232
- const currentGroup = (0, import_react24.useMemo)(() => getGroupControlValue(order?.value ?? null), [order]);
4233
- const [activeGroup, setActiveGroup] = (0, import_react24.useState)(currentGroup);
4234
- const [customLocked, setCustomLocked] = (0, import_react24.useState)(false);
4235
- (0, import_react24.useEffect)(() => {
4278
+ const currentGroup = (0, import_react25.useMemo)(() => getGroupControlValue(order?.value ?? null), [order]);
4279
+ const [activeGroup, setActiveGroup] = (0, import_react25.useState)(currentGroup);
4280
+ const [customLocked, setCustomLocked] = (0, import_react25.useState)(false);
4281
+ (0, import_react25.useEffect)(() => {
4236
4282
  if (!customLocked) {
4237
4283
  setActiveGroup(currentGroup);
4238
4284
  }
4239
4285
  }, [currentGroup, customLocked]);
4240
- (0, import_react24.useEffect)(() => {
4286
+ (0, import_react25.useEffect)(() => {
4241
4287
  if (order === null) {
4242
4288
  setCustomLocked(false);
4243
4289
  }
@@ -4297,7 +4343,7 @@ var getGroupControlValue = (order) => {
4297
4343
 
4298
4344
  // src/components/style-sections/layout-section/flex-size-field.tsx
4299
4345
  var React52 = __toESM(require("react"));
4300
- var import_react25 = require("react");
4346
+ var import_react26 = require("react");
4301
4347
  var import_editor_controls22 = require("@elementor/editor-controls");
4302
4348
  var import_editor_props15 = require("@elementor/editor-props");
4303
4349
  var import_icons14 = require("@elementor/icons");
@@ -4333,15 +4379,15 @@ var FlexSizeFieldContent = () => {
4333
4379
  });
4334
4380
  const { placeholder } = (0, import_editor_controls22.useBoundProp)();
4335
4381
  const flexValues = extractFlexValues(value);
4336
- const currentGroup = (0, import_react25.useMemo)(() => getActiveGroup(flexValues), [flexValues]);
4337
- const [activeGroup, setActiveGroup] = (0, import_react25.useState)(currentGroup);
4338
- const [customLocked, setCustomLocked] = (0, import_react25.useState)(false);
4339
- (0, import_react25.useEffect)(() => {
4382
+ const currentGroup = (0, import_react26.useMemo)(() => getActiveGroup(flexValues), [flexValues]);
4383
+ const [activeGroup, setActiveGroup] = (0, import_react26.useState)(currentGroup);
4384
+ const [customLocked, setCustomLocked] = (0, import_react26.useState)(false);
4385
+ (0, import_react26.useEffect)(() => {
4340
4386
  if (!customLocked) {
4341
4387
  setActiveGroup(currentGroup);
4342
4388
  }
4343
4389
  }, [currentGroup, customLocked]);
4344
- (0, import_react25.useEffect)(() => {
4390
+ (0, import_react26.useEffect)(() => {
4345
4391
  if (value === null) {
4346
4392
  setCustomLocked(false);
4347
4393
  }
@@ -4404,7 +4450,7 @@ var createFlexValueForGroup = (group, flexValue) => {
4404
4450
  return null;
4405
4451
  };
4406
4452
  var FlexCustomField = () => {
4407
- const flexBasisRowRef = (0, import_react25.useRef)(null);
4453
+ const flexBasisRowRef = (0, import_react26.useRef)(null);
4408
4454
  const context = (0, import_editor_controls22.useBoundProp)(import_editor_props15.flexPropTypeUtil);
4409
4455
  return /* @__PURE__ */ React52.createElement(import_editor_controls22.PropProvider, { ...context }, /* @__PURE__ */ React52.createElement(React52.Fragment, null, /* @__PURE__ */ React52.createElement(StylesFieldLayout, { label: (0, import_i18n29.__)("Grow", "elementor") }, /* @__PURE__ */ React52.createElement(import_editor_controls22.PropKeyProvider, { bind: "flexGrow" }, /* @__PURE__ */ React52.createElement(import_editor_controls22.NumberControl, { min: 0, shouldForceInt: true }))), /* @__PURE__ */ React52.createElement(StylesFieldLayout, { label: (0, import_i18n29.__)("Shrink", "elementor") }, /* @__PURE__ */ React52.createElement(import_editor_controls22.PropKeyProvider, { bind: "flexShrink" }, /* @__PURE__ */ React52.createElement(import_editor_controls22.NumberControl, { min: 0, shouldForceInt: true }))), /* @__PURE__ */ React52.createElement(StylesFieldLayout, { label: (0, import_i18n29.__)("Basis", "elementor"), ref: flexBasisRowRef }, /* @__PURE__ */ React52.createElement(import_editor_controls22.PropKeyProvider, { bind: "flexBasis" }, /* @__PURE__ */ React52.createElement(import_editor_controls22.SizeControl, { extendedOptions: ["auto"], anchorRef: flexBasisRowRef })))));
4410
4456
  };
@@ -4518,7 +4564,7 @@ var GridAutoFlowField = () => /* @__PURE__ */ React54.createElement(StylesField,
4518
4564
 
4519
4565
  // src/components/style-sections/layout-section/grid-auto-track-fields.tsx
4520
4566
  var React55 = __toESM(require("react"));
4521
- var import_react26 = require("react");
4567
+ var import_react27 = require("react");
4522
4568
  var import_editor_controls25 = require("@elementor/editor-controls");
4523
4569
  var import_ui32 = require("@elementor/ui");
4524
4570
  var import_i18n32 = require("@wordpress/i18n");
@@ -4542,7 +4588,7 @@ var GridAutoTrackField = ({ bind, infoTooltip, label, rowRef }) => /* @__PURE__
4542
4588
  }
4543
4589
  )));
4544
4590
  var GridAutoTrackFields = () => {
4545
- const rowRef = (0, import_react26.useRef)(null);
4591
+ const rowRef = (0, import_react27.useRef)(null);
4546
4592
  return /* @__PURE__ */ React55.createElement(import_ui32.Stack, { gap: 2, pt: 2, ref: rowRef }, /* @__PURE__ */ React55.createElement(
4547
4593
  GridAutoTrackField,
4548
4594
  {
@@ -4627,7 +4673,7 @@ var GridOutlineField = () => {
4627
4673
 
4628
4674
  // src/components/style-sections/layout-section/grid-size-field.tsx
4629
4675
  var React58 = __toESM(require("react"));
4630
- var import_react27 = require("react");
4676
+ var import_react28 = require("react");
4631
4677
  var import_editor_controls27 = require("@elementor/editor-controls");
4632
4678
  var import_ui35 = require("@elementor/ui");
4633
4679
  var import_i18n35 = require("@wordpress/i18n");
@@ -4745,7 +4791,7 @@ var GridTrackFieldContent = ({ cssProp, label }) => {
4745
4791
  history: { propDisplayName: label }
4746
4792
  });
4747
4793
  const { placeholder: inheritedPlaceholder } = (0, import_editor_controls27.useBoundProp)();
4748
- const anchorRef = (0, import_react27.useRef)(null);
4794
+ const anchorRef = (0, import_react28.useRef)(null);
4749
4795
  const local = parseValue(value);
4750
4796
  const inherited = parseValue(inheritedPlaceholder);
4751
4797
  const displayValue = local.kind !== "empty" ? toSizeInput(local) : toSizeInput(EMPTY, unitOf(inherited));
@@ -4868,7 +4914,7 @@ var WrapField = () => {
4868
4914
  var DISPLAY_LABEL2 = (0, import_i18n39.__)("Display", "elementor");
4869
4915
  var FLEX_WRAP_LABEL2 = (0, import_i18n39.__)("Flex wrap", "elementor");
4870
4916
  var DEFAULT_PARENT_FLOW_DIRECTION = "row";
4871
- var { Slot: GridFieldsSlot, inject: injectIntoGridFields } = (0, import_locations3.createLocation)();
4917
+ var { Slot: GridFieldsSlot, inject: injectIntoGridFields } = (0, import_locations4.createLocation)();
4872
4918
  var LayoutSection = () => {
4873
4919
  const { value: display } = useStylesField("display", {
4874
4920
  history: { propDisplayName: DISPLAY_LABEL2 }
@@ -4909,14 +4955,14 @@ var shouldDisplayFlexFields = (display, local) => {
4909
4955
 
4910
4956
  // src/components/style-sections/position-section/position-section.tsx
4911
4957
  var React67 = __toESM(require("react"));
4912
- var import_react30 = require("react");
4958
+ var import_react31 = require("react");
4913
4959
  var import_session7 = require("@elementor/session");
4914
4960
  var import_ui40 = require("@elementor/ui");
4915
4961
  var import_i18n44 = require("@wordpress/i18n");
4916
4962
 
4917
4963
  // src/components/style-sections/position-section/dimensions-field.tsx
4918
4964
  var React63 = __toESM(require("react"));
4919
- var import_react28 = require("react");
4965
+ var import_react29 = require("react");
4920
4966
  var import_editor_controls32 = require("@elementor/editor-controls");
4921
4967
  var import_icons19 = require("@elementor/icons");
4922
4968
  var import_ui38 = require("@elementor/ui");
@@ -4933,7 +4979,7 @@ var getInlineStartLabel = (isSiteRtl) => isSiteRtl ? (0, import_i18n40.__)("Righ
4933
4979
  var getInlineEndLabel = (isSiteRtl) => isSiteRtl ? (0, import_i18n40.__)("Left", "elementor") : (0, import_i18n40.__)("Right", "elementor");
4934
4980
  var DimensionsField = () => {
4935
4981
  const { isSiteRtl } = useDirection();
4936
- const rowRefs = [(0, import_react28.useRef)(null), (0, import_react28.useRef)(null)];
4982
+ const rowRefs = [(0, import_react29.useRef)(null), (0, import_react29.useRef)(null)];
4937
4983
  return /* @__PURE__ */ React63.createElement(UiProviders, null, /* @__PURE__ */ React63.createElement(import_ui38.Stack, { direction: "row", gap: 2, flexWrap: "nowrap", ref: rowRefs[0] }, /* @__PURE__ */ React63.createElement(DimensionField, { side: "inset-block-start", label: (0, import_i18n40.__)("Top", "elementor"), rowRef: rowRefs[0] }), /* @__PURE__ */ React63.createElement(
4938
4984
  DimensionField,
4939
4985
  {
@@ -4966,13 +5012,13 @@ var DimensionField = ({
4966
5012
 
4967
5013
  // src/components/style-sections/position-section/offset-field.tsx
4968
5014
  var React64 = __toESM(require("react"));
4969
- var import_react29 = require("react");
5015
+ var import_react30 = require("react");
4970
5016
  var import_editor_controls33 = require("@elementor/editor-controls");
4971
5017
  var import_i18n41 = require("@wordpress/i18n");
4972
5018
  var OFFSET_LABEL = (0, import_i18n41.__)("Anchor offset", "elementor");
4973
5019
  var UNITS2 = ["px", "em", "rem", "vw", "vh"];
4974
5020
  var OffsetField = () => {
4975
- const rowRef = (0, import_react29.useRef)(null);
5021
+ const rowRef = (0, import_react30.useRef)(null);
4976
5022
  return /* @__PURE__ */ React64.createElement(StylesField, { bind: "scroll-margin-top", propDisplayName: OFFSET_LABEL }, /* @__PURE__ */ React64.createElement(StylesFieldLayout, { label: OFFSET_LABEL, ref: rowRef }, /* @__PURE__ */ React64.createElement(import_editor_controls33.SizeControl, { units: UNITS2, anchorRef: rowRef })));
4977
5023
  };
4978
5024
 
@@ -5033,10 +5079,10 @@ var PositionSection = () => {
5033
5079
  const inheritedPosition = useInheritedValues(["position"]).position;
5034
5080
  const resolvedPosition = position ?? inheritedPosition ?? null;
5035
5081
  const isPositionUnsetOrStatic = !resolvedPosition || resolvedPosition.value === POSITION_STATIC;
5036
- const positionPrevRef = (0, import_react30.useRef)(position);
5082
+ const positionPrevRef = (0, import_react31.useRef)(position);
5037
5083
  const { values: dependentValues, setValues: setDependentValues } = useStylesFields(DEPENDENT_PROP_NAMES);
5038
5084
  const [savedDependentValues, saveToHistory, clearHistory] = usePersistDimensions();
5039
- (0, import_react30.useEffect)(() => {
5085
+ (0, import_react31.useEffect)(() => {
5040
5086
  if (position && position?.value === POSITION_STATIC && hasDependentValues(dependentValues)) {
5041
5087
  saveToHistory(extractDimensions(dependentValues));
5042
5088
  }
@@ -5100,7 +5146,7 @@ var StyledSectionContent = (0, import_ui40.styled)(SectionContent, {
5100
5146
 
5101
5147
  // src/components/style-sections/size-section/size-section.tsx
5102
5148
  var React70 = __toESM(require("react"));
5103
- var import_react31 = require("react");
5149
+ var import_react32 = require("react");
5104
5150
  var import_editor_controls38 = require("@elementor/editor-controls");
5105
5151
  var import_ui41 = require("@elementor/ui");
5106
5152
  var import_i18n47 = require("@wordpress/i18n");
@@ -5186,7 +5232,7 @@ var CssSizeProps = [
5186
5232
  ];
5187
5233
  var ASPECT_RATIO_LABEL = (0, import_i18n47.__)("Aspect Ratio", "elementor");
5188
5234
  var SizeSection = () => {
5189
- const gridRowRefs = [(0, import_react31.useRef)(null), (0, import_react31.useRef)(null), (0, import_react31.useRef)(null)];
5235
+ const gridRowRefs = [(0, import_react32.useRef)(null), (0, import_react32.useRef)(null), (0, import_react32.useRef)(null)];
5190
5236
  return /* @__PURE__ */ React70.createElement(SectionContent, null, CssSizeProps.map((row, rowIndex) => /* @__PURE__ */ React70.createElement(import_ui41.Grid, { key: rowIndex, container: true, gap: 2, flexWrap: "nowrap", ref: gridRowRefs[rowIndex] }, row.map((props) => /* @__PURE__ */ React70.createElement(import_ui41.Grid, { item: true, xs: 6, key: props.bind }, /* @__PURE__ */ React70.createElement(SizeField, { ...props, rowRef: gridRowRefs[rowIndex], extendedOptions: ["auto"] }))))), /* @__PURE__ */ React70.createElement(PanelDivider, null), /* @__PURE__ */ React70.createElement(import_ui41.Stack, null, /* @__PURE__ */ React70.createElement(OverflowField, null)), /* @__PURE__ */ React70.createElement(StyleTabCollapsibleContent, { fields: ["aspect-ratio", "object-fit"] }, /* @__PURE__ */ React70.createElement(import_ui41.Stack, { gap: 2, pt: 2 }, /* @__PURE__ */ React70.createElement(StylesField, { bind: "aspect-ratio", propDisplayName: ASPECT_RATIO_LABEL }, /* @__PURE__ */ React70.createElement(import_editor_controls38.AspectRatioControl, { label: ASPECT_RATIO_LABEL })), /* @__PURE__ */ React70.createElement(PanelDivider, null), /* @__PURE__ */ React70.createElement(ObjectFitField, null), /* @__PURE__ */ React70.createElement(StylesField, { bind: "object-position", propDisplayName: (0, import_i18n47.__)("Object position", "elementor") }, /* @__PURE__ */ React70.createElement(import_ui41.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React70.createElement(import_editor_controls38.PositionControl, null))))));
5191
5237
  };
5192
5238
  var SizeField = ({ label, bind, rowRef, extendedOptions }) => {
@@ -5225,12 +5271,12 @@ var ColumnCountField = () => {
5225
5271
 
5226
5272
  // src/components/style-sections/typography-section/column-gap-field.tsx
5227
5273
  var React73 = __toESM(require("react"));
5228
- var import_react32 = require("react");
5274
+ var import_react33 = require("react");
5229
5275
  var import_editor_controls41 = require("@elementor/editor-controls");
5230
5276
  var import_i18n50 = require("@wordpress/i18n");
5231
5277
  var COLUMN_GAP_LABEL = (0, import_i18n50.__)("Column gap", "elementor");
5232
5278
  var ColumnGapField = () => {
5233
- const rowRef = (0, import_react32.useRef)(null);
5279
+ const rowRef = (0, import_react33.useRef)(null);
5234
5280
  return /* @__PURE__ */ React73.createElement(StylesField, { bind: "column-gap", propDisplayName: COLUMN_GAP_LABEL }, /* @__PURE__ */ React73.createElement(StylesFieldLayout, { label: COLUMN_GAP_LABEL, ref: rowRef }, /* @__PURE__ */ React73.createElement(import_editor_controls41.SizeControl, { anchorRef: rowRef })));
5235
5281
  };
5236
5282
 
@@ -5258,12 +5304,12 @@ var FontFamilyField = () => {
5258
5304
 
5259
5305
  // src/components/style-sections/typography-section/font-size-field.tsx
5260
5306
  var React75 = __toESM(require("react"));
5261
- var import_react33 = require("react");
5307
+ var import_react34 = require("react");
5262
5308
  var import_editor_controls43 = require("@elementor/editor-controls");
5263
5309
  var import_i18n52 = require("@wordpress/i18n");
5264
5310
  var FONT_SIZE_LABEL = (0, import_i18n52.__)("Font size", "elementor");
5265
5311
  var FontSizeField = () => {
5266
- const rowRef = (0, import_react33.useRef)(null);
5312
+ const rowRef = (0, import_react34.useRef)(null);
5267
5313
  return /* @__PURE__ */ React75.createElement(StylesField, { bind: "font-size", propDisplayName: FONT_SIZE_LABEL }, /* @__PURE__ */ React75.createElement(StylesFieldLayout, { label: FONT_SIZE_LABEL, ref: rowRef }, /* @__PURE__ */ React75.createElement(import_editor_controls43.SizeControl, { anchorRef: rowRef, ariaLabel: FONT_SIZE_LABEL })));
5268
5314
  };
5269
5315
 
@@ -5313,23 +5359,23 @@ var FontWeightField = () => {
5313
5359
 
5314
5360
  // src/components/style-sections/typography-section/letter-spacing-field.tsx
5315
5361
  var React78 = __toESM(require("react"));
5316
- var import_react34 = require("react");
5362
+ var import_react35 = require("react");
5317
5363
  var import_editor_controls46 = require("@elementor/editor-controls");
5318
5364
  var import_i18n55 = require("@wordpress/i18n");
5319
5365
  var LETTER_SPACING_LABEL = (0, import_i18n55.__)("Letter spacing", "elementor");
5320
5366
  var LetterSpacingField = () => {
5321
- const rowRef = (0, import_react34.useRef)(null);
5367
+ const rowRef = (0, import_react35.useRef)(null);
5322
5368
  return /* @__PURE__ */ React78.createElement(StylesField, { bind: "letter-spacing", propDisplayName: LETTER_SPACING_LABEL }, /* @__PURE__ */ React78.createElement(StylesFieldLayout, { label: LETTER_SPACING_LABEL, ref: rowRef }, /* @__PURE__ */ React78.createElement(import_editor_controls46.SizeControl, { anchorRef: rowRef, min: -Number.MAX_SAFE_INTEGER })));
5323
5369
  };
5324
5370
 
5325
5371
  // src/components/style-sections/typography-section/line-height-field.tsx
5326
5372
  var React79 = __toESM(require("react"));
5327
- var import_react35 = require("react");
5373
+ var import_react36 = require("react");
5328
5374
  var import_editor_controls47 = require("@elementor/editor-controls");
5329
5375
  var import_i18n56 = require("@wordpress/i18n");
5330
5376
  var LINE_HEIGHT_LABEL = (0, import_i18n56.__)("Line height", "elementor");
5331
5377
  var LineHeightField = () => {
5332
- const rowRef = (0, import_react35.useRef)(null);
5378
+ const rowRef = (0, import_react36.useRef)(null);
5333
5379
  return /* @__PURE__ */ React79.createElement(StylesField, { bind: "line-height", propDisplayName: LINE_HEIGHT_LABEL }, /* @__PURE__ */ React79.createElement(StylesFieldLayout, { label: LINE_HEIGHT_LABEL, ref: rowRef }, /* @__PURE__ */ React79.createElement(import_editor_controls47.SizeControl, { anchorRef: rowRef })));
5334
5380
  };
5335
5381
 
@@ -5551,12 +5597,12 @@ var TransformField = () => /* @__PURE__ */ React86.createElement(StylesField, {
5551
5597
 
5552
5598
  // src/components/style-sections/typography-section/word-spacing-field.tsx
5553
5599
  var React87 = __toESM(require("react"));
5554
- var import_react36 = require("react");
5600
+ var import_react37 = require("react");
5555
5601
  var import_editor_controls54 = require("@elementor/editor-controls");
5556
5602
  var import_i18n63 = require("@wordpress/i18n");
5557
5603
  var WORD_SPACING_LABEL = (0, import_i18n63.__)("Word spacing", "elementor");
5558
5604
  var WordSpacingField = () => {
5559
- const rowRef = (0, import_react36.useRef)(null);
5605
+ const rowRef = (0, import_react37.useRef)(null);
5560
5606
  return /* @__PURE__ */ React87.createElement(StylesField, { bind: "word-spacing", propDisplayName: WORD_SPACING_LABEL }, /* @__PURE__ */ React87.createElement(StylesFieldLayout, { label: WORD_SPACING_LABEL, ref: rowRef }, /* @__PURE__ */ React87.createElement(import_editor_controls54.SizeControl, { anchorRef: rowRef, min: -Number.MAX_SAFE_INTEGER })));
5561
5607
  };
5562
5608
 
@@ -5684,8 +5730,25 @@ var STYLE_SECTION_NAMES = STYLE_SECTIONS.map((section) => section.name);
5684
5730
 
5685
5731
  // src/components/style-tab-section.tsx
5686
5732
  var React89 = __toESM(require("react"));
5733
+
5734
+ // src/components/style-section-header-location.tsx
5735
+ var import_react38 = require("react");
5736
+ var import_locations5 = require("@elementor/locations");
5737
+ var { Slot: StyleSectionHeaderSlot, inject: injectStyleSectionHeader } = (0, import_locations5.createLocation)();
5738
+ var injectIntoStyleSectionHeader = ({ id, component, sections, options: options13 }) => {
5739
+ const filteredComponent = (props) => {
5740
+ if (sections && !sections.includes(props.sectionName)) {
5741
+ return null;
5742
+ }
5743
+ return (0, import_react38.createElement)(component, props);
5744
+ };
5745
+ injectStyleSectionHeader({ id, component: filteredComponent, options: options13 });
5746
+ };
5747
+
5748
+ // src/components/style-tab-section.tsx
5687
5749
  var StyleTabSection = ({ section, fields = [], unmountOnExit = true }) => {
5688
5750
  const { component, name, title, action } = section;
5751
+ const { element } = useElement();
5689
5752
  const tabDefaults = useDefaultPanelSettings();
5690
5753
  const SectionComponent = component || (() => /* @__PURE__ */ React89.createElement(React89.Fragment, null));
5691
5754
  const isExpanded = tabDefaults.defaultSectionsExpanded.style?.includes(name);
@@ -5695,6 +5758,7 @@ var StyleTabSection = ({ section, fields = [], unmountOnExit = true }) => {
5695
5758
  title,
5696
5759
  defaultExpanded: isExpanded,
5697
5760
  titleEnd: getStylesInheritanceIndicators(fields),
5761
+ titleActions: element ? /* @__PURE__ */ React89.createElement(StyleSectionHeaderSlot, { elementId: element.id, sectionName: name }) : void 0,
5698
5762
  unmountOnExit,
5699
5763
  action
5700
5764
  },
@@ -5720,7 +5784,7 @@ var StyleSections = () => {
5720
5784
 
5721
5785
  // src/components/style-tab.tsx
5722
5786
  var TABS_HEADER_HEIGHT = "37px";
5723
- var { Slot: StyleTabSlot, inject: injectIntoStyleTab } = (0, import_locations4.createLocation)();
5787
+ var { Slot: StyleTabSlot, inject: injectIntoStyleTab } = (0, import_locations6.createLocation)();
5724
5788
  var stickyHeaderStyles = {
5725
5789
  position: "sticky",
5726
5790
  zIndex: 1100,
@@ -5731,8 +5795,9 @@ var stickyHeaderStyles = {
5731
5795
  var StyleTab = () => {
5732
5796
  const currentClassesProp = useCurrentClassesProp();
5733
5797
  const [activeStyleDefId, setActiveStyleDefId] = useActiveStyleDefId(currentClassesProp ?? "");
5734
- const [activeStyleState, setActiveStyleState] = (0, import_react37.useState)(null);
5798
+ const [activeStyleState, setActiveStyleState] = (0, import_react39.useState)(null);
5735
5799
  const breakpoint = (0, import_editor_responsive4.useActiveBreakpoint)();
5800
+ useBroadcastStyleState(activeStyleState);
5736
5801
  if (!currentClassesProp) {
5737
5802
  return null;
5738
5803
  }
@@ -5782,7 +5847,7 @@ var EditingPanelTabs = () => {
5782
5847
  return (
5783
5848
  // When switching between elements, the local states should be reset. We are using key to rerender the tabs.
5784
5849
  // Reference: https://react.dev/learn/preserving-and-resetting-state#resetting-a-form-with-a-key
5785
- /* @__PURE__ */ React92.createElement(import_react38.Fragment, { key: element.id }, /* @__PURE__ */ React92.createElement(PanelTabContent, null))
5850
+ /* @__PURE__ */ React92.createElement(import_react40.Fragment, { key: element.id }, /* @__PURE__ */ React92.createElement(PanelTabContent, null))
5786
5851
  );
5787
5852
  };
5788
5853
  var PanelTabContent = () => {
@@ -5851,7 +5916,7 @@ var resolveCurrentTab = ({
5851
5916
  };
5852
5917
 
5853
5918
  // src/components/editing-panel.tsx
5854
- var { Slot: PanelHeaderTopSlot, inject: injectIntoPanelHeaderTop } = (0, import_locations5.createLocation)();
5919
+ var { Slot: PanelHeaderTopSlot, inject: injectIntoPanelHeaderTop } = (0, import_locations7.createLocation)();
5855
5920
  var { useMenuItems } = import_menus.controlActionsMenu;
5856
5921
  var EditingPanel = () => {
5857
5922
  const { element, elementType, settings } = (0, import_editor_elements16.useSelectedElementSettings)();
@@ -5901,13 +5966,22 @@ function PseudoStateMenuItems({ states, activeState, onSelectState, onClose }) {
5901
5966
  )));
5902
5967
  }
5903
5968
 
5969
+ // src/components/custom-css-header-location.tsx
5970
+ var import_locations8 = require("@elementor/locations");
5971
+ var {
5972
+ Slot: CustomCssHeaderSlot,
5973
+ inject: injectIntoCustomCssHeader,
5974
+ useInjections: useCustomCssHeaderInjections
5975
+ } = (0, import_locations8.createLocation)();
5976
+
5904
5977
  // src/init.ts
5905
5978
  var import_editor = require("@elementor/editor");
5979
+ var import_editor_controls72 = require("@elementor/editor-controls");
5906
5980
  var import_editor_panels3 = require("@elementor/editor-panels");
5907
- var import_editor_v1_adapters14 = require("@elementor/editor-v1-adapters");
5981
+ var import_editor_v1_adapters15 = require("@elementor/editor-v1-adapters");
5908
5982
 
5909
5983
  // src/hooks/use-open-editor-panel.ts
5910
- var import_react39 = require("react");
5984
+ var import_react41 = require("react");
5911
5985
  var import_editor_v1_adapters9 = require("@elementor/editor-v1-adapters");
5912
5986
 
5913
5987
  // src/panel.ts
@@ -5931,7 +6005,7 @@ var isAtomicWidgetSelected = () => {
5931
6005
  // src/hooks/use-open-editor-panel.ts
5932
6006
  var useOpenEditorPanel = () => {
5933
6007
  const { open } = usePanelActions();
5934
- (0, import_react39.useEffect)(() => {
6008
+ (0, import_react41.useEffect)(() => {
5935
6009
  return (0, import_editor_v1_adapters9.__privateListenTo)((0, import_editor_v1_adapters9.commandStartEvent)("panel/editor/open"), () => {
5936
6010
  if (isAtomicWidgetSelected()) {
5937
6011
  open();
@@ -5951,12 +6025,12 @@ var import_editor_controls57 = require("@elementor/editor-controls");
5951
6025
 
5952
6026
  // src/components/promotions/custom-css.tsx
5953
6027
  var React95 = __toESM(require("react"));
5954
- var import_react40 = require("react");
6028
+ var import_react42 = require("react");
5955
6029
  var import_editor_controls56 = require("@elementor/editor-controls");
5956
6030
  var import_i18n68 = require("@wordpress/i18n");
5957
6031
  var TRACKING_DATA = { target_name: "custom_css", location_l2: "style" };
5958
6032
  var CustomCssSection = () => {
5959
- const triggerRef = (0, import_react40.useRef)(null);
6033
+ const triggerRef = (0, import_react42.useRef)(null);
5960
6034
  return /* @__PURE__ */ React95.createElement(
5961
6035
  StyleTabSection,
5962
6036
  {
@@ -6162,7 +6236,7 @@ var useActions = () => {
6162
6236
  };
6163
6237
 
6164
6238
  // src/controls-registry/element-controls/accordion-items-control/use-show-icon-write-through.ts
6165
- var import_react41 = require("react");
6239
+ var import_react43 = require("react");
6166
6240
  var import_editor_elements19 = require("@elementor/editor-elements");
6167
6241
  var import_editor_props19 = require("@elementor/editor-props");
6168
6242
  var import_editor_v1_adapters10 = require("@elementor/editor-v1-adapters");
@@ -6268,8 +6342,8 @@ var cascadeDifferentOpenIconToHeaders = (0, import_editor_v1_adapters10.undoable
6268
6342
  }
6269
6343
  );
6270
6344
  function useDifferentOpenIconWriteThrough(accordionId, differentOpenIcon) {
6271
- const previousRef = (0, import_react41.useRef)(null);
6272
- (0, import_react41.useEffect)(() => {
6345
+ const previousRef = (0, import_react43.useRef)(null);
6346
+ (0, import_react43.useEffect)(() => {
6273
6347
  const previous = previousRef.current;
6274
6348
  previousRef.current = { accordionId, differentOpenIcon };
6275
6349
  if (!previous || previous.accordionId !== accordionId || previous.differentOpenIcon === differentOpenIcon) {
@@ -6279,8 +6353,8 @@ function useDifferentOpenIconWriteThrough(accordionId, differentOpenIcon) {
6279
6353
  }, [accordionId, differentOpenIcon]);
6280
6354
  }
6281
6355
  function useShowIconWriteThrough(accordionId, showIcon) {
6282
- const previousRef = (0, import_react41.useRef)(null);
6283
- (0, import_react41.useEffect)(() => {
6356
+ const previousRef = (0, import_react43.useRef)(null);
6357
+ (0, import_react43.useEffect)(() => {
6284
6358
  const previous = previousRef.current;
6285
6359
  previousRef.current = { accordionId, showIcon };
6286
6360
  if (!previous || previous.accordionId !== accordionId || previous.showIcon === showIcon) {
@@ -6523,7 +6597,7 @@ var addItem = ({
6523
6597
  };
6524
6598
 
6525
6599
  // src/controls-registry/element-controls/list-items-control/use-show-markers-write-through.ts
6526
- var import_react42 = require("react");
6600
+ var import_react44 = require("react");
6527
6601
  var import_editor_elements22 = require("@elementor/editor-elements");
6528
6602
  var import_editor_props22 = require("@elementor/editor-props");
6529
6603
  var import_editor_v1_adapters11 = require("@elementor/editor-v1-adapters");
@@ -6575,8 +6649,8 @@ function getListItemIds(listId) {
6575
6649
  return itemContainers.map((item) => item.id);
6576
6650
  }
6577
6651
  function useShowMarkersWriteThrough(listId, showMarkers) {
6578
- const previousRef = (0, import_react42.useRef)(null);
6579
- (0, import_react42.useEffect)(() => {
6652
+ const previousRef = (0, import_react44.useRef)(null);
6653
+ (0, import_react44.useEffect)(() => {
6580
6654
  const previous = previousRef.current;
6581
6655
  previousRef.current = { listId, showMarkers };
6582
6656
  if (!previous || previous.listId !== listId || previous.showMarkers === showMarkers) {
@@ -6687,12 +6761,12 @@ var ListItemLabelControl = ({ elementId, fallbackLabel }) => {
6687
6761
  ));
6688
6762
  };
6689
6763
 
6690
- // src/controls-registry/element-controls/tabs-control/tabs-control.tsx
6764
+ // src/controls-registry/element-controls/menu-items-control/menu-items-control.tsx
6691
6765
  var React98 = __toESM(require("react"));
6692
- var import_editor_controls61 = require("@elementor/editor-controls");
6693
- var import_editor_elements26 = require("@elementor/editor-elements");
6694
- var import_editor_props25 = require("@elementor/editor-props");
6695
- var import_icons29 = require("@elementor/icons");
6766
+ var import_react45 = require("react");
6767
+ var import_editor_controls60 = require("@elementor/editor-controls");
6768
+ var import_editor_elements27 = require("@elementor/editor-elements");
6769
+ var import_session10 = require("@elementor/session");
6696
6770
  var import_ui50 = require("@elementor/ui");
6697
6771
  var import_i18n76 = require("@wordpress/i18n");
6698
6772
 
@@ -6709,15 +6783,257 @@ var getElementByType = (elementId, type) => {
6709
6783
  return currentElement.children?.findRecursive?.((child) => child.model.get("elType") === type) ?? null;
6710
6784
  };
6711
6785
 
6712
- // src/controls-registry/element-controls/tabs-control/use-actions.ts
6713
- var import_editor_controls60 = require("@elementor/editor-controls");
6786
+ // src/controls-registry/element-controls/menu-items-control/use-actions.ts
6714
6787
  var import_editor_elements25 = require("@elementor/editor-elements");
6715
6788
  var import_editor_props24 = require("@elementor/editor-props");
6716
6789
  var import_i18n75 = require("@wordpress/i18n");
6790
+ var MENU_ITEMS_ELEMENT_TYPE = "e-menu-items";
6791
+ var MENU_ENTRY_ELEMENT_TYPE = "e-menu-entry";
6792
+ var MENU_ITEM_ELEMENT_TYPE = "e-menu-item";
6793
+ var MIN_ENTRIES = 1;
6794
+ var PARAGRAPH_WIDGET_TYPE3 = "e-paragraph";
6795
+ var getEntryTitle = () => (0, import_i18n75.__)("Menu item", "elementor");
6796
+ var buildEntryModel = (title) => ({
6797
+ elType: MENU_ENTRY_ELEMENT_TYPE,
6798
+ id: (0, import_editor_elements25.generateElementId)(),
6799
+ editor_settings: { title },
6800
+ elements: [
6801
+ {
6802
+ elType: MENU_ITEM_ELEMENT_TYPE,
6803
+ id: (0, import_editor_elements25.generateElementId)(),
6804
+ elements: [
6805
+ {
6806
+ elType: "widget",
6807
+ widgetType: PARAGRAPH_WIDGET_TYPE3,
6808
+ id: (0, import_editor_elements25.generateElementId)(),
6809
+ elements: [],
6810
+ settings: {
6811
+ paragraph: import_editor_props24.escapedHtmlPropTypeUtil.create(title),
6812
+ tag: { $$type: "string", value: "span" }
6813
+ }
6814
+ }
6815
+ ]
6816
+ }
6817
+ ]
6818
+ });
6819
+ var useActions2 = () => {
6820
+ const addItem2 = ({ menuItemsId, items: items3 }) => {
6821
+ const menuItems = (0, import_editor_elements25.getContainer)(menuItemsId);
6822
+ if (!menuItems) {
6823
+ throw new Error("Menu items container not found");
6824
+ }
6825
+ items3.forEach(() => {
6826
+ (0, import_editor_elements25.createElements)({
6827
+ title: (0, import_i18n75.__)("Menu", "elementor"),
6828
+ elements: [
6829
+ {
6830
+ container: menuItems,
6831
+ model: buildEntryModel(getEntryTitle())
6832
+ }
6833
+ ]
6834
+ });
6835
+ });
6836
+ };
6837
+ const removeItem2 = ({ menuItemsId, items: items3 }) => {
6838
+ const entriesCount = (0, import_editor_elements25.getContainer)(menuItemsId)?.children?.filter(
6839
+ (child) => child.model.get("elType") === MENU_ENTRY_ELEMENT_TYPE
6840
+ ).length ?? 0;
6841
+ const removableCount = Math.max(0, Math.min(items3.length, entriesCount - MIN_ENTRIES));
6842
+ if (removableCount === 0) {
6843
+ return;
6844
+ }
6845
+ (0, import_editor_elements25.removeElements)({
6846
+ title: (0, import_i18n75.__)("Menu", "elementor"),
6847
+ elementIds: items3.slice(0, removableCount).map(({ item }) => item.id)
6848
+ });
6849
+ };
6850
+ const duplicateItem2 = ({ items: items3 }) => {
6851
+ (0, import_editor_elements25.duplicateElements)({
6852
+ title: (0, import_i18n75.__)("Duplicate Menu item", "elementor"),
6853
+ elementIds: items3.map(({ item }) => item.id)
6854
+ });
6855
+ };
6856
+ const moveItem2 = ({
6857
+ menuItemsId,
6858
+ movedElementId,
6859
+ toIndex
6860
+ }) => {
6861
+ const menuItems = (0, import_editor_elements25.getContainer)(menuItemsId);
6862
+ const movedElement = (0, import_editor_elements25.getContainer)(movedElementId);
6863
+ if (!menuItems || !movedElement) {
6864
+ throw new Error("Menu item or container not found");
6865
+ }
6866
+ (0, import_editor_elements25.moveElements)({
6867
+ title: (0, import_i18n75.__)("Reorder Menu items", "elementor"),
6868
+ moves: [
6869
+ {
6870
+ element: movedElement,
6871
+ targetContainer: menuItems,
6872
+ options: { at: toIndex }
6873
+ }
6874
+ ]
6875
+ });
6876
+ };
6877
+ return { addItem: addItem2, removeItem: removeItem2, duplicateItem: duplicateItem2, moveItem: moveItem2 };
6878
+ };
6879
+
6880
+ // src/controls-registry/element-controls/menu-items-control/use-entry-item.ts
6881
+ var import_editor_elements26 = require("@elementor/editor-elements");
6882
+ var import_editor_v1_adapters12 = require("@elementor/editor-v1-adapters");
6883
+ var useEntryItem = (entryId) => {
6884
+ return (0, import_editor_v1_adapters12.__privateUseListenTo)(
6885
+ [(0, import_editor_v1_adapters12.commandEndEvent)("document/elements/set-settings"), (0, import_editor_v1_adapters12.commandEndEvent)("document/elements/settings")],
6886
+ () => {
6887
+ const item = (0, import_editor_elements26.getContainer)(entryId)?.children?.find(
6888
+ (child) => child.model.get("elType") === MENU_ITEM_ELEMENT_TYPE
6889
+ );
6890
+ return {
6891
+ itemId: item?.id ?? null,
6892
+ settings: item ? getEntrySettings(item.id) : {}
6893
+ };
6894
+ },
6895
+ [entryId]
6896
+ );
6897
+ };
6898
+ var getEntrySettings = (itemId) => {
6899
+ const propsSchema = (0, import_editor_elements26.getElementType)(MENU_ITEM_ELEMENT_TYPE)?.propsSchema ?? {};
6900
+ return (0, import_editor_elements26.getElementSettings)(itemId, Object.keys(propsSchema));
6901
+ };
6902
+
6903
+ // src/controls-registry/element-controls/menu-items-control/menu-items-control.tsx
6904
+ var LINK_BIND = "link";
6905
+ var MenuItemsControl = ({ label }) => {
6906
+ const { element } = useElement();
6907
+ const { addItem: addItem2, duplicateItem: duplicateItem2, moveItem: moveItem2, removeItem: removeItem2 } = useActions2();
6908
+ const { [MENU_ENTRY_ELEMENT_TYPE]: entries } = (0, import_editor_elements27.useElementChildren)(element.id, {
6909
+ [MENU_ITEMS_ELEMENT_TYPE]: MENU_ENTRY_ELEMENT_TYPE
6910
+ });
6911
+ const menuItems = getElementByType(element.id, MENU_ITEMS_ELEMENT_TYPE);
6912
+ const repeaterValues = entries.map((entry, index) => ({
6913
+ id: entry.id,
6914
+ title: entry.editorSettings?.title,
6915
+ index
6916
+ }));
6917
+ const setValue = (_newValues, _options, meta) => {
6918
+ if (!menuItems) {
6919
+ return;
6920
+ }
6921
+ if (meta?.action?.type === "add") {
6922
+ return addItem2({
6923
+ menuItemsId: menuItems.id,
6924
+ items: meta.action.payload
6925
+ });
6926
+ }
6927
+ if (meta?.action?.type === "remove") {
6928
+ return removeItem2({ menuItemsId: menuItems.id, items: meta.action.payload });
6929
+ }
6930
+ if (meta?.action?.type === "duplicate") {
6931
+ return duplicateItem2({ items: meta.action.payload });
6932
+ }
6933
+ if (meta?.action?.type === "reorder") {
6934
+ const { from, to } = meta.action.payload;
6935
+ return moveItem2({
6936
+ menuItemsId: menuItems.id,
6937
+ movedElementId: entries[from].id,
6938
+ toIndex: to
6939
+ });
6940
+ }
6941
+ };
6942
+ return /* @__PURE__ */ React98.createElement(
6943
+ import_editor_controls60.Repeater,
6944
+ {
6945
+ showToggle: false,
6946
+ values: repeaterValues,
6947
+ setValues: setValue,
6948
+ showRemove: repeaterValues.length > 1,
6949
+ label,
6950
+ adornment: () => null,
6951
+ itemSettings: {
6952
+ getId: ({ item }) => item.id,
6953
+ initialValues: { id: "", title: (0, import_i18n76.__)("Menu item", "elementor") },
6954
+ Label: ItemLabel3,
6955
+ Content: ItemContent3,
6956
+ Icon: () => null
6957
+ }
6958
+ }
6959
+ );
6960
+ };
6961
+ var ItemLabel3 = ({ value }) => /* @__PURE__ */ React98.createElement(import_ui50.Stack, { 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));
6962
+ var EntryLabel = ({ elementId, fallbackTitle }) => {
6963
+ const editorSettings = (0, import_editor_elements27.useElementEditorSettings)(elementId);
6964
+ return /* @__PURE__ */ React98.createElement("span", null, editorSettings?.title ?? fallbackTitle ?? "");
6965
+ };
6966
+ var ItemContent3 = ({ value }) => {
6967
+ if (!value.id) {
6968
+ return null;
6969
+ }
6970
+ return /* @__PURE__ */ React98.createElement(import_ui50.Stack, { p: 2, gap: 1.5 }, /* @__PURE__ */ React98.createElement(ItemNameControl2, { elementId: value.id }), /* @__PURE__ */ React98.createElement(ItemLinkControl, { entryId: value.id }));
6971
+ };
6972
+ var ItemNameControl2 = ({ elementId }) => {
6973
+ const editorSettings = (0, import_editor_elements27.useElementEditorSettings)(elementId);
6974
+ const inputId = (0, import_react45.useId)();
6975
+ return /* @__PURE__ */ React98.createElement(import_ui50.Stack, { gap: 1 }, /* @__PURE__ */ React98.createElement(import_editor_controls60.ControlFormLabel, { htmlFor: inputId }, (0, import_i18n76.__)("Item name", "elementor")), /* @__PURE__ */ React98.createElement(
6976
+ import_ui50.TextField,
6977
+ {
6978
+ id: inputId,
6979
+ size: "tiny",
6980
+ value: editorSettings?.title ?? "",
6981
+ onChange: ({ target }) => {
6982
+ (0, import_editor_elements27.updateElementEditorSettings)({ elementId, settings: { title: target.value } });
6983
+ }
6984
+ }
6985
+ ));
6986
+ };
6987
+ var ItemLinkControl = ({ entryId }) => {
6988
+ const { itemId, settings } = useEntryItem(entryId);
6989
+ const elementType = itemId ? (0, import_editor_elements27.getElementType)(MENU_ITEM_ELEMENT_TYPE) : null;
6990
+ const linkControl = elementType ? findControlByBind(elementType.controls, LINK_BIND) : null;
6991
+ if (!itemId || !elementType || !linkControl) {
6992
+ return null;
6993
+ }
6994
+ return /* @__PURE__ */ React98.createElement(
6995
+ ElementProvider,
6996
+ {
6997
+ element: { id: itemId, type: MENU_ITEM_ELEMENT_TYPE },
6998
+ elementType,
6999
+ settings
7000
+ },
7001
+ /* @__PURE__ */ React98.createElement(import_session10.SessionStorageProvider, { prefix: itemId }, /* @__PURE__ */ React98.createElement(SettingsControl, { control: linkControl }))
7002
+ );
7003
+ };
7004
+ var findControlByBind = (items3, bind) => {
7005
+ for (const item of items3) {
7006
+ if (item.type === "section") {
7007
+ const found = findControlByBind(item.value.items, bind);
7008
+ if (found) {
7009
+ return found;
7010
+ }
7011
+ }
7012
+ if (item.type === "control" && item.value.bind === bind) {
7013
+ return item;
7014
+ }
7015
+ }
7016
+ return null;
7017
+ };
7018
+
7019
+ // src/controls-registry/element-controls/tabs-control/tabs-control.tsx
7020
+ var React99 = __toESM(require("react"));
7021
+ var import_editor_controls62 = require("@elementor/editor-controls");
7022
+ var import_editor_elements29 = require("@elementor/editor-elements");
7023
+ var import_editor_props26 = require("@elementor/editor-props");
7024
+ var import_icons29 = require("@elementor/icons");
7025
+ var import_ui51 = require("@elementor/ui");
7026
+ var import_i18n78 = require("@wordpress/i18n");
7027
+
7028
+ // src/controls-registry/element-controls/tabs-control/use-actions.ts
7029
+ var import_editor_controls61 = require("@elementor/editor-controls");
7030
+ var import_editor_elements28 = require("@elementor/editor-elements");
7031
+ var import_editor_props25 = require("@elementor/editor-props");
7032
+ var import_i18n77 = require("@wordpress/i18n");
6717
7033
  var TAB_ELEMENT_TYPE = "e-tab";
6718
7034
  var TAB_CONTENT_ELEMENT_TYPE = "e-tab-content";
6719
- var useActions2 = () => {
6720
- const { value, setValue: setDefaultActiveTab } = (0, import_editor_controls60.useBoundProp)(import_editor_props24.numberPropTypeUtil);
7035
+ var useActions3 = () => {
7036
+ const { value, setValue: setDefaultActiveTab } = (0, import_editor_controls61.useBoundProp)(import_editor_props25.numberPropTypeUtil);
6721
7037
  const defaultActiveTab = value ?? 0;
6722
7038
  const duplicateItem2 = ({
6723
7039
  items: items3,
@@ -6729,14 +7045,14 @@ var useActions2 = () => {
6729
7045
  });
6730
7046
  items3.forEach(({ item, index }) => {
6731
7047
  const tabId = item.id;
6732
- const tabContentAreaContainer = (0, import_editor_elements25.getContainer)(tabContentAreaId);
7048
+ const tabContentAreaContainer = (0, import_editor_elements28.getContainer)(tabContentAreaId);
6733
7049
  const tabContentId = tabContentAreaContainer?.children?.[index]?.id;
6734
7050
  if (!tabContentId) {
6735
7051
  throw new Error("Original content ID is required for duplication");
6736
7052
  }
6737
- (0, import_editor_elements25.duplicateElements)({
7053
+ (0, import_editor_elements28.duplicateElements)({
6738
7054
  elementIds: [tabId, tabContentId],
6739
- title: (0, import_i18n75.__)("Duplicate Tab", "elementor"),
7055
+ title: (0, import_i18n77.__)("Duplicate Tab", "elementor"),
6740
7056
  onDuplicateElements: () => {
6741
7057
  if (newDefault !== defaultActiveTab) {
6742
7058
  setDefaultActiveTab(newDefault, {}, { withHistory: false });
@@ -6757,10 +7073,10 @@ var useActions2 = () => {
6757
7073
  movedElementId,
6758
7074
  movedElementIndex
6759
7075
  }) => {
6760
- const tabContentContainer = (0, import_editor_elements25.getContainer)(tabContentAreaId);
7076
+ const tabContentContainer = (0, import_editor_elements28.getContainer)(tabContentAreaId);
6761
7077
  const tabContent = tabContentContainer?.children?.[movedElementIndex];
6762
- const movedElement = (0, import_editor_elements25.getContainer)(movedElementId);
6763
- const tabsMenu = (0, import_editor_elements25.getContainer)(tabsMenuId);
7078
+ const movedElement = (0, import_editor_elements28.getContainer)(movedElementId);
7079
+ const tabsMenu = (0, import_editor_elements28.getContainer)(tabsMenuId);
6764
7080
  if (!tabContent) {
6765
7081
  throw new Error("Content element is required");
6766
7082
  }
@@ -6772,8 +7088,8 @@ var useActions2 = () => {
6772
7088
  to: toIndex,
6773
7089
  defaultActiveTab
6774
7090
  });
6775
- (0, import_editor_elements25.moveElements)({
6776
- title: (0, import_i18n75.__)("Reorder Tabs", "elementor"),
7091
+ (0, import_editor_elements28.moveElements)({
7092
+ title: (0, import_i18n77.__)("Reorder Tabs", "elementor"),
6777
7093
  moves: [
6778
7094
  {
6779
7095
  element: movedElement,
@@ -6806,11 +7122,11 @@ var useActions2 = () => {
6806
7122
  items: items3,
6807
7123
  defaultActiveTab
6808
7124
  });
6809
- (0, import_editor_elements25.removeElements)({
6810
- title: (0, import_i18n75.__)("Tabs", "elementor"),
7125
+ (0, import_editor_elements28.removeElements)({
7126
+ title: (0, import_i18n77.__)("Tabs", "elementor"),
6811
7127
  elementIds: items3.flatMap(({ item, index }) => {
6812
7128
  const tabId = item.id;
6813
- const tabContentContainer = (0, import_editor_elements25.getContainer)(tabContentAreaId);
7129
+ const tabContentContainer = (0, import_editor_elements28.getContainer)(tabContentAreaId);
6814
7130
  const tabContentId = tabContentContainer?.children?.[index]?.id;
6815
7131
  if (!tabContentId) {
6816
7132
  throw new Error("Content ID is required");
@@ -6834,15 +7150,15 @@ var useActions2 = () => {
6834
7150
  tabsMenuId,
6835
7151
  items: items3
6836
7152
  }) => {
6837
- const tabContentArea = (0, import_editor_elements25.getContainer)(tabContentAreaId);
6838
- const tabsMenu = (0, import_editor_elements25.getContainer)(tabsMenuId);
7153
+ const tabContentArea = (0, import_editor_elements28.getContainer)(tabContentAreaId);
7154
+ const tabsMenu = (0, import_editor_elements28.getContainer)(tabsMenuId);
6839
7155
  if (!tabContentArea || !tabsMenu) {
6840
7156
  throw new Error("Tab containers not found");
6841
7157
  }
6842
7158
  items3.forEach(({ index }) => {
6843
7159
  const position = index + 1;
6844
- (0, import_editor_elements25.createElements)({
6845
- title: (0, import_i18n75.__)("Tabs", "elementor"),
7160
+ (0, import_editor_elements28.createElements)({
7161
+ title: (0, import_i18n77.__)("Tabs", "elementor"),
6846
7162
  elements: [
6847
7163
  {
6848
7164
  container: tabContentArea,
@@ -6911,12 +7227,12 @@ var calculateDefaultOnDuplicate = ({
6911
7227
  var TAB_MENU_ELEMENT_TYPE = "e-tabs-menu";
6912
7228
  var TAB_CONTENT_AREA_ELEMENT_TYPE = "e-tabs-content-area";
6913
7229
  var TabsControl = ({ label }) => {
6914
- return /* @__PURE__ */ React98.createElement(SettingsField, { bind: "default-active-tab", propDisplayName: (0, import_i18n76.__)("Tabs", "elementor") }, /* @__PURE__ */ React98.createElement(TabsControlContent, { label }));
7230
+ return /* @__PURE__ */ React99.createElement(SettingsField, { bind: "default-active-tab", propDisplayName: (0, import_i18n78.__)("Tabs", "elementor") }, /* @__PURE__ */ React99.createElement(TabsControlContent, { label }));
6915
7231
  };
6916
7232
  var TabsControlContent = ({ label }) => {
6917
7233
  const { element } = useElement();
6918
- const { addItem: addItem2, duplicateItem: duplicateItem2, moveItem: moveItem2, removeItem: removeItem2 } = useActions2();
6919
- const { [TAB_ELEMENT_TYPE]: tabLinks } = (0, import_editor_elements26.useElementChildren)(element.id, {
7234
+ const { addItem: addItem2, duplicateItem: duplicateItem2, moveItem: moveItem2, removeItem: removeItem2 } = useActions3();
7235
+ const { [TAB_ELEMENT_TYPE]: tabLinks } = (0, import_editor_elements29.useElementChildren)(element.id, {
6920
7236
  [TAB_MENU_ELEMENT_TYPE]: TAB_ELEMENT_TYPE
6921
7237
  });
6922
7238
  const tabList = getElementByType(element.id, TAB_MENU_ELEMENT_TYPE);
@@ -6955,8 +7271,8 @@ var TabsControlContent = ({ label }) => {
6955
7271
  });
6956
7272
  }
6957
7273
  };
6958
- return /* @__PURE__ */ React98.createElement(
6959
- import_editor_controls61.Repeater,
7274
+ return /* @__PURE__ */ React99.createElement(
7275
+ import_editor_controls62.Repeater,
6960
7276
  {
6961
7277
  showToggle: false,
6962
7278
  values: repeaterValues,
@@ -6966,40 +7282,40 @@ var TabsControlContent = ({ label }) => {
6966
7282
  itemSettings: {
6967
7283
  getId: ({ item }) => item.id,
6968
7284
  initialValues: { id: "", title: "Tab" },
6969
- Label: ItemLabel3,
6970
- Content: ItemContent3,
7285
+ Label: ItemLabel4,
7286
+ Content: ItemContent4,
6971
7287
  Icon: () => null
6972
7288
  }
6973
7289
  }
6974
7290
  );
6975
7291
  };
6976
- var ItemLabel3 = ({ value, index }) => {
6977
- return /* @__PURE__ */ React98.createElement(import_ui50.Stack, { 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 }));
7292
+ var ItemLabel4 = ({ value, index }) => {
7293
+ return /* @__PURE__ */ React99.createElement(import_ui51.Stack, { 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 }));
6978
7294
  };
6979
7295
  var TabRepeaterLabel = ({ elementId, fallbackTitle }) => {
6980
- const editorSettings = (0, import_editor_elements26.useElementEditorSettings)(elementId);
7296
+ const editorSettings = (0, import_editor_elements29.useElementEditorSettings)(elementId);
6981
7297
  const label = editorSettings?.title ?? fallbackTitle ?? "";
6982
- return /* @__PURE__ */ React98.createElement("span", null, label);
7298
+ return /* @__PURE__ */ React99.createElement("span", null, label);
6983
7299
  };
6984
7300
  var ItemDefaultTab = ({ index }) => {
6985
- const { value: defaultItem } = (0, import_editor_controls61.useBoundProp)(import_editor_props25.numberPropTypeUtil);
7301
+ const { value: defaultItem } = (0, import_editor_controls62.useBoundProp)(import_editor_props26.numberPropTypeUtil);
6986
7302
  const isDefault = defaultItem === index;
6987
7303
  if (!isDefault) {
6988
7304
  return null;
6989
7305
  }
6990
- return /* @__PURE__ */ React98.createElement(import_ui50.Chip, { size: "tiny", shape: "rounded", label: (0, import_i18n76.__)("Default", "elementor") });
7306
+ return /* @__PURE__ */ React99.createElement(import_ui51.Chip, { size: "tiny", shape: "rounded", label: (0, import_i18n78.__)("Default", "elementor") });
6991
7307
  };
6992
- var ItemContent3 = ({ value, index }) => {
7308
+ var ItemContent4 = ({ value, index }) => {
6993
7309
  if (!value.id) {
6994
7310
  return null;
6995
7311
  }
6996
- return /* @__PURE__ */ React98.createElement(import_ui50.Stack, { p: 2, gap: 1.5 }, /* @__PURE__ */ React98.createElement(TabLabelControl, { elementId: value.id }), /* @__PURE__ */ React98.createElement(SettingsField, { bind: "default-active-tab", propDisplayName: (0, import_i18n76.__)("Tabs", "elementor") }, /* @__PURE__ */ React98.createElement(DefaultTabControl, { tabIndex: index })));
7312
+ return /* @__PURE__ */ React99.createElement(import_ui51.Stack, { p: 2, gap: 1.5 }, /* @__PURE__ */ React99.createElement(TabLabelControl, { elementId: value.id }), /* @__PURE__ */ React99.createElement(SettingsField, { bind: "default-active-tab", propDisplayName: (0, import_i18n78.__)("Tabs", "elementor") }, /* @__PURE__ */ React99.createElement(DefaultTabControl, { tabIndex: index })));
6997
7313
  };
6998
7314
  var DefaultTabControl = ({ tabIndex }) => {
6999
- const { value, setValue } = (0, import_editor_controls61.useBoundProp)(import_editor_props25.numberPropTypeUtil);
7315
+ const { value, setValue } = (0, import_editor_controls62.useBoundProp)(import_editor_props26.numberPropTypeUtil);
7000
7316
  const isDefault = value === tabIndex;
7001
- return /* @__PURE__ */ React98.createElement(import_ui50.Stack, { direction: "row", alignItems: "center", justifyContent: "space-between", gap: 2 }, /* @__PURE__ */ React98.createElement(import_editor_controls61.ControlFormLabel, null, (0, import_i18n76.__)("Set as default tab", "elementor")), /* @__PURE__ */ React98.createElement(ConditionalTooltip, { showTooltip: isDefault, placement: "right" }, /* @__PURE__ */ React98.createElement(
7002
- import_ui50.Switch,
7317
+ return /* @__PURE__ */ React99.createElement(import_ui51.Stack, { direction: "row", alignItems: "center", justifyContent: "space-between", gap: 2 }, /* @__PURE__ */ React99.createElement(import_editor_controls62.ControlFormLabel, null, (0, import_i18n78.__)("Set as default tab", "elementor")), /* @__PURE__ */ React99.createElement(ConditionalTooltip, { showTooltip: isDefault, placement: "right" }, /* @__PURE__ */ React99.createElement(
7318
+ import_ui51.Switch,
7003
7319
  {
7004
7320
  size: "small",
7005
7321
  checked: isDefault,
@@ -7014,15 +7330,15 @@ var DefaultTabControl = ({ tabIndex }) => {
7014
7330
  )));
7015
7331
  };
7016
7332
  var TabLabelControl = ({ elementId }) => {
7017
- const editorSettings = (0, import_editor_elements26.useElementEditorSettings)(elementId);
7333
+ const editorSettings = (0, import_editor_elements29.useElementEditorSettings)(elementId);
7018
7334
  const label = editorSettings?.title ?? "";
7019
- return /* @__PURE__ */ React98.createElement(import_ui50.Stack, { gap: 1 }, /* @__PURE__ */ React98.createElement(import_editor_controls61.ControlFormLabel, null, (0, import_i18n76.__)("Tab name", "elementor")), /* @__PURE__ */ React98.createElement(
7020
- import_ui50.TextField,
7335
+ return /* @__PURE__ */ React99.createElement(import_ui51.Stack, { gap: 1 }, /* @__PURE__ */ React99.createElement(import_editor_controls62.ControlFormLabel, null, (0, import_i18n78.__)("Tab name", "elementor")), /* @__PURE__ */ React99.createElement(
7336
+ import_ui51.TextField,
7021
7337
  {
7022
7338
  size: "tiny",
7023
7339
  value: label,
7024
7340
  onChange: ({ target }) => {
7025
- (0, import_editor_elements26.updateElementEditorSettings)({
7341
+ (0, import_editor_elements29.updateElementEditorSettings)({
7026
7342
  elementId,
7027
7343
  settings: { title: target.value }
7028
7344
  });
@@ -7037,28 +7353,29 @@ var ConditionalTooltip = ({
7037
7353
  if (!showTooltip) {
7038
7354
  return children;
7039
7355
  }
7040
- return /* @__PURE__ */ React98.createElement(
7041
- import_ui50.Infotip,
7356
+ return /* @__PURE__ */ React99.createElement(
7357
+ import_ui51.Infotip,
7042
7358
  {
7043
7359
  arrow: false,
7044
- content: /* @__PURE__ */ React98.createElement(
7045
- import_ui50.Alert,
7360
+ content: /* @__PURE__ */ React99.createElement(
7361
+ import_ui51.Alert,
7046
7362
  {
7047
7363
  color: "secondary",
7048
- icon: /* @__PURE__ */ React98.createElement(import_icons29.InfoCircleFilledIcon, { fontSize: "tiny" }),
7364
+ icon: /* @__PURE__ */ React99.createElement(import_icons29.InfoCircleFilledIcon, { fontSize: "tiny" }),
7049
7365
  size: "small",
7050
7366
  sx: { width: 288 }
7051
7367
  },
7052
- /* @__PURE__ */ React98.createElement(import_ui50.Typography, { variant: "body2" }, (0, import_i18n76.__)("To change the default tab, simply set another tab as default.", "elementor"))
7368
+ /* @__PURE__ */ React99.createElement(import_ui51.Typography, { variant: "body2" }, (0, import_i18n78.__)("To change the default tab, simply set another tab as default.", "elementor"))
7053
7369
  )
7054
7370
  },
7055
- /* @__PURE__ */ React98.createElement("span", null, children)
7371
+ /* @__PURE__ */ React99.createElement("span", null, children)
7056
7372
  );
7057
7373
  };
7058
7374
 
7059
7375
  // src/controls-registry/element-controls/registry.ts
7060
7376
  var controlTypes2 = {
7061
7377
  "list-items": { component: ListItemsControl, layout: "full" },
7378
+ "menu-items": { component: MenuItemsControl, layout: "full" },
7062
7379
  tabs: { component: TabsControl, layout: "full" },
7063
7380
  "accordion-items": { component: AccordionItemsControl, layout: "full" }
7064
7381
  };
@@ -7072,27 +7389,27 @@ var registerElementControls = () => {
7072
7389
 
7073
7390
  // src/dynamics/init.ts
7074
7391
  var import_editor_canvas3 = require("@elementor/editor-canvas");
7075
- var import_editor_controls68 = require("@elementor/editor-controls");
7392
+ var import_editor_controls69 = require("@elementor/editor-controls");
7076
7393
  var import_menus2 = require("@elementor/menus");
7077
7394
 
7078
7395
  // src/dynamics/components/background-control-dynamic-tag.tsx
7079
- var React99 = __toESM(require("react"));
7080
- var import_editor_controls63 = require("@elementor/editor-controls");
7081
- var import_editor_props27 = require("@elementor/editor-props");
7396
+ var React100 = __toESM(require("react"));
7397
+ var import_editor_controls64 = require("@elementor/editor-controls");
7398
+ var import_editor_props28 = require("@elementor/editor-props");
7082
7399
  var import_icons30 = require("@elementor/icons");
7083
7400
 
7084
7401
  // src/dynamics/hooks/use-dynamic-tag.ts
7085
- var import_react45 = require("react");
7402
+ var import_react48 = require("react");
7086
7403
 
7087
7404
  // src/dynamics/hooks/use-prop-dynamic-tags.ts
7088
- var import_react44 = require("react");
7089
- var import_editor_controls62 = require("@elementor/editor-controls");
7405
+ var import_react47 = require("react");
7406
+ var import_editor_controls63 = require("@elementor/editor-controls");
7090
7407
 
7091
7408
  // src/dynamics/sync/get-atomic-dynamic-tags.ts
7092
- var import_editor_v1_adapters12 = require("@elementor/editor-v1-adapters");
7409
+ var import_editor_v1_adapters13 = require("@elementor/editor-v1-adapters");
7093
7410
 
7094
7411
  // src/hooks/use-license-config.ts
7095
- var import_react43 = require("react");
7412
+ var import_react46 = require("react");
7096
7413
  var config = { expired: false };
7097
7414
  var listeners = /* @__PURE__ */ new Set();
7098
7415
  function setLicenseConfig(newConfig) {
@@ -7107,12 +7424,12 @@ function subscribe(listener) {
7107
7424
  return () => listeners.delete(listener);
7108
7425
  }
7109
7426
  function useLicenseConfig() {
7110
- return (0, import_react43.useSyncExternalStore)(subscribe, getLicenseConfig, getLicenseConfig);
7427
+ return (0, import_react46.useSyncExternalStore)(subscribe, getLicenseConfig, getLicenseConfig);
7111
7428
  }
7112
7429
 
7113
7430
  // src/dynamics/sync/get-atomic-dynamic-tags.ts
7114
7431
  var getAtomicDynamicTags = (shouldFilterByLicense = true) => {
7115
- const { atomicDynamicTags } = (0, import_editor_v1_adapters12.getElementorConfig)();
7432
+ const { atomicDynamicTags } = (0, import_editor_v1_adapters13.getElementorConfig)();
7116
7433
  if (!atomicDynamicTags) {
7117
7434
  return null;
7118
7435
  }
@@ -7134,11 +7451,11 @@ var filterByLicense = (tags) => {
7134
7451
  };
7135
7452
 
7136
7453
  // src/dynamics/utils.ts
7137
- var import_editor_props26 = require("@elementor/editor-props");
7138
- var import_editor_v1_adapters13 = require("@elementor/editor-v1-adapters");
7454
+ var import_editor_props27 = require("@elementor/editor-props");
7455
+ var import_editor_v1_adapters14 = require("@elementor/editor-v1-adapters");
7139
7456
  var import_schema = require("@elementor/schema");
7140
7457
  var DYNAMIC_PROP_TYPE_KEY = "dynamic";
7141
- var dynamicPropTypeUtil = (0, import_editor_props26.createPropUtils)(
7458
+ var dynamicPropTypeUtil = (0, import_editor_props27.createPropUtils)(
7142
7459
  DYNAMIC_PROP_TYPE_KEY,
7143
7460
  import_schema.z.strictObject({
7144
7461
  name: import_schema.z.string(),
@@ -7147,7 +7464,7 @@ var dynamicPropTypeUtil = (0, import_editor_props26.createPropUtils)(
7147
7464
  })
7148
7465
  );
7149
7466
  var isDynamicTagSupported = (tagName) => {
7150
- return !!(0, import_editor_v1_adapters13.getElementorConfig)()?.atomicDynamicTags?.tags?.[tagName];
7467
+ return !!(0, import_editor_v1_adapters14.getElementorConfig)()?.atomicDynamicTags?.tags?.[tagName];
7151
7468
  };
7152
7469
  var isDynamicPropType = (prop) => prop.key === DYNAMIC_PROP_TYPE_KEY;
7153
7470
  var getDynamicPropType = (propType) => {
@@ -7155,7 +7472,7 @@ var getDynamicPropType = (propType) => {
7155
7472
  return dynamicPropType && isDynamicPropType(dynamicPropType) ? dynamicPropType : null;
7156
7473
  };
7157
7474
  var isDynamicPropValue = (prop) => {
7158
- return (0, import_editor_props26.isTransformable)(prop) && prop.$$type === DYNAMIC_PROP_TYPE_KEY;
7475
+ return (0, import_editor_props27.isTransformable)(prop) && prop.$$type === DYNAMIC_PROP_TYPE_KEY;
7159
7476
  };
7160
7477
  var supportsDynamic = (propType) => {
7161
7478
  return !!getDynamicPropType(propType);
@@ -7170,13 +7487,13 @@ var useAllPropDynamicTags = () => {
7170
7487
  };
7171
7488
  var usePropDynamicTagsInternal = (filterByLicense2) => {
7172
7489
  let categories = [];
7173
- const { propType } = (0, import_editor_controls62.useBoundProp)();
7490
+ const { propType } = (0, import_editor_controls63.useBoundProp)();
7174
7491
  if (propType) {
7175
7492
  const propDynamicType = getDynamicPropType(propType);
7176
7493
  categories = propDynamicType?.settings.categories || [];
7177
7494
  }
7178
7495
  const categoriesKey = categories.join();
7179
- return (0, import_react44.useMemo)(
7496
+ return (0, import_react47.useMemo)(
7180
7497
  () => getDynamicTagsByCategories(categories, filterByLicense2),
7181
7498
  // eslint-disable-next-line react-hooks/exhaustive-deps
7182
7499
  [categoriesKey, filterByLicense2]
@@ -7210,57 +7527,57 @@ var getDynamicTagsByCategories = (categories, filterByLicense2) => {
7210
7527
  // src/dynamics/hooks/use-dynamic-tag.ts
7211
7528
  var useDynamicTag = (tagName) => {
7212
7529
  const dynamicTags = useAllPropDynamicTags();
7213
- return (0, import_react45.useMemo)(() => dynamicTags.find((tag) => tag.name === tagName) ?? null, [dynamicTags, tagName]);
7530
+ return (0, import_react48.useMemo)(() => dynamicTags.find((tag) => tag.name === tagName) ?? null, [dynamicTags, tagName]);
7214
7531
  };
7215
7532
 
7216
7533
  // src/dynamics/components/background-control-dynamic-tag.tsx
7217
- var BackgroundControlDynamicTagIcon = () => /* @__PURE__ */ React99.createElement(import_icons30.DatabaseIcon, { fontSize: "tiny" });
7534
+ var BackgroundControlDynamicTagIcon = () => /* @__PURE__ */ React100.createElement(import_icons30.DatabaseIcon, { fontSize: "tiny" });
7218
7535
  var BackgroundControlDynamicTagLabel = ({ value }) => {
7219
- const context = (0, import_editor_controls63.useBoundProp)(import_editor_props27.backgroundImageOverlayPropTypeUtil);
7220
- return /* @__PURE__ */ React99.createElement(import_editor_controls63.PropProvider, { ...context, value: value.value }, /* @__PURE__ */ React99.createElement(import_editor_controls63.PropKeyProvider, { bind: "image" }, /* @__PURE__ */ React99.createElement(Wrapper2, { rawValue: value.value })));
7536
+ const context = (0, import_editor_controls64.useBoundProp)(import_editor_props28.backgroundImageOverlayPropTypeUtil);
7537
+ return /* @__PURE__ */ React100.createElement(import_editor_controls64.PropProvider, { ...context, value: value.value }, /* @__PURE__ */ React100.createElement(import_editor_controls64.PropKeyProvider, { bind: "image" }, /* @__PURE__ */ React100.createElement(Wrapper2, { rawValue: value.value })));
7221
7538
  };
7222
7539
  var Wrapper2 = ({ rawValue }) => {
7223
- const { propType } = (0, import_editor_controls63.useBoundProp)();
7540
+ const { propType } = (0, import_editor_controls64.useBoundProp)();
7224
7541
  const imageOverlayPropType = propType.prop_types["background-image-overlay"];
7225
- return /* @__PURE__ */ React99.createElement(import_editor_controls63.PropProvider, { propType: imageOverlayPropType.shape.image, value: rawValue, setValue: () => void 0 }, /* @__PURE__ */ React99.createElement(import_editor_controls63.PropKeyProvider, { bind: "src" }, /* @__PURE__ */ React99.createElement(Content, { rawValue: rawValue.image })));
7542
+ return /* @__PURE__ */ React100.createElement(import_editor_controls64.PropProvider, { propType: imageOverlayPropType.shape.image, value: rawValue, setValue: () => void 0 }, /* @__PURE__ */ React100.createElement(import_editor_controls64.PropKeyProvider, { bind: "src" }, /* @__PURE__ */ React100.createElement(Content, { rawValue: rawValue.image })));
7226
7543
  };
7227
7544
  var Content = ({ rawValue }) => {
7228
7545
  const src = rawValue.value.src;
7229
7546
  const dynamicTag = useDynamicTag(src.value.name || "");
7230
- return /* @__PURE__ */ React99.createElement(React99.Fragment, null, dynamicTag?.label);
7547
+ return /* @__PURE__ */ React100.createElement(React100.Fragment, null, dynamicTag?.label);
7231
7548
  };
7232
7549
 
7233
7550
  // src/dynamics/components/dynamic-selection-control.tsx
7234
- var React103 = __toESM(require("react"));
7235
- var import_editor_controls66 = require("@elementor/editor-controls");
7551
+ var React104 = __toESM(require("react"));
7552
+ var import_editor_controls67 = require("@elementor/editor-controls");
7236
7553
  var import_editor_ui12 = require("@elementor/editor-ui");
7237
7554
  var import_icons32 = require("@elementor/icons");
7238
- var import_ui52 = require("@elementor/ui");
7239
- var import_i18n78 = require("@wordpress/i18n");
7555
+ var import_ui53 = require("@elementor/ui");
7556
+ var import_i18n80 = require("@wordpress/i18n");
7240
7557
 
7241
7558
  // src/hooks/use-persist-dynamic-value.ts
7242
- var import_session10 = require("@elementor/session");
7559
+ var import_session11 = require("@elementor/session");
7243
7560
  var usePersistDynamicValue = (propKey) => {
7244
7561
  const { element } = useElement();
7245
7562
  const prefixedKey = `dynamic/non-dynamic-values-history/${element.id}/${propKey}`;
7246
- return (0, import_session10.useSessionStorage)(prefixedKey);
7563
+ return (0, import_session11.useSessionStorage)(prefixedKey);
7247
7564
  };
7248
7565
 
7249
7566
  // src/dynamics/dynamic-control.tsx
7250
- var React101 = __toESM(require("react"));
7251
- var import_editor_controls64 = require("@elementor/editor-controls");
7567
+ var React102 = __toESM(require("react"));
7568
+ var import_editor_controls65 = require("@elementor/editor-controls");
7252
7569
 
7253
7570
  // src/dynamics/components/dynamic-conditional-control.tsx
7254
- var React100 = __toESM(require("react"));
7255
- var import_react46 = require("react");
7256
- var import_editor_props28 = require("@elementor/editor-props");
7571
+ var React101 = __toESM(require("react"));
7572
+ var import_react49 = require("react");
7573
+ var import_editor_props29 = require("@elementor/editor-props");
7257
7574
  var DynamicConditionalControl = ({
7258
7575
  children,
7259
7576
  propType,
7260
7577
  propsSchema,
7261
7578
  dynamicSettings
7262
7579
  }) => {
7263
- const defaults = (0, import_react46.useMemo)(() => {
7580
+ const defaults = (0, import_react49.useMemo)(() => {
7264
7581
  if (!propsSchema) {
7265
7582
  return {};
7266
7583
  }
@@ -7270,7 +7587,7 @@ var DynamicConditionalControl = ({
7270
7587
  return result;
7271
7588
  }, {});
7272
7589
  }, [propsSchema]);
7273
- const convertedSettings = (0, import_react46.useMemo)(() => {
7590
+ const convertedSettings = (0, import_react49.useMemo)(() => {
7274
7591
  if (!dynamicSettings) {
7275
7592
  return {};
7276
7593
  }
@@ -7289,19 +7606,19 @@ var DynamicConditionalControl = ({
7289
7606
  {}
7290
7607
  );
7291
7608
  }, [dynamicSettings]);
7292
- const effectiveSettings = (0, import_react46.useMemo)(() => {
7609
+ const effectiveSettings = (0, import_react49.useMemo)(() => {
7293
7610
  return { ...defaults, ...convertedSettings };
7294
7611
  }, [defaults, convertedSettings]);
7295
7612
  if (!propType?.dependencies?.terms.length) {
7296
- return /* @__PURE__ */ React100.createElement(React100.Fragment, null, children);
7613
+ return /* @__PURE__ */ React101.createElement(React101.Fragment, null, children);
7297
7614
  }
7298
- const isHidden = !(0, import_editor_props28.isDependencyMet)(propType?.dependencies, effectiveSettings).isMet;
7299
- return isHidden ? null : /* @__PURE__ */ React100.createElement(React100.Fragment, null, children);
7615
+ const isHidden = !(0, import_editor_props29.isDependencyMet)(propType?.dependencies, effectiveSettings).isMet;
7616
+ return isHidden ? null : /* @__PURE__ */ React101.createElement(React101.Fragment, null, children);
7300
7617
  };
7301
7618
 
7302
7619
  // src/dynamics/dynamic-control.tsx
7303
7620
  var DynamicControl = ({ bind, children }) => {
7304
- const { value, setValue } = (0, import_editor_controls64.useBoundProp)(dynamicPropTypeUtil);
7621
+ const { value, setValue } = (0, import_editor_controls65.useBoundProp)(dynamicPropTypeUtil);
7305
7622
  const { name = "", group = "", settings } = value ?? {};
7306
7623
  const dynamicTag = useDynamicTag(name);
7307
7624
  if (!dynamicTag) {
@@ -7321,7 +7638,7 @@ var DynamicControl = ({ bind, children }) => {
7321
7638
  });
7322
7639
  };
7323
7640
  const propType = createTopLevelObjectType({ schema: dynamicTag.props_schema });
7324
- return /* @__PURE__ */ React101.createElement(import_editor_controls64.PropProvider, { propType, setValue: setDynamicValue, value: { [bind]: dynamicValue } }, /* @__PURE__ */ React101.createElement(import_editor_controls64.PropKeyProvider, { bind }, /* @__PURE__ */ React101.createElement(
7641
+ return /* @__PURE__ */ React102.createElement(import_editor_controls65.PropProvider, { propType, setValue: setDynamicValue, value: { [bind]: dynamicValue } }, /* @__PURE__ */ React102.createElement(import_editor_controls65.PropKeyProvider, { bind }, /* @__PURE__ */ React102.createElement(
7325
7642
  DynamicConditionalControl,
7326
7643
  {
7327
7644
  propType: dynamicPropType,
@@ -7333,32 +7650,32 @@ var DynamicControl = ({ bind, children }) => {
7333
7650
  };
7334
7651
 
7335
7652
  // src/dynamics/components/dynamic-selection.tsx
7336
- var React102 = __toESM(require("react"));
7337
- var import_react47 = require("react");
7338
- var import_editor_controls65 = require("@elementor/editor-controls");
7653
+ var React103 = __toESM(require("react"));
7654
+ var import_react50 = require("react");
7655
+ var import_editor_controls66 = require("@elementor/editor-controls");
7339
7656
  var import_editor_ui11 = require("@elementor/editor-ui");
7340
7657
  var import_icons31 = require("@elementor/icons");
7341
- var import_ui51 = require("@elementor/ui");
7342
- var import_i18n77 = require("@wordpress/i18n");
7658
+ var import_ui52 = require("@elementor/ui");
7659
+ var import_i18n79 = require("@wordpress/i18n");
7343
7660
  var SIZE2 = "tiny";
7344
7661
  var PROMO_TEXT_WIDTH = 170;
7345
7662
  var PRO_DYNAMIC_TAGS_URL = "https://go.elementor.com/go-pro-dynamic-tags-modal/";
7346
7663
  var RENEW_DYNAMIC_TAGS_URL = "https://go.elementor.com/go-pro-dynamic-tags-renew-modal/";
7347
7664
  var DynamicSelection = ({ close: closePopover, expired = false }) => {
7348
- const [searchValue, setSearchValue] = (0, import_react47.useState)("");
7665
+ const [searchValue, setSearchValue] = (0, import_react50.useState)("");
7349
7666
  const { groups: dynamicGroups } = getAtomicDynamicTags() || {};
7350
- const theme = (0, import_ui51.useTheme)();
7351
- const { value: anyValue } = (0, import_editor_controls65.useBoundProp)();
7352
- const { bind, value: dynamicValue, setValue } = (0, import_editor_controls65.useBoundProp)(dynamicPropTypeUtil);
7667
+ const theme = (0, import_ui52.useTheme)();
7668
+ const { value: anyValue } = (0, import_editor_controls66.useBoundProp)();
7669
+ const { bind, value: dynamicValue, setValue } = (0, import_editor_controls66.useBoundProp)(dynamicPropTypeUtil);
7353
7670
  const [, updatePropValueHistory] = usePersistDynamicValue(bind);
7354
7671
  const isCurrentValueDynamic = !!dynamicValue;
7355
7672
  const options13 = useFilteredOptions(searchValue);
7356
7673
  const hasNoDynamicTags = !options13.length && !searchValue.trim();
7357
- (0, import_react47.useEffect)(() => {
7674
+ (0, import_react50.useEffect)(() => {
7358
7675
  if (hasNoDynamicTags) {
7359
- (0, import_editor_controls65.trackViewPromotion)({ target_name: "dynamic_tags" });
7676
+ (0, import_editor_controls66.trackViewPromotion)({ target_name: "dynamic_tags" });
7360
7677
  } else if (expired) {
7361
- (0, import_editor_controls65.trackViewPromotion)({ target_name: "dynamic_tags" });
7678
+ (0, import_editor_controls66.trackViewPromotion)({ target_name: "dynamic_tags" });
7362
7679
  }
7363
7680
  }, [hasNoDynamicTags, expired]);
7364
7681
  const handleSearch = (value) => {
@@ -7386,19 +7703,19 @@ var DynamicSelection = ({ close: closePopover, expired = false }) => {
7386
7703
  ]);
7387
7704
  const getPopOverContent = () => {
7388
7705
  if (hasNoDynamicTags) {
7389
- return /* @__PURE__ */ React102.createElement(NoDynamicTags, null);
7706
+ return /* @__PURE__ */ React103.createElement(NoDynamicTags, null);
7390
7707
  }
7391
7708
  if (expired) {
7392
- return /* @__PURE__ */ React102.createElement(ExpiredDynamicTags, null);
7709
+ return /* @__PURE__ */ React103.createElement(ExpiredDynamicTags, null);
7393
7710
  }
7394
- return /* @__PURE__ */ React102.createElement(import_react47.Fragment, null, /* @__PURE__ */ React102.createElement(
7711
+ return /* @__PURE__ */ React103.createElement(import_react50.Fragment, null, /* @__PURE__ */ React103.createElement(
7395
7712
  import_editor_ui11.SearchField,
7396
7713
  {
7397
7714
  value: searchValue,
7398
7715
  onSearch: handleSearch,
7399
- placeholder: (0, import_i18n77.__)("Search dynamic tags\u2026", "elementor")
7716
+ placeholder: (0, import_i18n79.__)("Search dynamic tags\u2026", "elementor")
7400
7717
  }
7401
- ), /* @__PURE__ */ React102.createElement(import_ui51.Divider, null), /* @__PURE__ */ React102.createElement(
7718
+ ), /* @__PURE__ */ React103.createElement(import_ui52.Divider, null), /* @__PURE__ */ React103.createElement(
7402
7719
  import_editor_ui11.PopoverMenuList,
7403
7720
  {
7404
7721
  items: virtualizedItems,
@@ -7406,21 +7723,21 @@ var DynamicSelection = ({ close: closePopover, expired = false }) => {
7406
7723
  onClose: closePopover,
7407
7724
  selectedValue: dynamicValue?.name,
7408
7725
  itemStyle: (item) => item.type === "item" ? { paddingInlineStart: theme.spacing(3.5) } : {},
7409
- noResultsComponent: /* @__PURE__ */ React102.createElement(NoResults, { searchValue, onClear: () => setSearchValue("") })
7726
+ noResultsComponent: /* @__PURE__ */ React103.createElement(NoResults, { searchValue, onClear: () => setSearchValue("") })
7410
7727
  }
7411
7728
  ));
7412
7729
  };
7413
- return /* @__PURE__ */ React102.createElement(import_editor_ui11.SectionPopoverBody, { "aria-label": (0, import_i18n77.__)("Dynamic tags", "elementor") }, /* @__PURE__ */ React102.createElement(
7730
+ return /* @__PURE__ */ React103.createElement(import_editor_ui11.SectionPopoverBody, { "aria-label": (0, import_i18n79.__)("Dynamic tags", "elementor") }, /* @__PURE__ */ React103.createElement(
7414
7731
  import_editor_ui11.PopoverHeader,
7415
7732
  {
7416
- title: (0, import_i18n77.__)("Dynamic tags", "elementor"),
7733
+ title: (0, import_i18n79.__)("Dynamic tags", "elementor"),
7417
7734
  onClose: closePopover,
7418
- icon: /* @__PURE__ */ React102.createElement(import_icons31.DatabaseIcon, { fontSize: SIZE2 })
7735
+ icon: /* @__PURE__ */ React103.createElement(import_icons31.DatabaseIcon, { fontSize: SIZE2 })
7419
7736
  }
7420
7737
  ), getPopOverContent());
7421
7738
  };
7422
- var NoResults = ({ searchValue, onClear }) => /* @__PURE__ */ React102.createElement(
7423
- import_ui51.Stack,
7739
+ var NoResults = ({ searchValue, onClear }) => /* @__PURE__ */ React103.createElement(
7740
+ import_ui52.Stack,
7424
7741
  {
7425
7742
  gap: 1,
7426
7743
  alignItems: "center",
@@ -7430,12 +7747,12 @@ var NoResults = ({ searchValue, onClear }) => /* @__PURE__ */ React102.createEle
7430
7747
  color: "text.secondary",
7431
7748
  sx: { pb: 3.5 }
7432
7749
  },
7433
- /* @__PURE__ */ React102.createElement(import_icons31.DatabaseIcon, { fontSize: "large" }),
7434
- /* @__PURE__ */ React102.createElement(import_ui51.Typography, { align: "center", variant: "subtitle2" }, (0, import_i18n77.__)("Sorry, nothing matched", "elementor"), /* @__PURE__ */ React102.createElement("br", null), "\u201C", searchValue, "\u201D."),
7435
- /* @__PURE__ */ React102.createElement(import_ui51.Typography, { align: "center", variant: "caption", sx: { display: "flex", flexDirection: "column" } }, (0, import_i18n77.__)("Try something else.", "elementor"), /* @__PURE__ */ React102.createElement(import_ui51.Link, { color: "text.secondary", variant: "caption", component: "button", onClick: onClear }, (0, import_i18n77.__)("Clear & try again", "elementor")))
7750
+ /* @__PURE__ */ React103.createElement(import_icons31.DatabaseIcon, { fontSize: "large" }),
7751
+ /* @__PURE__ */ React103.createElement(import_ui52.Typography, { align: "center", variant: "subtitle2" }, (0, import_i18n79.__)("Sorry, nothing matched", "elementor"), /* @__PURE__ */ React103.createElement("br", null), "\u201C", searchValue, "\u201D."),
7752
+ /* @__PURE__ */ React103.createElement(import_ui52.Typography, { align: "center", variant: "caption", sx: { display: "flex", flexDirection: "column" } }, (0, import_i18n79.__)("Try something else.", "elementor"), /* @__PURE__ */ React103.createElement(import_ui52.Link, { color: "text.secondary", variant: "caption", component: "button", onClick: onClear }, (0, import_i18n79.__)("Clear & try again", "elementor")))
7436
7753
  );
7437
- var NoDynamicTags = () => /* @__PURE__ */ React102.createElement(React102.Fragment, null, /* @__PURE__ */ React102.createElement(import_ui51.Divider, null), /* @__PURE__ */ React102.createElement(
7438
- import_ui51.Stack,
7754
+ var NoDynamicTags = () => /* @__PURE__ */ React103.createElement(React103.Fragment, null, /* @__PURE__ */ React103.createElement(import_ui52.Divider, null), /* @__PURE__ */ React103.createElement(
7755
+ import_ui52.Stack,
7439
7756
  {
7440
7757
  gap: 1,
7441
7758
  alignItems: "center",
@@ -7445,20 +7762,20 @@ var NoDynamicTags = () => /* @__PURE__ */ React102.createElement(React102.Fragme
7445
7762
  color: "text.secondary",
7446
7763
  sx: { pb: 3.5 }
7447
7764
  },
7448
- /* @__PURE__ */ React102.createElement(import_icons31.DatabaseIcon, { fontSize: "large" }),
7449
- /* @__PURE__ */ React102.createElement(import_ui51.Typography, { align: "center", variant: "subtitle2" }, (0, import_i18n77.__)("Streamline your workflow with dynamic tags", "elementor")),
7450
- /* @__PURE__ */ React102.createElement(import_ui51.Typography, { align: "center", variant: "caption", width: PROMO_TEXT_WIDTH }, (0, import_i18n77.__)("Upgrade now to display your content dynamically.", "elementor")),
7451
- /* @__PURE__ */ React102.createElement(
7765
+ /* @__PURE__ */ React103.createElement(import_icons31.DatabaseIcon, { fontSize: "large" }),
7766
+ /* @__PURE__ */ React103.createElement(import_ui52.Typography, { align: "center", variant: "subtitle2" }, (0, import_i18n79.__)("Streamline your workflow with dynamic tags", "elementor")),
7767
+ /* @__PURE__ */ React103.createElement(import_ui52.Typography, { align: "center", variant: "caption", width: PROMO_TEXT_WIDTH }, (0, import_i18n79.__)("Upgrade now to display your content dynamically.", "elementor")),
7768
+ /* @__PURE__ */ React103.createElement(
7452
7769
  import_editor_ui11.CtaButton,
7453
7770
  {
7454
7771
  size: "small",
7455
7772
  href: PRO_DYNAMIC_TAGS_URL,
7456
- onClick: () => (0, import_editor_controls65.trackUpgradePromotionClick)({ target_name: "dynamic_tags" })
7773
+ onClick: () => (0, import_editor_controls66.trackUpgradePromotionClick)({ target_name: "dynamic_tags" })
7457
7774
  }
7458
7775
  )
7459
7776
  ));
7460
- var ExpiredDynamicTags = () => /* @__PURE__ */ React102.createElement(React102.Fragment, null, /* @__PURE__ */ React102.createElement(import_ui51.Divider, null), /* @__PURE__ */ React102.createElement(
7461
- import_ui51.Stack,
7777
+ var ExpiredDynamicTags = () => /* @__PURE__ */ React103.createElement(React103.Fragment, null, /* @__PURE__ */ React103.createElement(import_ui52.Divider, null), /* @__PURE__ */ React103.createElement(
7778
+ import_ui52.Stack,
7462
7779
  {
7463
7780
  gap: 1,
7464
7781
  alignItems: "center",
@@ -7468,16 +7785,16 @@ var ExpiredDynamicTags = () => /* @__PURE__ */ React102.createElement(React102.F
7468
7785
  color: "text.secondary",
7469
7786
  sx: { pb: 3.5 }
7470
7787
  },
7471
- /* @__PURE__ */ React102.createElement(import_icons31.DatabaseIcon, { fontSize: "large" }),
7472
- /* @__PURE__ */ React102.createElement(import_ui51.Typography, { align: "center", variant: "subtitle2" }, (0, import_i18n77.__)("Unlock your Dynamic tags again", "elementor")),
7473
- /* @__PURE__ */ React102.createElement(import_ui51.Typography, { align: "center", variant: "caption", width: PROMO_TEXT_WIDTH }, (0, import_i18n77.__)("Dynamic tags need Elementor Pro. Renew now to keep them active.", "elementor")),
7474
- /* @__PURE__ */ React102.createElement(
7788
+ /* @__PURE__ */ React103.createElement(import_icons31.DatabaseIcon, { fontSize: "large" }),
7789
+ /* @__PURE__ */ React103.createElement(import_ui52.Typography, { align: "center", variant: "subtitle2" }, (0, import_i18n79.__)("Unlock your Dynamic tags again", "elementor")),
7790
+ /* @__PURE__ */ React103.createElement(import_ui52.Typography, { align: "center", variant: "caption", width: PROMO_TEXT_WIDTH }, (0, import_i18n79.__)("Dynamic tags need Elementor Pro. Renew now to keep them active.", "elementor")),
7791
+ /* @__PURE__ */ React103.createElement(
7475
7792
  import_editor_ui11.CtaButton,
7476
7793
  {
7477
7794
  size: "small",
7478
7795
  href: RENEW_DYNAMIC_TAGS_URL,
7479
- onClick: () => (0, import_editor_controls65.trackUpgradePromotionClick)({ target_name: "dynamic_tags" }),
7480
- children: (0, import_i18n77.__)("Renew Now", "elementor")
7796
+ onClick: () => (0, import_editor_controls66.trackUpgradePromotionClick)({ target_name: "dynamic_tags" }),
7797
+ children: (0, import_i18n79.__)("Renew Now", "elementor")
7481
7798
  }
7482
7799
  )
7483
7800
  ));
@@ -7501,8 +7818,8 @@ var useFilteredOptions = (searchValue) => {
7501
7818
  var SIZE3 = "tiny";
7502
7819
  var tagsWithoutTabs = ["popup"];
7503
7820
  var DynamicSelectionControl = ({ OriginalControl, ...props }) => {
7504
- const { setValue: setAnyValue, propType } = (0, import_editor_controls66.useBoundProp)();
7505
- const { bind, value } = (0, import_editor_controls66.useBoundProp)(dynamicPropTypeUtil);
7821
+ const { setValue: setAnyValue, propType } = (0, import_editor_controls67.useBoundProp)();
7822
+ const { bind, value } = (0, import_editor_controls67.useBoundProp)(dynamicPropTypeUtil);
7506
7823
  const { expired: readonly } = useLicenseConfig();
7507
7824
  const originalPropType = createTopLevelObjectType({
7508
7825
  schema: {
@@ -7510,11 +7827,11 @@ var DynamicSelectionControl = ({ OriginalControl, ...props }) => {
7510
7827
  }
7511
7828
  });
7512
7829
  const [propValueFromHistory] = usePersistDynamicValue(bind);
7513
- const selectionPopoverState = (0, import_ui52.usePopupState)({ variant: "popover" });
7830
+ const selectionPopoverState = (0, import_ui53.usePopupState)({ variant: "popover" });
7514
7831
  const { name: tagName = "" } = value;
7515
7832
  const dynamicTag = useDynamicTag(tagName);
7516
7833
  if (!isDynamicTagSupported(tagName) && OriginalControl) {
7517
- return /* @__PURE__ */ React103.createElement(import_editor_controls66.PropProvider, { propType: originalPropType, value: { [bind]: null }, setValue: setAnyValue }, /* @__PURE__ */ React103.createElement(import_editor_controls66.PropKeyProvider, { bind }, /* @__PURE__ */ React103.createElement(OriginalControl, { ...props })));
7834
+ return /* @__PURE__ */ React104.createElement(import_editor_controls67.PropProvider, { propType: originalPropType, value: { [bind]: null }, setValue: setAnyValue }, /* @__PURE__ */ React104.createElement(import_editor_controls67.PropKeyProvider, { bind }, /* @__PURE__ */ React104.createElement(OriginalControl, { ...props })));
7518
7835
  }
7519
7836
  const removeDynamicTag = () => {
7520
7837
  setAnyValue(propValueFromHistory ?? null);
@@ -7522,26 +7839,26 @@ var DynamicSelectionControl = ({ OriginalControl, ...props }) => {
7522
7839
  if (!dynamicTag) {
7523
7840
  throw new Error(`Dynamic tag ${tagName} not found`);
7524
7841
  }
7525
- return /* @__PURE__ */ React103.createElement(import_ui52.Box, null, /* @__PURE__ */ React103.createElement(
7526
- import_ui52.UnstableTag,
7842
+ return /* @__PURE__ */ React104.createElement(import_ui53.Box, null, /* @__PURE__ */ React104.createElement(
7843
+ import_ui53.UnstableTag,
7527
7844
  {
7528
7845
  fullWidth: true,
7529
7846
  showActionsOnHover: true,
7530
7847
  label: dynamicTag.label,
7531
- startIcon: /* @__PURE__ */ React103.createElement(import_icons32.DatabaseIcon, { fontSize: SIZE3 }),
7532
- ...(0, import_ui52.bindTrigger)(selectionPopoverState),
7533
- actions: /* @__PURE__ */ React103.createElement(React103.Fragment, null, /* @__PURE__ */ React103.createElement(DynamicSettingsPopover, { dynamicTag, disabled: readonly }), /* @__PURE__ */ React103.createElement(
7534
- import_ui52.IconButton,
7848
+ startIcon: /* @__PURE__ */ React104.createElement(import_icons32.DatabaseIcon, { fontSize: SIZE3 }),
7849
+ ...(0, import_ui53.bindTrigger)(selectionPopoverState),
7850
+ actions: /* @__PURE__ */ React104.createElement(React104.Fragment, null, /* @__PURE__ */ React104.createElement(DynamicSettingsPopover, { dynamicTag, disabled: readonly }), /* @__PURE__ */ React104.createElement(
7851
+ import_ui53.IconButton,
7535
7852
  {
7536
7853
  size: SIZE3,
7537
7854
  onClick: removeDynamicTag,
7538
- "aria-label": (0, import_i18n78.__)("Remove dynamic value", "elementor")
7855
+ "aria-label": (0, import_i18n80.__)("Remove dynamic value", "elementor")
7539
7856
  },
7540
- /* @__PURE__ */ React103.createElement(import_icons32.XIcon, { fontSize: SIZE3 })
7857
+ /* @__PURE__ */ React104.createElement(import_icons32.XIcon, { fontSize: SIZE3 })
7541
7858
  ))
7542
7859
  }
7543
- ), /* @__PURE__ */ React103.createElement(
7544
- import_ui52.Popover,
7860
+ ), /* @__PURE__ */ React104.createElement(
7861
+ import_ui53.Popover,
7545
7862
  {
7546
7863
  disablePortal: true,
7547
7864
  disableScrollLock: true,
@@ -7550,31 +7867,31 @@ var DynamicSelectionControl = ({ OriginalControl, ...props }) => {
7550
7867
  PaperProps: {
7551
7868
  sx: { my: 1 }
7552
7869
  },
7553
- ...(0, import_ui52.bindPopover)(selectionPopoverState)
7870
+ ...(0, import_ui53.bindPopover)(selectionPopoverState)
7554
7871
  },
7555
- /* @__PURE__ */ React103.createElement(import_editor_ui12.SectionPopoverBody, { "aria-label": (0, import_i18n78.__)("Dynamic tags", "elementor") }, /* @__PURE__ */ React103.createElement(DynamicSelection, { close: selectionPopoverState.close, expired: readonly }))
7872
+ /* @__PURE__ */ React104.createElement(import_editor_ui12.SectionPopoverBody, { "aria-label": (0, import_i18n80.__)("Dynamic tags", "elementor") }, /* @__PURE__ */ React104.createElement(DynamicSelection, { close: selectionPopoverState.close, expired: readonly }))
7556
7873
  ));
7557
7874
  };
7558
7875
  var DynamicSettingsPopover = ({
7559
7876
  dynamicTag,
7560
7877
  disabled = false
7561
7878
  }) => {
7562
- const popupState = (0, import_ui52.usePopupState)({ variant: "popover" });
7879
+ const popupState = (0, import_ui53.usePopupState)({ variant: "popover" });
7563
7880
  const hasDynamicSettings = !!dynamicTag.atomic_controls.length;
7564
7881
  if (!hasDynamicSettings) {
7565
7882
  return null;
7566
7883
  }
7567
- return /* @__PURE__ */ React103.createElement(React103.Fragment, null, /* @__PURE__ */ React103.createElement(
7568
- import_ui52.IconButton,
7884
+ return /* @__PURE__ */ React104.createElement(React104.Fragment, null, /* @__PURE__ */ React104.createElement(
7885
+ import_ui53.IconButton,
7569
7886
  {
7570
7887
  size: SIZE3,
7571
7888
  disabled,
7572
- ...!disabled && (0, import_ui52.bindTrigger)(popupState),
7573
- "aria-label": (0, import_i18n78.__)("Dynamic settings", "elementor")
7889
+ ...!disabled && (0, import_ui53.bindTrigger)(popupState),
7890
+ "aria-label": (0, import_i18n80.__)("Dynamic settings", "elementor")
7574
7891
  },
7575
- /* @__PURE__ */ React103.createElement(import_icons32.SettingsIcon, { fontSize: SIZE3 })
7576
- ), /* @__PURE__ */ React103.createElement(
7577
- import_ui52.Popover,
7892
+ /* @__PURE__ */ React104.createElement(import_icons32.SettingsIcon, { fontSize: SIZE3 })
7893
+ ), /* @__PURE__ */ React104.createElement(
7894
+ import_ui53.Popover,
7578
7895
  {
7579
7896
  disablePortal: true,
7580
7897
  disableScrollLock: true,
@@ -7583,45 +7900,45 @@ var DynamicSettingsPopover = ({
7583
7900
  PaperProps: {
7584
7901
  sx: { my: 1 }
7585
7902
  },
7586
- ...(0, import_ui52.bindPopover)(popupState)
7903
+ ...(0, import_ui53.bindPopover)(popupState)
7587
7904
  },
7588
- /* @__PURE__ */ React103.createElement(import_editor_ui12.SectionPopoverBody, { "aria-label": (0, import_i18n78.__)("Dynamic settings", "elementor") }, /* @__PURE__ */ React103.createElement(
7905
+ /* @__PURE__ */ React104.createElement(import_editor_ui12.SectionPopoverBody, { "aria-label": (0, import_i18n80.__)("Dynamic settings", "elementor") }, /* @__PURE__ */ React104.createElement(
7589
7906
  import_editor_ui12.PopoverHeader,
7590
7907
  {
7591
7908
  title: dynamicTag.label,
7592
7909
  onClose: popupState.close,
7593
- icon: /* @__PURE__ */ React103.createElement(import_icons32.DatabaseIcon, { fontSize: SIZE3 })
7910
+ icon: /* @__PURE__ */ React104.createElement(import_icons32.DatabaseIcon, { fontSize: SIZE3 })
7594
7911
  }
7595
- ), /* @__PURE__ */ React103.createElement(DynamicSettings, { controls: dynamicTag.atomic_controls, tagName: dynamicTag.name }))
7912
+ ), /* @__PURE__ */ React104.createElement(DynamicSettings, { controls: dynamicTag.atomic_controls, tagName: dynamicTag.name }))
7596
7913
  ));
7597
7914
  };
7598
7915
  var DynamicSettings = ({ controls, tagName }) => {
7599
7916
  const tabs = controls.filter(({ type }) => type === "section");
7600
- const { getTabsProps, getTabProps, getTabPanelProps } = (0, import_ui52.useTabs)(0);
7917
+ const { getTabsProps, getTabProps, getTabPanelProps } = (0, import_ui53.useTabs)(0);
7601
7918
  if (!tabs.length) {
7602
7919
  return null;
7603
7920
  }
7604
7921
  if (tagsWithoutTabs.includes(tagName)) {
7605
7922
  const singleTab = tabs[0];
7606
- return /* @__PURE__ */ React103.createElement(React103.Fragment, null, /* @__PURE__ */ React103.createElement(import_ui52.Divider, null), /* @__PURE__ */ React103.createElement(ControlsItemsStack, { items: singleTab.value.items }));
7923
+ return /* @__PURE__ */ React104.createElement(React104.Fragment, null, /* @__PURE__ */ React104.createElement(import_ui53.Divider, null), /* @__PURE__ */ React104.createElement(ControlsItemsStack, { items: singleTab.value.items }));
7607
7924
  }
7608
- return /* @__PURE__ */ React103.createElement(React103.Fragment, null, tabs.length > 1 && /* @__PURE__ */ React103.createElement(import_ui52.Tabs, { size: "small", variant: "fullWidth", ...getTabsProps() }, tabs.map(({ value }, index) => /* @__PURE__ */ React103.createElement(
7609
- import_ui52.Tab,
7925
+ return /* @__PURE__ */ React104.createElement(React104.Fragment, null, tabs.length > 1 && /* @__PURE__ */ React104.createElement(import_ui53.Tabs, { size: "small", variant: "fullWidth", ...getTabsProps() }, tabs.map(({ value }, index) => /* @__PURE__ */ React104.createElement(
7926
+ import_ui53.Tab,
7610
7927
  {
7611
7928
  key: index,
7612
7929
  label: value.label,
7613
7930
  sx: { px: 1, py: 0.5 },
7614
7931
  ...getTabProps(index)
7615
7932
  }
7616
- ))), /* @__PURE__ */ React103.createElement(import_ui52.Divider, null), tabs.map(({ value }, index) => {
7617
- return /* @__PURE__ */ React103.createElement(
7618
- import_ui52.TabPanel,
7933
+ ))), /* @__PURE__ */ React104.createElement(import_ui53.Divider, null), tabs.map(({ value }, index) => {
7934
+ return /* @__PURE__ */ React104.createElement(
7935
+ import_ui53.TabPanel,
7619
7936
  {
7620
7937
  key: index,
7621
7938
  sx: { flexGrow: 1, py: 0, overflowY: "auto" },
7622
7939
  ...getTabPanelProps(index)
7623
7940
  },
7624
- /* @__PURE__ */ React103.createElement(ControlsItemsStack, { items: value.items })
7941
+ /* @__PURE__ */ React104.createElement(ControlsItemsStack, { items: value.items })
7625
7942
  );
7626
7943
  }));
7627
7944
  };
@@ -7663,17 +7980,17 @@ var Control2 = ({ control }) => {
7663
7980
  display: "grid",
7664
7981
  gridTemplateColumns: isSwitchControl ? "minmax(0, 1fr) max-content" : "1fr 1fr"
7665
7982
  } : {};
7666
- return /* @__PURE__ */ React103.createElement(DynamicControl, { bind: control.bind }, /* @__PURE__ */ React103.createElement(import_ui52.Grid, { container: true, gap: 0.75, sx: layoutStyleProps }, control.label ? /* @__PURE__ */ React103.createElement(import_ui52.Grid, { item: true, xs: 12 }, /* @__PURE__ */ React103.createElement(import_editor_controls66.ControlFormLabel, null, control.label)) : null, /* @__PURE__ */ React103.createElement(import_ui52.Grid, { item: true, xs: 12 }, /* @__PURE__ */ React103.createElement(Control, { type: control.type, props: controlProps }))));
7983
+ return /* @__PURE__ */ React104.createElement(DynamicControl, { bind: control.bind }, /* @__PURE__ */ React104.createElement(import_ui53.Grid, { container: true, gap: 0.75, sx: layoutStyleProps }, control.label ? /* @__PURE__ */ React104.createElement(import_ui53.Grid, { item: true, xs: 12 }, /* @__PURE__ */ React104.createElement(import_editor_controls67.ControlFormLabel, null, control.label)) : null, /* @__PURE__ */ React104.createElement(import_ui53.Grid, { item: true, xs: 12 }, /* @__PURE__ */ React104.createElement(Control, { type: control.type, props: controlProps }))));
7667
7984
  };
7668
7985
  function ControlsItemsStack({ items: items3 }) {
7669
- return /* @__PURE__ */ React103.createElement(import_ui52.Stack, { p: 2, gap: 2, sx: { overflowY: "auto" } }, items3.map(
7670
- (item) => item.type === "control" ? /* @__PURE__ */ React103.createElement(Control2, { key: item.value.bind, control: item.value }) : null
7986
+ return /* @__PURE__ */ React104.createElement(import_ui53.Stack, { p: 2, gap: 2, sx: { overflowY: "auto" } }, items3.map(
7987
+ (item) => item.type === "control" ? /* @__PURE__ */ React104.createElement(Control2, { key: item.value.bind, control: item.value }) : null
7671
7988
  ));
7672
7989
  }
7673
7990
 
7674
7991
  // src/dynamics/dynamic-transformer.ts
7675
7992
  var import_editor_canvas2 = require("@elementor/editor-canvas");
7676
- var import_editor_props29 = require("@elementor/editor-props");
7993
+ var import_editor_props30 = require("@elementor/editor-props");
7677
7994
 
7678
7995
  // src/dynamics/errors.ts
7679
7996
  var import_utils9 = require("@elementor/utils");
@@ -7692,7 +8009,7 @@ var dynamicTransformer = (0, import_editor_canvas2.createTransformer)((value, {
7692
8009
  });
7693
8010
  function simpleTransform(props) {
7694
8011
  const transformed = Object.entries(props).map(([settingKey, settingValue]) => {
7695
- const value = (0, import_editor_props29.isTransformable)(settingValue) ? settingValue.value : settingValue;
8012
+ const value = (0, import_editor_props30.isTransformable)(settingValue) ? settingValue.value : settingValue;
7696
8013
  return [settingKey, value];
7697
8014
  });
7698
8015
  return Object.fromEntries(transformed);
@@ -7724,34 +8041,34 @@ function getDynamicValue(name, settings, renderPostId) {
7724
8041
  }
7725
8042
 
7726
8043
  // src/dynamics/hooks/use-prop-dynamic-action.tsx
7727
- var React104 = __toESM(require("react"));
7728
- var import_editor_controls67 = require("@elementor/editor-controls");
8044
+ var React105 = __toESM(require("react"));
8045
+ var import_editor_controls68 = require("@elementor/editor-controls");
7729
8046
  var import_icons33 = require("@elementor/icons");
7730
- var import_i18n79 = require("@wordpress/i18n");
8047
+ var import_i18n81 = require("@wordpress/i18n");
7731
8048
  var usePropDynamicAction = () => {
7732
- const { propType } = (0, import_editor_controls67.useBoundProp)();
8049
+ const { propType } = (0, import_editor_controls68.useBoundProp)();
7733
8050
  const visible = !!propType && supportsDynamic(propType);
7734
8051
  return {
7735
8052
  visible,
7736
8053
  icon: import_icons33.DatabaseIcon,
7737
- title: (0, import_i18n79.__)("Dynamic tags", "elementor"),
7738
- content: ({ close }) => /* @__PURE__ */ React104.createElement(DynamicSelection, { close })
8054
+ title: (0, import_i18n81.__)("Dynamic tags", "elementor"),
8055
+ content: ({ close }) => /* @__PURE__ */ React105.createElement(DynamicSelection, { close })
7739
8056
  };
7740
8057
  };
7741
8058
 
7742
8059
  // src/dynamics/init.ts
7743
8060
  var { registerPopoverAction } = import_menus2.controlActionsMenu;
7744
8061
  var init2 = () => {
7745
- (0, import_editor_controls68.registerControlReplacement)({
8062
+ (0, import_editor_controls69.registerControlReplacement)({
7746
8063
  component: DynamicSelectionControl,
7747
8064
  condition: ({ value }) => isDynamicPropValue(value)
7748
8065
  });
7749
- (0, import_editor_controls68.injectIntoRepeaterItemLabel)({
8066
+ (0, import_editor_controls69.injectIntoRepeaterItemLabel)({
7750
8067
  id: "dynamic-background-image",
7751
8068
  condition: ({ value }) => isDynamicPropValue(value.value?.image?.value?.src),
7752
8069
  component: BackgroundControlDynamicTagLabel
7753
8070
  });
7754
- (0, import_editor_controls68.injectIntoRepeaterItemIcon)({
8071
+ (0, import_editor_controls69.injectIntoRepeaterItemIcon)({
7755
8072
  id: "dynamic-background-image",
7756
8073
  condition: ({ value }) => isDynamicPropValue(value.value?.image?.value?.src),
7757
8074
  component: BackgroundControlDynamicTagIcon
@@ -7766,11 +8083,11 @@ var init2 = () => {
7766
8083
  };
7767
8084
 
7768
8085
  // src/reset-style-props.tsx
7769
- var import_editor_controls69 = require("@elementor/editor-controls");
8086
+ var import_editor_controls70 = require("@elementor/editor-controls");
7770
8087
  var import_editor_variables2 = require("@elementor/editor-variables");
7771
8088
  var import_icons34 = require("@elementor/icons");
7772
8089
  var import_menus3 = require("@elementor/menus");
7773
- var import_i18n80 = require("@wordpress/i18n");
8090
+ var import_i18n82 = require("@wordpress/i18n");
7774
8091
 
7775
8092
  // src/utils/is-equal.ts
7776
8093
  function isEqual(a, b) {
@@ -7826,7 +8143,7 @@ function initResetStyleProps() {
7826
8143
  }
7827
8144
  function useResetStyleValueProps() {
7828
8145
  const isStyle = useIsStyle();
7829
- const { value, resetValue, propType } = (0, import_editor_controls69.useBoundProp)();
8146
+ const { value, resetValue, propType } = (0, import_editor_controls70.useBoundProp)();
7830
8147
  const hasValue = value !== null && value !== void 0;
7831
8148
  const hasInitial = propType.initial_value !== void 0 && propType.initial_value !== null;
7832
8149
  const isRequired = !!propType.settings?.required;
@@ -7846,44 +8163,44 @@ function useResetStyleValueProps() {
7846
8163
  const visible = calculateVisibility();
7847
8164
  return {
7848
8165
  visible,
7849
- title: (0, import_i18n80.__)("Clear", "elementor"),
8166
+ title: (0, import_i18n82.__)("Clear", "elementor"),
7850
8167
  icon: import_icons34.BrushBigIcon,
7851
8168
  onClick: () => resetValue()
7852
8169
  };
7853
8170
  }
7854
8171
 
7855
8172
  // src/styles-inheritance/components/styles-inheritance-indicator.tsx
7856
- var React110 = __toESM(require("react"));
7857
- var import_editor_controls70 = require("@elementor/editor-controls");
7858
- var import_editor_props30 = require("@elementor/editor-props");
8173
+ var React111 = __toESM(require("react"));
8174
+ var import_editor_controls71 = require("@elementor/editor-controls");
8175
+ var import_editor_props31 = require("@elementor/editor-props");
7859
8176
  var import_editor_styles_repository20 = require("@elementor/editor-styles-repository");
7860
- var import_i18n84 = require("@wordpress/i18n");
8177
+ var import_i18n86 = require("@wordpress/i18n");
7861
8178
 
7862
8179
  // src/styles-inheritance/components/styles-inheritance-infotip.tsx
7863
- var React109 = __toESM(require("react"));
7864
- var import_react49 = require("react");
8180
+ var React110 = __toESM(require("react"));
8181
+ var import_react52 = require("react");
7865
8182
  var import_editor_canvas5 = require("@elementor/editor-canvas");
7866
8183
  var import_editor_ui13 = require("@elementor/editor-ui");
7867
- var import_ui57 = require("@elementor/ui");
7868
- var import_i18n83 = require("@wordpress/i18n");
8184
+ var import_ui58 = require("@elementor/ui");
8185
+ var import_i18n85 = require("@wordpress/i18n");
7869
8186
 
7870
8187
  // src/styles-inheritance/hooks/use-normalized-inheritance-chain-items.tsx
7871
- var import_react48 = require("react");
8188
+ var import_react51 = require("react");
7872
8189
  var import_editor_canvas4 = require("@elementor/editor-canvas");
7873
8190
  var import_editor_styles8 = require("@elementor/editor-styles");
7874
8191
  var import_editor_styles_repository18 = require("@elementor/editor-styles-repository");
7875
- var import_i18n81 = require("@wordpress/i18n");
8192
+ var import_i18n83 = require("@wordpress/i18n");
7876
8193
  var MAXIMUM_ITEMS = 2;
7877
8194
  var useNormalizedInheritanceChainItems = (inheritanceChain, bind, resolve) => {
7878
- const [items3, setItems] = (0, import_react48.useState)([]);
7879
- (0, import_react48.useEffect)(() => {
8195
+ const [items3, setItems] = (0, import_react51.useState)([]);
8196
+ (0, import_react51.useEffect)(() => {
7880
8197
  (async () => {
7881
8198
  const normalizedItems = await Promise.all(
7882
8199
  inheritanceChain.filter(({ style }) => style).map((item, index) => normalizeInheritanceItem(item, index, bind, resolve))
7883
8200
  );
7884
8201
  const validItems = normalizedItems.map((item) => ({
7885
8202
  ...item,
7886
- displayLabel: import_editor_styles_repository18.ELEMENTS_BASE_STYLES_PROVIDER_KEY !== item.provider ? item.displayLabel : (0, import_i18n81.__)("Base", "elementor")
8203
+ displayLabel: import_editor_styles_repository18.ELEMENTS_BASE_STYLES_PROVIDER_KEY !== item.provider ? item.displayLabel : (0, import_i18n83.__)("Base", "elementor")
7887
8204
  })).filter((item) => !item.value || item.displayLabel !== "").slice(0, MAXIMUM_ITEMS);
7888
8205
  setItems(validItems);
7889
8206
  })();
@@ -7927,7 +8244,7 @@ var getTransformedValue = async (item, bind, resolve) => {
7927
8244
  }
7928
8245
  });
7929
8246
  const value = result?.[bind] ?? result;
7930
- if ((0, import_react48.isValidElement)(value)) {
8247
+ if ((0, import_react51.isValidElement)(value)) {
7931
8248
  return value;
7932
8249
  }
7933
8250
  if (typeof value === "object") {
@@ -7940,10 +8257,10 @@ var getTransformedValue = async (item, bind, resolve) => {
7940
8257
  };
7941
8258
 
7942
8259
  // src/styles-inheritance/components/infotip/breakpoint-icon.tsx
7943
- var React105 = __toESM(require("react"));
8260
+ var React106 = __toESM(require("react"));
7944
8261
  var import_editor_responsive5 = require("@elementor/editor-responsive");
7945
8262
  var import_icons35 = require("@elementor/icons");
7946
- var import_ui53 = require("@elementor/ui");
8263
+ var import_ui54 = require("@elementor/ui");
7947
8264
  var SIZE4 = "tiny";
7948
8265
  var DEFAULT_BREAKPOINT3 = "desktop";
7949
8266
  var breakpointIconMap = {
@@ -7963,21 +8280,21 @@ var BreakpointIcon = ({ breakpoint }) => {
7963
8280
  return null;
7964
8281
  }
7965
8282
  const breakpointLabel = breakpoints.find((breakpointItem) => breakpointItem.id === currentBreakpoint)?.label;
7966
- return /* @__PURE__ */ React105.createElement(import_ui53.Tooltip, { title: breakpointLabel, placement: "top" }, /* @__PURE__ */ React105.createElement(IconComponent, { fontSize: SIZE4, sx: { mt: "2px" } }));
8283
+ return /* @__PURE__ */ React106.createElement(import_ui54.Tooltip, { title: breakpointLabel, placement: "top" }, /* @__PURE__ */ React106.createElement(IconComponent, { fontSize: SIZE4, sx: { mt: "2px" } }));
7967
8284
  };
7968
8285
 
7969
8286
  // src/styles-inheritance/components/infotip/label-chip.tsx
7970
- var React106 = __toESM(require("react"));
8287
+ var React107 = __toESM(require("react"));
7971
8288
  var import_editor_styles_repository19 = require("@elementor/editor-styles-repository");
7972
8289
  var import_icons36 = require("@elementor/icons");
7973
- var import_ui54 = require("@elementor/ui");
7974
- var import_i18n82 = require("@wordpress/i18n");
8290
+ var import_ui55 = require("@elementor/ui");
8291
+ var import_i18n84 = require("@wordpress/i18n");
7975
8292
  var SIZE5 = "tiny";
7976
8293
  var LabelChip = ({ displayLabel, provider }) => {
7977
8294
  const isBaseStyle = provider === import_editor_styles_repository19.ELEMENTS_BASE_STYLES_PROVIDER_KEY;
7978
- const chipIcon = isBaseStyle ? /* @__PURE__ */ React106.createElement(import_ui54.Tooltip, { title: (0, import_i18n82.__)("Inherited from base styles", "elementor"), placement: "top" }, /* @__PURE__ */ React106.createElement(import_icons36.InfoCircleIcon, { fontSize: SIZE5 })) : void 0;
7979
- return /* @__PURE__ */ React106.createElement(
7980
- import_ui54.Chip,
8295
+ const chipIcon = isBaseStyle ? /* @__PURE__ */ React107.createElement(import_ui55.Tooltip, { title: (0, import_i18n84.__)("Inherited from base styles", "elementor"), placement: "top" }, /* @__PURE__ */ React107.createElement(import_icons36.InfoCircleIcon, { fontSize: SIZE5 })) : void 0;
8296
+ return /* @__PURE__ */ React107.createElement(
8297
+ import_ui55.Chip,
7981
8298
  {
7982
8299
  label: displayLabel,
7983
8300
  size: SIZE5,
@@ -8002,11 +8319,11 @@ var LabelChip = ({ displayLabel, provider }) => {
8002
8319
  };
8003
8320
 
8004
8321
  // src/styles-inheritance/components/infotip/value-component.tsx
8005
- var React107 = __toESM(require("react"));
8006
- var import_ui55 = require("@elementor/ui");
8322
+ var React108 = __toESM(require("react"));
8323
+ var import_ui56 = require("@elementor/ui");
8007
8324
  var ValueComponent = ({ index, value }) => {
8008
- return /* @__PURE__ */ React107.createElement(import_ui55.Tooltip, { title: value, placement: "top" }, /* @__PURE__ */ React107.createElement(
8009
- import_ui55.Typography,
8325
+ return /* @__PURE__ */ React108.createElement(import_ui56.Tooltip, { title: value, placement: "top" }, /* @__PURE__ */ React108.createElement(
8326
+ import_ui56.Typography,
8010
8327
  {
8011
8328
  variant: "caption",
8012
8329
  color: "text.tertiary",
@@ -8027,9 +8344,9 @@ var ValueComponent = ({ index, value }) => {
8027
8344
  };
8028
8345
 
8029
8346
  // src/styles-inheritance/components/infotip/action-icons.tsx
8030
- var React108 = __toESM(require("react"));
8031
- var import_ui56 = require("@elementor/ui");
8032
- var ActionIcons = () => /* @__PURE__ */ React108.createElement(import_ui56.Box, { display: "flex", gap: 0.5, alignItems: "center" });
8347
+ var React109 = __toESM(require("react"));
8348
+ var import_ui57 = require("@elementor/ui");
8349
+ var ActionIcons = () => /* @__PURE__ */ React109.createElement(import_ui57.Box, { display: "flex", gap: 0.5, alignItems: "center" });
8033
8350
 
8034
8351
  // src/styles-inheritance/components/styles-inheritance-infotip.tsx
8035
8352
  var SECTION_PADDING_INLINE = 32;
@@ -8042,8 +8359,8 @@ var StylesInheritanceInfotip = ({
8042
8359
  children,
8043
8360
  isDisabled
8044
8361
  }) => {
8045
- const [showInfotip, setShowInfotip] = (0, import_react49.useState)(false);
8046
- const triggerRef = (0, import_react49.useRef)(null);
8362
+ const [showInfotip, setShowInfotip] = (0, import_react52.useState)(false);
8363
+ const triggerRef = (0, import_react52.useRef)(null);
8047
8364
  const toggleInfotip = () => {
8048
8365
  if (isDisabled) {
8049
8366
  return;
@@ -8058,15 +8375,15 @@ var StylesInheritanceInfotip = ({
8058
8375
  };
8059
8376
  const key = path.join(".");
8060
8377
  const sectionWidth = (0, import_editor_ui13.useSectionWidth)();
8061
- const resolve = (0, import_react49.useMemo)(() => {
8378
+ const resolve = (0, import_react52.useMemo)(() => {
8062
8379
  return (0, import_editor_canvas5.createPropsResolver)({
8063
8380
  transformers: import_editor_canvas5.stylesInheritanceTransformersRegistry,
8064
8381
  schema: { [key]: propType }
8065
8382
  });
8066
8383
  }, [key, propType]);
8067
8384
  const items3 = useNormalizedInheritanceChainItems(inheritanceChain, key, resolve);
8068
- const infotipContent = /* @__PURE__ */ React109.createElement(import_ui57.ClickAwayListener, { onClickAway: closeInfotip }, /* @__PURE__ */ React109.createElement(
8069
- import_ui57.Card,
8385
+ const infotipContent = /* @__PURE__ */ React110.createElement(import_ui58.ClickAwayListener, { onClickAway: closeInfotip }, /* @__PURE__ */ React110.createElement(
8386
+ import_ui58.Card,
8070
8387
  {
8071
8388
  elevation: 0,
8072
8389
  sx: {
@@ -8078,8 +8395,8 @@ var StylesInheritanceInfotip = ({
8078
8395
  flexDirection: "column"
8079
8396
  }
8080
8397
  },
8081
- /* @__PURE__ */ React109.createElement(
8082
- import_ui57.Box,
8398
+ /* @__PURE__ */ React110.createElement(
8399
+ import_ui58.Box,
8083
8400
  {
8084
8401
  sx: {
8085
8402
  position: "sticky",
@@ -8088,10 +8405,10 @@ var StylesInheritanceInfotip = ({
8088
8405
  backgroundColor: "background.paper"
8089
8406
  }
8090
8407
  },
8091
- /* @__PURE__ */ React109.createElement(import_editor_ui13.PopoverHeader, { title: (0, import_i18n83.__)("Style origin", "elementor"), onClose: closeInfotip })
8408
+ /* @__PURE__ */ React110.createElement(import_editor_ui13.PopoverHeader, { title: (0, import_i18n85.__)("Style origin", "elementor"), onClose: closeInfotip })
8092
8409
  ),
8093
- /* @__PURE__ */ React109.createElement(
8094
- import_ui57.CardContent,
8410
+ /* @__PURE__ */ React110.createElement(
8411
+ import_ui58.CardContent,
8095
8412
  {
8096
8413
  sx: {
8097
8414
  display: "flex",
@@ -8104,39 +8421,39 @@ var StylesInheritanceInfotip = ({
8104
8421
  }
8105
8422
  }
8106
8423
  },
8107
- /* @__PURE__ */ React109.createElement(import_ui57.Stack, { gap: 1.5, sx: { pl: 2, pr: 1, pt: 1.5, pb: 1.5 }, role: "list" }, items3.map((item, index) => {
8108
- return /* @__PURE__ */ React109.createElement(
8109
- import_ui57.Box,
8424
+ /* @__PURE__ */ React110.createElement(import_ui58.Stack, { gap: 1.5, sx: { pl: 2, pr: 1, pt: 1.5, pb: 1.5 }, role: "list" }, items3.map((item, index) => {
8425
+ return /* @__PURE__ */ React110.createElement(
8426
+ import_ui58.Box,
8110
8427
  {
8111
8428
  key: item.id,
8112
8429
  display: "flex",
8113
8430
  gap: 0.5,
8114
8431
  role: "listitem",
8115
- "aria-label": (0, import_i18n83.__)("Inheritance item: %s", "elementor").replace(
8432
+ "aria-label": (0, import_i18n85.__)("Inheritance item: %s", "elementor").replace(
8116
8433
  "%s",
8117
8434
  item.displayLabel
8118
8435
  )
8119
8436
  },
8120
- /* @__PURE__ */ React109.createElement(
8121
- import_ui57.Box,
8437
+ /* @__PURE__ */ React110.createElement(
8438
+ import_ui58.Box,
8122
8439
  {
8123
8440
  display: "flex",
8124
8441
  gap: 0.5,
8125
8442
  sx: { flexWrap: "wrap", width: "100%", alignItems: "flex-start" }
8126
8443
  },
8127
- /* @__PURE__ */ React109.createElement(BreakpointIcon, { breakpoint: item.breakpoint }),
8128
- /* @__PURE__ */ React109.createElement(LabelChip, { displayLabel: item.displayLabel, provider: item.provider }),
8129
- /* @__PURE__ */ React109.createElement(ValueComponent, { index, value: item.value })
8444
+ /* @__PURE__ */ React110.createElement(BreakpointIcon, { breakpoint: item.breakpoint }),
8445
+ /* @__PURE__ */ React110.createElement(LabelChip, { displayLabel: item.displayLabel, provider: item.provider }),
8446
+ /* @__PURE__ */ React110.createElement(ValueComponent, { index, value: item.value })
8130
8447
  ),
8131
- /* @__PURE__ */ React109.createElement(ActionIcons, null)
8448
+ /* @__PURE__ */ React110.createElement(ActionIcons, null)
8132
8449
  );
8133
8450
  }))
8134
8451
  )
8135
8452
  ));
8136
8453
  if (isDisabled) {
8137
- return /* @__PURE__ */ React109.createElement(import_ui57.Box, { sx: { display: "inline-flex" } }, children);
8454
+ return /* @__PURE__ */ React110.createElement(import_ui58.Box, { sx: { display: "inline-flex" } }, children);
8138
8455
  }
8139
- return /* @__PURE__ */ React109.createElement(import_ui57.Box, { ref: triggerRef, sx: { display: "inline-flex" } }, /* @__PURE__ */ React109.createElement(
8456
+ return /* @__PURE__ */ React110.createElement(import_ui58.Box, { ref: triggerRef, sx: { display: "inline-flex" } }, /* @__PURE__ */ React110.createElement(
8140
8457
  TooltipOrInfotip,
8141
8458
  {
8142
8459
  showInfotip,
@@ -8144,8 +8461,8 @@ var StylesInheritanceInfotip = ({
8144
8461
  infotipContent,
8145
8462
  isDisabled
8146
8463
  },
8147
- /* @__PURE__ */ React109.createElement(
8148
- import_ui57.IconButton,
8464
+ /* @__PURE__ */ React110.createElement(
8465
+ import_ui58.IconButton,
8149
8466
  {
8150
8467
  onClick: toggleInfotip,
8151
8468
  "aria-label": label,
@@ -8164,11 +8481,11 @@ function TooltipOrInfotip({
8164
8481
  isDisabled
8165
8482
  }) {
8166
8483
  if (isDisabled) {
8167
- return /* @__PURE__ */ React109.createElement(import_ui57.Box, { sx: { display: "inline-flex" } }, children);
8484
+ return /* @__PURE__ */ React110.createElement(import_ui58.Box, { sx: { display: "inline-flex" } }, children);
8168
8485
  }
8169
8486
  if (showInfotip) {
8170
- return /* @__PURE__ */ React109.createElement(React109.Fragment, null, /* @__PURE__ */ React109.createElement(
8171
- import_ui57.Backdrop,
8487
+ return /* @__PURE__ */ React110.createElement(React110.Fragment, null, /* @__PURE__ */ React110.createElement(
8488
+ import_ui58.Backdrop,
8172
8489
  {
8173
8490
  open: showInfotip,
8174
8491
  onClick: onClose,
@@ -8177,8 +8494,8 @@ function TooltipOrInfotip({
8177
8494
  zIndex: (theme) => theme.zIndex.modal - 1
8178
8495
  }
8179
8496
  }
8180
- ), /* @__PURE__ */ React109.createElement(
8181
- import_ui57.Infotip,
8497
+ ), /* @__PURE__ */ React110.createElement(
8498
+ import_ui58.Infotip,
8182
8499
  {
8183
8500
  placement: "top-end",
8184
8501
  content: infotipContent,
@@ -8189,25 +8506,25 @@ function TooltipOrInfotip({
8189
8506
  children
8190
8507
  ));
8191
8508
  }
8192
- return /* @__PURE__ */ React109.createElement(import_ui57.Tooltip, { title: (0, import_i18n83.__)("Style origin", "elementor"), placement: "top" }, children);
8509
+ return /* @__PURE__ */ React110.createElement(import_ui58.Tooltip, { title: (0, import_i18n85.__)("Style origin", "elementor"), placement: "top" }, children);
8193
8510
  }
8194
8511
 
8195
8512
  // src/styles-inheritance/components/styles-inheritance-indicator.tsx
8196
8513
  var StylesInheritanceIndicator = ({
8197
8514
  customContext
8198
8515
  }) => {
8199
- const context = (0, import_editor_controls70.useBoundProp)();
8516
+ const context = (0, import_editor_controls71.useBoundProp)();
8200
8517
  const { path, propType } = customContext || context;
8201
8518
  const inheritanceChain = useStylesInheritanceChain(path);
8202
8519
  if (!path || !inheritanceChain.length) {
8203
8520
  return null;
8204
8521
  }
8205
- return /* @__PURE__ */ React110.createElement(Indicator, { inheritanceChain, path, propType });
8522
+ return /* @__PURE__ */ React111.createElement(Indicator, { inheritanceChain, path, propType });
8206
8523
  };
8207
8524
  var Indicator = ({ inheritanceChain, path, propType, isDisabled }) => {
8208
8525
  const { id: currentStyleId, provider: currentStyleProvider, meta: currentStyleMeta } = useStyle();
8209
8526
  const currentItem = currentStyleId ? getValueFromInheritanceChain(inheritanceChain, currentStyleId, currentStyleMeta) : null;
8210
- const hasValue = !(0, import_editor_props30.isEmpty)(currentItem?.value);
8527
+ const hasValue = !(0, import_editor_props31.isEmpty)(currentItem?.value);
8211
8528
  const [actualStyle] = inheritanceChain;
8212
8529
  if (actualStyle.provider === import_editor_styles_repository20.ELEMENTS_BASE_STYLES_PROVIDER_KEY) {
8213
8530
  return null;
@@ -8218,7 +8535,7 @@ var Indicator = ({ inheritanceChain, path, propType, isDisabled }) => {
8218
8535
  getColor: isFinalValue && currentStyleProvider ? getStylesProviderThemeColor(currentStyleProvider.getKey()) : void 0,
8219
8536
  isOverridden: hasValue && !isFinalValue ? true : void 0
8220
8537
  };
8221
- return /* @__PURE__ */ React110.createElement(
8538
+ return /* @__PURE__ */ React111.createElement(
8222
8539
  StylesInheritanceInfotip,
8223
8540
  {
8224
8541
  inheritanceChain,
@@ -8227,17 +8544,17 @@ var Indicator = ({ inheritanceChain, path, propType, isDisabled }) => {
8227
8544
  label,
8228
8545
  isDisabled
8229
8546
  },
8230
- /* @__PURE__ */ React110.createElement(StyleIndicator, { ...styleIndicatorProps })
8547
+ /* @__PURE__ */ React111.createElement(StyleIndicator, { ...styleIndicatorProps })
8231
8548
  );
8232
8549
  };
8233
8550
  var getLabel = ({ isFinalValue, hasValue }) => {
8234
8551
  if (isFinalValue) {
8235
- return (0, import_i18n84.__)("This is the final value", "elementor");
8552
+ return (0, import_i18n86.__)("This is the final value", "elementor");
8236
8553
  }
8237
8554
  if (hasValue) {
8238
- return (0, import_i18n84.__)("This value is overridden by another style", "elementor");
8555
+ return (0, import_i18n86.__)("This value is overridden by another style", "elementor");
8239
8556
  }
8240
- return (0, import_i18n84.__)("This has value from another style", "elementor");
8557
+ return (0, import_i18n86.__)("This has value from another style", "elementor");
8241
8558
  };
8242
8559
 
8243
8560
  // src/styles-inheritance/init-styles-inheritance-transformers.ts
@@ -8258,7 +8575,7 @@ var excludePropTypeTransformers = /* @__PURE__ */ new Set([
8258
8575
  ]);
8259
8576
 
8260
8577
  // src/styles-inheritance/transformers/array-transformer.tsx
8261
- var React111 = __toESM(require("react"));
8578
+ var React112 = __toESM(require("react"));
8262
8579
  var import_editor_canvas6 = require("@elementor/editor-canvas");
8263
8580
  var arrayTransformer = (0, import_editor_canvas6.createTransformer)((values) => {
8264
8581
  if (!values || values.length === 0) {
@@ -8268,18 +8585,18 @@ var arrayTransformer = (0, import_editor_canvas6.createTransformer)((values) =>
8268
8585
  if (allStrings) {
8269
8586
  return values.join(" ");
8270
8587
  }
8271
- return /* @__PURE__ */ React111.createElement(React111.Fragment, null, values.map((item, index) => /* @__PURE__ */ React111.createElement(React111.Fragment, { key: index }, index > 0 && " ", item)));
8588
+ return /* @__PURE__ */ React112.createElement(React112.Fragment, null, values.map((item, index) => /* @__PURE__ */ React112.createElement(React112.Fragment, { key: index }, index > 0 && " ", item)));
8272
8589
  });
8273
8590
 
8274
8591
  // src/styles-inheritance/transformers/background-color-overlay-transformer.tsx
8275
- var React112 = __toESM(require("react"));
8592
+ var React113 = __toESM(require("react"));
8276
8593
  var import_editor_canvas7 = require("@elementor/editor-canvas");
8277
- var import_ui58 = require("@elementor/ui");
8278
- var backgroundColorOverlayTransformer = (0, import_editor_canvas7.createTransformer)((value) => /* @__PURE__ */ React112.createElement(import_ui58.Stack, { direction: "row", gap: 1, alignItems: "center" }, /* @__PURE__ */ React112.createElement(ItemLabelColor, { value })));
8594
+ var import_ui59 = require("@elementor/ui");
8595
+ var backgroundColorOverlayTransformer = (0, import_editor_canvas7.createTransformer)((value) => /* @__PURE__ */ React113.createElement(import_ui59.Stack, { direction: "row", gap: 1, alignItems: "center" }, /* @__PURE__ */ React113.createElement(ItemLabelColor, { value })));
8279
8596
  var ItemLabelColor = ({ value: { color } }) => {
8280
- return /* @__PURE__ */ React112.createElement("span", null, color);
8597
+ return /* @__PURE__ */ React113.createElement("span", null, color);
8281
8598
  };
8282
- var StyledUnstableColorIndicator = (0, import_ui58.styled)(import_ui58.UnstableColorIndicator)(({ theme }) => ({
8599
+ var StyledUnstableColorIndicator = (0, import_ui59.styled)(import_ui59.UnstableColorIndicator)(({ theme }) => ({
8283
8600
  width: "1em",
8284
8601
  height: "1em",
8285
8602
  borderRadius: `${theme.shape.borderRadius / 2}px`,
@@ -8288,20 +8605,20 @@ var StyledUnstableColorIndicator = (0, import_ui58.styled)(import_ui58.UnstableC
8288
8605
  }));
8289
8606
 
8290
8607
  // src/styles-inheritance/transformers/background-gradient-overlay-transformer.tsx
8291
- var React113 = __toESM(require("react"));
8608
+ var React114 = __toESM(require("react"));
8292
8609
  var import_editor_canvas8 = require("@elementor/editor-canvas");
8293
- var import_ui59 = require("@elementor/ui");
8294
- var import_i18n85 = require("@wordpress/i18n");
8295
- var backgroundGradientOverlayTransformer = (0, import_editor_canvas8.createTransformer)((value) => /* @__PURE__ */ React113.createElement(import_ui59.Stack, { direction: "row", gap: 1, alignItems: "center" }, /* @__PURE__ */ React113.createElement(ItemIconGradient, { value }), /* @__PURE__ */ React113.createElement(ItemLabelGradient, { value })));
8610
+ var import_ui60 = require("@elementor/ui");
8611
+ var import_i18n87 = require("@wordpress/i18n");
8612
+ var backgroundGradientOverlayTransformer = (0, import_editor_canvas8.createTransformer)((value) => /* @__PURE__ */ React114.createElement(import_ui60.Stack, { direction: "row", gap: 1, alignItems: "center" }, /* @__PURE__ */ React114.createElement(ItemIconGradient, { value }), /* @__PURE__ */ React114.createElement(ItemLabelGradient, { value })));
8296
8613
  var ItemIconGradient = ({ value }) => {
8297
8614
  const gradient = getGradientValue(value);
8298
- return /* @__PURE__ */ React113.createElement(StyledUnstableColorIndicator, { size: "inherit", component: "span", value: gradient });
8615
+ return /* @__PURE__ */ React114.createElement(StyledUnstableColorIndicator, { size: "inherit", component: "span", value: gradient });
8299
8616
  };
8300
8617
  var ItemLabelGradient = ({ value }) => {
8301
8618
  if (value.type === "linear") {
8302
- return /* @__PURE__ */ React113.createElement("span", null, (0, import_i18n85.__)("Linear gradient", "elementor"));
8619
+ return /* @__PURE__ */ React114.createElement("span", null, (0, import_i18n87.__)("Linear gradient", "elementor"));
8303
8620
  }
8304
- return /* @__PURE__ */ React113.createElement("span", null, (0, import_i18n85.__)("Radial gradient", "elementor"));
8621
+ return /* @__PURE__ */ React114.createElement("span", null, (0, import_i18n87.__)("Radial gradient", "elementor"));
8305
8622
  };
8306
8623
  var getGradientValue = (gradient) => {
8307
8624
  const stops = gradient.stops?.map(({ color, offset }) => `${color} ${offset ?? 0}%`)?.join(",");
@@ -8315,16 +8632,16 @@ var getGradientValue = (gradient) => {
8315
8632
  };
8316
8633
 
8317
8634
  // src/styles-inheritance/transformers/background-image-overlay-transformer.tsx
8318
- var React114 = __toESM(require("react"));
8635
+ var React115 = __toESM(require("react"));
8319
8636
  var import_editor_canvas9 = require("@elementor/editor-canvas");
8320
8637
  var import_editor_ui14 = require("@elementor/editor-ui");
8321
- var import_ui60 = require("@elementor/ui");
8638
+ var import_ui61 = require("@elementor/ui");
8322
8639
  var import_wp_media = require("@elementor/wp-media");
8323
- var backgroundImageOverlayTransformer = (0, import_editor_canvas9.createTransformer)((value) => /* @__PURE__ */ React114.createElement(import_ui60.Stack, { direction: "row", gap: 1, alignItems: "center" }, /* @__PURE__ */ React114.createElement(ItemIconImage, { value }), /* @__PURE__ */ React114.createElement(ItemLabelImage, { value })));
8640
+ var backgroundImageOverlayTransformer = (0, import_editor_canvas9.createTransformer)((value) => /* @__PURE__ */ React115.createElement(import_ui61.Stack, { direction: "row", gap: 1, alignItems: "center" }, /* @__PURE__ */ React115.createElement(ItemIconImage, { value }), /* @__PURE__ */ React115.createElement(ItemLabelImage, { value })));
8324
8641
  var ItemIconImage = ({ value }) => {
8325
8642
  const { imageUrl } = useImage(value);
8326
- return /* @__PURE__ */ React114.createElement(
8327
- import_ui60.CardMedia,
8643
+ return /* @__PURE__ */ React115.createElement(
8644
+ import_ui61.CardMedia,
8328
8645
  {
8329
8646
  image: imageUrl,
8330
8647
  sx: (theme) => ({
@@ -8339,7 +8656,7 @@ var ItemIconImage = ({ value }) => {
8339
8656
  };
8340
8657
  var ItemLabelImage = ({ value }) => {
8341
8658
  const { imageTitle } = useImage(value);
8342
- return /* @__PURE__ */ React114.createElement(import_editor_ui14.EllipsisWithTooltip, { title: imageTitle }, /* @__PURE__ */ React114.createElement("span", null, imageTitle));
8659
+ return /* @__PURE__ */ React115.createElement(import_editor_ui14.EllipsisWithTooltip, { title: imageTitle }, /* @__PURE__ */ React115.createElement("span", null, imageTitle));
8343
8660
  };
8344
8661
  var useImage = (image) => {
8345
8662
  let imageTitle, imageUrl = null;
@@ -8364,7 +8681,7 @@ var getFileExtensionFromFilename = (filename) => {
8364
8681
  };
8365
8682
 
8366
8683
  // src/styles-inheritance/transformers/box-shadow-transformer.tsx
8367
- var React115 = __toESM(require("react"));
8684
+ var React116 = __toESM(require("react"));
8368
8685
  var import_editor_canvas10 = require("@elementor/editor-canvas");
8369
8686
  var boxShadowTransformer = (0, import_editor_canvas10.createTransformer)((value) => {
8370
8687
  if (!value) {
@@ -8374,20 +8691,20 @@ var boxShadowTransformer = (0, import_editor_canvas10.createTransformer)((value)
8374
8691
  const colorValue = color || "#000000";
8375
8692
  const sizes = [hOffset || "0px", vOffset || "0px", blur || "10px", spread || "0px"].join(" ");
8376
8693
  const positionValue = position || "outset";
8377
- return /* @__PURE__ */ React115.createElement(React115.Fragment, null, colorValue, " ", positionValue, ", ", sizes);
8694
+ return /* @__PURE__ */ React116.createElement(React116.Fragment, null, colorValue, " ", positionValue, ", ", sizes);
8378
8695
  });
8379
8696
 
8380
8697
  // src/styles-inheritance/transformers/color-transformer.tsx
8381
- var React116 = __toESM(require("react"));
8698
+ var React117 = __toESM(require("react"));
8382
8699
  var import_editor_canvas11 = require("@elementor/editor-canvas");
8383
- var import_ui61 = require("@elementor/ui");
8700
+ var import_ui62 = require("@elementor/ui");
8384
8701
  function isValidCSSColor(value) {
8385
8702
  if (!value.trim()) {
8386
8703
  return false;
8387
8704
  }
8388
8705
  return CSS.supports("color", value.trim());
8389
8706
  }
8390
- var StyledColorIndicator = (0, import_ui61.styled)(import_ui61.UnstableColorIndicator)(({ theme }) => ({
8707
+ var StyledColorIndicator = (0, import_ui62.styled)(import_ui62.UnstableColorIndicator)(({ theme }) => ({
8391
8708
  width: "1em",
8392
8709
  height: "1em",
8393
8710
  borderRadius: `${theme.shape.borderRadius / 2}px`,
@@ -8398,7 +8715,7 @@ var colorTransformer = (0, import_editor_canvas11.createTransformer)((value) =>
8398
8715
  if (!isValidCSSColor(value)) {
8399
8716
  return value;
8400
8717
  }
8401
- return /* @__PURE__ */ React116.createElement(import_ui61.Stack, { direction: "row", gap: 1, alignItems: "center" }, /* @__PURE__ */ React116.createElement(StyledColorIndicator, { size: "inherit", component: "span", value }), /* @__PURE__ */ React116.createElement("span", null, value));
8718
+ return /* @__PURE__ */ React117.createElement(import_ui62.Stack, { direction: "row", gap: 1, alignItems: "center" }, /* @__PURE__ */ React117.createElement(StyledColorIndicator, { size: "inherit", component: "span", value }), /* @__PURE__ */ React117.createElement("span", null, value));
8402
8719
  });
8403
8720
 
8404
8721
  // src/styles-inheritance/transformers/repeater-to-items-transformer.tsx
@@ -8468,6 +8785,7 @@ var init3 = () => {
8468
8785
 
8469
8786
  // src/init.ts
8470
8787
  function init4() {
8788
+ (0, import_editor_controls72.init)();
8471
8789
  (0, import_editor_panels3.registerPanel)(panel);
8472
8790
  blockV1Panel();
8473
8791
  (0, import_editor.injectIntoLogic)({
@@ -8481,7 +8799,7 @@ function init4() {
8481
8799
  init();
8482
8800
  }
8483
8801
  var blockV1Panel = () => {
8484
- (0, import_editor_v1_adapters14.blockCommand)({
8802
+ (0, import_editor_v1_adapters15.blockCommand)({
8485
8803
  command: "panel/editor/open",
8486
8804
  condition: isAtomicWidgetSelected
8487
8805
  });
@@ -8493,6 +8811,7 @@ var blockV1Panel = () => {
8493
8811
  ControlLabel,
8494
8812
  ControlTypeContainer,
8495
8813
  CreatableAutocomplete,
8814
+ CustomCssHeaderSlot,
8496
8815
  CustomCssIndicator,
8497
8816
  DEFAULT_PSEUDO_STATES,
8498
8817
  EditingPanelTabs,
@@ -8528,9 +8847,12 @@ var blockV1Panel = () => {
8528
8847
  init,
8529
8848
  injectIntoClassSelectorActions,
8530
8849
  injectIntoCssClassConvert,
8850
+ injectIntoCustomCssHeader,
8531
8851
  injectIntoGridFields,
8532
8852
  injectIntoPanelHeaderTop,
8853
+ injectIntoStyleSectionHeader,
8533
8854
  injectIntoStyleTab,
8855
+ injectIntoStyleTabHeader,
8534
8856
  isDynamicPropValue,
8535
8857
  registerEditingPanelReplacement,
8536
8858
  registerElementPanelDefaults,