@elementor/editor-editing-panel 4.4.1 → 4.4.2

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