@elementor/editor-editing-panel 1.39.0 → 1.41.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (50) hide show
  1. package/CHANGELOG.md +44 -0
  2. package/dist/index.d.mts +9 -0
  3. package/dist/index.d.ts +9 -0
  4. package/dist/index.js +1182 -735
  5. package/dist/index.js.map +1 -1
  6. package/dist/index.mjs +1075 -617
  7. package/dist/index.mjs.map +1 -1
  8. package/package.json +7 -6
  9. package/src/action.tsx +26 -0
  10. package/src/components/add-or-remove-content.tsx +11 -3
  11. package/src/components/creatable-autocomplete/creatable-autocomplete.tsx +6 -2
  12. package/src/components/css-classes/css-class-item.tsx +3 -2
  13. package/src/components/css-classes/css-class-menu.tsx +15 -5
  14. package/src/components/css-classes/css-class-selector.tsx +2 -1
  15. package/src/components/css-classes/use-apply-and-unapply-class.ts +8 -4
  16. package/src/components/section-content.tsx +16 -6
  17. package/src/components/style-sections/background-section/background-section.tsx +6 -3
  18. package/src/components/style-sections/border-section/border-field.tsx +3 -0
  19. package/src/components/style-sections/layout-section/display-field.tsx +2 -1
  20. package/src/components/style-sections/layout-section/flex-order-field.tsx +5 -2
  21. package/src/components/style-sections/layout-section/flex-size-field.tsx +16 -12
  22. package/src/components/style-sections/size-section/object-fit-field.tsx +1 -1
  23. package/src/components/style-sections/size-section/object-position-field.tsx +1 -1
  24. package/src/components/style-sections/size-section/size-section.tsx +12 -11
  25. package/src/components/style-sections/typography-section/text-stroke-field.tsx +3 -0
  26. package/src/components/style-tab.tsx +1 -1
  27. package/src/contexts/style-context.tsx +11 -2
  28. package/src/contexts/styles-inheritance-context.tsx +9 -7
  29. package/src/controls-actions.ts +2 -0
  30. package/src/controls-registry/styles-field.tsx +3 -0
  31. package/src/init.ts +11 -1
  32. package/src/reset-style-props.tsx +31 -0
  33. package/src/styles-inheritance/components/action-icons.tsx +8 -0
  34. package/src/styles-inheritance/components/breakpoint-icon.tsx +47 -0
  35. package/src/styles-inheritance/components/index.ts +4 -0
  36. package/src/styles-inheritance/components/label-chip.tsx +43 -0
  37. package/src/styles-inheritance/components/value-component.tsx +25 -0
  38. package/src/styles-inheritance/consts.ts +17 -0
  39. package/src/styles-inheritance/create-styles-inheritance.ts +50 -12
  40. package/src/{hooks → styles-inheritance/hooks}/use-normalized-inheritance-chain-items.tsx +41 -11
  41. package/src/styles-inheritance/init-styles-inheritance-transformers.ts +38 -0
  42. package/src/styles-inheritance/init.ts +8 -0
  43. package/src/styles-inheritance/styles-inheritance-indicator.tsx +35 -32
  44. package/src/styles-inheritance/styles-inheritance-infotip.tsx +113 -19
  45. package/src/styles-inheritance/styles-inheritance-transformers-registry.tsx +3 -0
  46. package/src/styles-inheritance/transformers/background-color-overlay-transformer.tsx +27 -0
  47. package/src/styles-inheritance/transformers/background-gradient-overlay-transformer.tsx +50 -0
  48. package/src/styles-inheritance/transformers/background-image-overlay-transformer.tsx +79 -0
  49. package/src/styles-inheritance/transformers/background-overlay-transformer.tsx +20 -0
  50. package/src/styles-inheritance/types.ts +6 -2
package/dist/index.js CHANGED
@@ -31,15 +31,15 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
31
31
  var index_exports = {};
32
32
  __export(index_exports, {
33
33
  controlActionsMenu: () => controlActionsMenu,
34
- init: () => init2,
34
+ init: () => init3,
35
35
  injectIntoClassSelectorActions: () => injectIntoClassSelectorActions,
36
36
  registerControlReplacement: () => registerControlReplacement,
37
- useBoundProp: () => import_editor_controls55.useBoundProp,
37
+ useBoundProp: () => import_editor_controls56.useBoundProp,
38
38
  usePanelActions: () => usePanelActions,
39
39
  usePanelStatus: () => usePanelStatus
40
40
  });
41
41
  module.exports = __toCommonJS(index_exports);
42
- var import_editor_controls55 = require("@elementor/editor-controls");
42
+ var import_editor_controls56 = require("@elementor/editor-controls");
43
43
 
44
44
  // src/control-replacement.tsx
45
45
  var import_editor_controls = require("@elementor/editor-controls");
@@ -115,10 +115,12 @@ var StyleNotFoundUnderProviderError = (0, import_utils.createError)({
115
115
  var Context3 = (0, import_react3.createContext)(null);
116
116
  function StyleProvider({ children, ...props }) {
117
117
  const provider = props.id === null ? null : getProviderByStyleId(props.id);
118
+ const { userCan } = (0, import_editor_styles_repository.useUserStylesCapability)();
118
119
  if (props.id && !provider) {
119
120
  throw new StylesProviderNotFoundError({ context: { styleId: props.id } });
120
121
  }
121
- return /* @__PURE__ */ React3.createElement(Context3.Provider, { value: { ...props, provider } }, children);
122
+ const canEdit = userCan(provider?.getKey() ?? "").updateProps;
123
+ return /* @__PURE__ */ React3.createElement(Context3.Provider, { value: { ...props, provider, canEdit } }, children);
122
124
  }
123
125
  function useStyle() {
124
126
  const context = (0, import_react3.useContext)(Context3);
@@ -133,6 +135,9 @@ function getProviderByStyleId(styleId) {
133
135
  });
134
136
  return styleProvider ?? null;
135
137
  }
138
+ function useIsStyle() {
139
+ return !!(0, import_react3.useContext)(Context3);
140
+ }
136
141
 
137
142
  // src/components/creatable-autocomplete/creatable-autocomplete.tsx
138
143
  var React4 = __toESM(require("react"));
@@ -310,6 +315,7 @@ function useFilterOptions(parameters) {
310
315
  }
311
316
 
312
317
  // src/components/creatable-autocomplete/creatable-autocomplete.tsx
318
+ var MIN_INPUT_LENGTH = 2;
313
319
  var CreatableAutocomplete = React4.forwardRef(CreatableAutocompleteInner);
314
320
  function CreatableAutocompleteInner({
315
321
  selected,
@@ -338,6 +344,7 @@ function CreatableAutocompleteInner({
338
344
  });
339
345
  const filterOptions = useFilterOptions({ options: options12, selected, onCreate, entityName });
340
346
  const isCreatable = Boolean(onCreate);
347
+ const freeSolo = isCreatable || inputValue.length < MIN_INPUT_LENGTH || void 0;
341
348
  return /* @__PURE__ */ React4.createElement(
342
349
  import_ui2.Autocomplete,
343
350
  {
@@ -354,8 +361,8 @@ function CreatableAutocompleteInner({
354
361
  },
355
362
  ...props,
356
363
  ref,
357
- freeSolo: isCreatable || void 0,
358
- forcePopupIcon: isCreatable ? false : void 0,
364
+ freeSolo,
365
+ forcePopupIcon: false,
359
366
  multiple: true,
360
367
  clearOnBlur: true,
361
368
  selectOnFocus: true,
@@ -530,7 +537,6 @@ function useApplyClass() {
530
537
  do: ({ classId }) => {
531
538
  const prevActiveId = activeId;
532
539
  applyClass(classId);
533
- (0, import_editor_documents.setDocumentModifiedStatus)(true);
534
540
  return prevActiveId;
535
541
  },
536
542
  undo: ({ classId }, prevActiveId) => {
@@ -566,7 +572,6 @@ function useUnapplyClass() {
566
572
  do: ({ classId }) => {
567
573
  const prevActiveId = activeId;
568
574
  unapplyClass(classId);
569
- (0, import_editor_documents.setDocumentModifiedStatus)(true);
570
575
  return prevActiveId;
571
576
  },
572
577
  undo: ({ classId }, prevActiveId) => {
@@ -633,20 +638,24 @@ function useUnapply() {
633
638
  function useSetClasses() {
634
639
  const { element } = useElement();
635
640
  const currentClassesProp = useClassesProp();
641
+ const isVersion330Active = (0, import_editor_v1_adapters.isExperimentActive)("e_v_3_30");
636
642
  return (0, import_react8.useMemo)(() => {
637
643
  const setClasses = (ids) => {
638
644
  (0, import_editor_elements.updateElementSettings)({
639
645
  id: element.id,
640
646
  props: { [currentClassesProp]: import_editor_props.classesPropTypeUtil.create(ids) },
641
- withHistory: false
647
+ withHistory: isVersion330Active ? false : true
642
648
  });
649
+ if (isVersion330Active) {
650
+ (0, import_editor_documents.setDocumentModifiedStatus)(true);
651
+ }
643
652
  };
644
653
  const getAppliedClasses = () => (0, import_editor_elements.getElementSetting)(element.id, currentClassesProp)?.value || [];
645
654
  return {
646
655
  setClasses,
647
656
  getAppliedClasses
648
657
  };
649
- }, [currentClassesProp, element.id]);
658
+ }, [currentClassesProp, element.id, isVersion330Active]);
650
659
  }
651
660
 
652
661
  // src/components/css-classes/css-class-menu.tsx
@@ -656,7 +665,7 @@ var STATES = [
656
665
  { key: "focus", value: "focus" },
657
666
  { key: "active", value: "active" }
658
667
  ];
659
- function CssClassMenu({ popupState, anchorEl }) {
668
+ function CssClassMenu({ popupState, anchorEl, fixed }) {
660
669
  const { provider } = useCssClass();
661
670
  const handleKeyDown = (e) => {
662
671
  e.stopPropagation();
@@ -678,7 +687,7 @@ function CssClassMenu({ popupState, anchorEl }) {
678
687
  onKeyDown: handleKeyDown,
679
688
  disableAutoFocusItem: true
680
689
  },
681
- getMenuItemsByProvider({ provider, closeMenu: popupState.close }),
690
+ getMenuItemsByProvider({ provider, closeMenu: popupState.close, fixed }),
682
691
  /* @__PURE__ */ React6.createElement(import_ui4.MenuSubheader, { sx: { typography: "caption", color: "text.secondary", pb: 0.5, pt: 1 } }, (0, import_i18n2.__)("States", "elementor")),
683
692
  STATES.map((state) => {
684
693
  return /* @__PURE__ */ React6.createElement(StateMenuItem, { key: state.key, state: state.value, closeMenu: popupState.close });
@@ -692,16 +701,21 @@ function useModifiedStates(styleId) {
692
701
  styleDef?.variants.filter((variant) => meta.breakpoint === variant.meta.breakpoint).map((variant) => [variant.meta.state ?? "normal", true]) ?? []
693
702
  );
694
703
  }
695
- function getMenuItemsByProvider({ provider, closeMenu }) {
704
+ function getMenuItemsByProvider({
705
+ provider,
706
+ closeMenu,
707
+ fixed
708
+ }) {
696
709
  if (!provider) {
697
710
  return [];
698
711
  }
699
712
  const providerInstance = import_editor_styles_repository2.stylesRepository.getProviderByKey(provider);
700
713
  const providerActions = providerInstance?.actions;
701
- const [canUpdate, canDelete] = [providerActions?.update, providerActions?.delete];
714
+ const canUpdate = providerActions?.update;
715
+ const canUnapply = !fixed;
702
716
  const actions = [
703
717
  canUpdate && /* @__PURE__ */ React6.createElement(RenameClassMenuItem, { key: "rename-class", closeMenu }),
704
- canDelete && /* @__PURE__ */ React6.createElement(UnapplyClassMenuItem, { key: "unapply-class", closeMenu })
718
+ canUnapply && /* @__PURE__ */ React6.createElement(UnapplyClassMenuItem, { key: "unapply-class", closeMenu })
705
719
  ].filter(Boolean);
706
720
  if (actions.length) {
707
721
  actions.unshift(
@@ -803,7 +817,7 @@ function RenameClassMenuItem({ closeMenu }) {
803
817
  // src/components/css-classes/css-class-item.tsx
804
818
  var CHIP_SIZE = "tiny";
805
819
  function CssClassItem(props) {
806
- const { chipProps, icon, color: colorProp, ...classProps } = props;
820
+ const { chipProps, icon, color: colorProp, fixed, ...classProps } = props;
807
821
  const { id, provider, label, isActive, onClickActive, renameLabel, setError } = classProps;
808
822
  const { meta, setMetaState } = useStyle();
809
823
  const popupState = (0, import_ui5.usePopupState)({ variant: "popover" });
@@ -886,7 +900,7 @@ function CssClassItem(props) {
886
900
  })
887
901
  }
888
902
  )
889
- ), /* @__PURE__ */ React7.createElement(CssClassProvider, { ...classProps, handleRename: openEditMode }, /* @__PURE__ */ React7.createElement(CssClassMenu, { popupState, anchorEl: chipRef })));
903
+ ), /* @__PURE__ */ React7.createElement(CssClassProvider, { ...classProps, handleRename: openEditMode }, /* @__PURE__ */ React7.createElement(CssClassMenu, { popupState, anchorEl: chipRef, fixed })));
890
904
  }
891
905
  var validateLabel = (newLabel) => {
892
906
  const result = (0, import_editor_styles_repository3.validateStyleLabel)(newLabel, "rename");
@@ -957,6 +971,7 @@ function CssClassSelector() {
957
971
  CssClassItem,
958
972
  {
959
973
  key: chipProps.key,
974
+ fixed: value.fixed,
960
975
  label: value.label,
961
976
  provider: value.provider,
962
977
  id: value.value,
@@ -985,7 +1000,7 @@ var EmptyState = ({ searchValue, onClear }) => /* @__PURE__ */ React8.createElem
985
1000
  },
986
1001
  /* @__PURE__ */ React8.createElement(import_icons2.ColorSwatchIcon, { sx: { transform: "rotate(90deg)" }, fontSize: "large" }),
987
1002
  /* @__PURE__ */ React8.createElement(import_ui6.Typography, { align: "center", variant: "subtitle2" }, (0, import_i18n4.__)("Sorry, nothing matched", "elementor"), /* @__PURE__ */ React8.createElement("br", null), "\u201C", searchValue, "\u201D."),
988
- /* @__PURE__ */ React8.createElement(import_ui6.Typography, { align: "center", variant: "caption", sx: { mb: 2 } }, (0, import_i18n4.__)("With your role as an editor,", "elementor"), /* @__PURE__ */ React8.createElement("br", null), (0, import_i18n4.__)("you can only use existing classes.", "elementor")),
1003
+ /* @__PURE__ */ React8.createElement(import_ui6.Typography, { align: "center", variant: "caption", sx: { mb: 2 } }, (0, import_i18n4.__)("With your current role,", "elementor"), /* @__PURE__ */ React8.createElement("br", null), (0, import_i18n4.__)("you can only use existing classes.", "elementor")),
989
1004
  /* @__PURE__ */ React8.createElement(import_ui6.Link, { color: "text.secondary", variant: "caption", component: "button", onClick: onClear }, (0, import_i18n4.__)("Clear & try again", "elementor"))
990
1005
  ));
991
1006
  var updateClassByProvider = (provider, data) => {
@@ -1103,25 +1118,36 @@ function useHandleSelect() {
1103
1118
  var import_editor_panels2 = require("@elementor/editor-panels");
1104
1119
 
1105
1120
  // src/components/editing-panel.tsx
1106
- var React75 = __toESM(require("react"));
1121
+ var React80 = __toESM(require("react"));
1107
1122
  var import_editor_controls49 = require("@elementor/editor-controls");
1108
1123
  var import_editor_elements8 = require("@elementor/editor-elements");
1109
1124
  var import_editor_panels = require("@elementor/editor-panels");
1110
1125
  var import_editor_ui4 = require("@elementor/editor-ui");
1111
- var import_icons23 = require("@elementor/icons");
1126
+ var import_icons25 = require("@elementor/icons");
1112
1127
  var import_session5 = require("@elementor/session");
1113
- var import_ui62 = require("@elementor/ui");
1114
- var import_i18n51 = require("@wordpress/i18n");
1128
+ var import_ui67 = require("@elementor/ui");
1129
+ var import_i18n54 = require("@wordpress/i18n");
1115
1130
 
1116
1131
  // src/controls-actions.ts
1117
1132
  var import_menus = require("@elementor/menus");
1118
1133
 
1119
- // src/popover-action.tsx
1134
+ // src/action.tsx
1120
1135
  var React9 = __toESM(require("react"));
1121
- var import_react11 = require("react");
1122
- var import_icons3 = require("@elementor/icons");
1123
1136
  var import_ui7 = require("@elementor/ui");
1124
1137
  var SIZE = "tiny";
1138
+ function Action({ title, visible = true, icon: Icon, onClick }) {
1139
+ if (!visible) {
1140
+ return null;
1141
+ }
1142
+ return /* @__PURE__ */ React9.createElement(import_ui7.Tooltip, { placement: "bottom", title, arrow: true }, /* @__PURE__ */ React9.createElement(import_ui7.IconButton, { "aria-label": title, size: SIZE, onClick }, /* @__PURE__ */ React9.createElement(Icon, { fontSize: SIZE })));
1143
+ }
1144
+
1145
+ // src/popover-action.tsx
1146
+ var React10 = __toESM(require("react"));
1147
+ var import_react11 = require("react");
1148
+ var import_icons3 = require("@elementor/icons");
1149
+ var import_ui8 = require("@elementor/ui");
1150
+ var SIZE2 = "tiny";
1125
1151
  function PopoverAction({
1126
1152
  title,
1127
1153
  visible = true,
@@ -1129,15 +1155,15 @@ function PopoverAction({
1129
1155
  popoverContent: PopoverContent2
1130
1156
  }) {
1131
1157
  const id = (0, import_react11.useId)();
1132
- const popupState = (0, import_ui7.usePopupState)({
1158
+ const popupState = (0, import_ui8.usePopupState)({
1133
1159
  variant: "popover",
1134
1160
  popupId: `elementor-popover-action-${id}`
1135
1161
  });
1136
1162
  if (!visible) {
1137
1163
  return null;
1138
1164
  }
1139
- return /* @__PURE__ */ React9.createElement(React9.Fragment, null, /* @__PURE__ */ React9.createElement(import_ui7.Tooltip, { placement: "top", title }, /* @__PURE__ */ React9.createElement(import_ui7.IconButton, { "aria-label": title, key: id, size: SIZE, ...(0, import_ui7.bindToggle)(popupState) }, /* @__PURE__ */ React9.createElement(Icon, { fontSize: SIZE }))), /* @__PURE__ */ React9.createElement(
1140
- import_ui7.Popover,
1165
+ return /* @__PURE__ */ React10.createElement(React10.Fragment, null, /* @__PURE__ */ React10.createElement(import_ui8.Tooltip, { placement: "top", title }, /* @__PURE__ */ React10.createElement(import_ui8.IconButton, { "aria-label": title, key: id, size: SIZE2, ...(0, import_ui8.bindToggle)(popupState) }, /* @__PURE__ */ React10.createElement(Icon, { fontSize: SIZE2 }))), /* @__PURE__ */ React10.createElement(
1166
+ import_ui8.Popover,
1141
1167
  {
1142
1168
  disablePortal: true,
1143
1169
  disableScrollLock: true,
@@ -1145,40 +1171,41 @@ function PopoverAction({
1145
1171
  vertical: "bottom",
1146
1172
  horizontal: "center"
1147
1173
  },
1148
- ...(0, import_ui7.bindPopover)(popupState)
1174
+ ...(0, import_ui8.bindPopover)(popupState)
1149
1175
  },
1150
- /* @__PURE__ */ React9.createElement(import_ui7.Stack, { direction: "row", alignItems: "center", pl: 1.5, pr: 0.5, py: 1.5 }, /* @__PURE__ */ React9.createElement(Icon, { fontSize: SIZE, sx: { mr: 0.5 } }), /* @__PURE__ */ React9.createElement(import_ui7.Typography, { variant: "subtitle2" }, title), /* @__PURE__ */ React9.createElement(import_ui7.IconButton, { sx: { ml: "auto" }, size: SIZE, onClick: popupState.close }, /* @__PURE__ */ React9.createElement(import_icons3.XIcon, { fontSize: SIZE }))),
1151
- /* @__PURE__ */ React9.createElement(PopoverContent2, { closePopover: popupState.close })
1176
+ /* @__PURE__ */ React10.createElement(import_ui8.Stack, { direction: "row", alignItems: "center", pl: 1.5, pr: 0.5, py: 1.5 }, /* @__PURE__ */ React10.createElement(Icon, { fontSize: SIZE2, sx: { mr: 0.5 } }), /* @__PURE__ */ React10.createElement(import_ui8.Typography, { variant: "subtitle2" }, title), /* @__PURE__ */ React10.createElement(import_ui8.IconButton, { sx: { ml: "auto" }, size: SIZE2, onClick: popupState.close }, /* @__PURE__ */ React10.createElement(import_icons3.XIcon, { fontSize: SIZE2 }))),
1177
+ /* @__PURE__ */ React10.createElement(PopoverContent2, { closePopover: popupState.close })
1152
1178
  ));
1153
1179
  }
1154
1180
 
1155
1181
  // src/controls-actions.ts
1156
1182
  var controlActionsMenu = (0, import_menus.createMenu)({
1157
1183
  components: {
1184
+ Action,
1158
1185
  PopoverAction
1159
1186
  }
1160
1187
  });
1161
1188
 
1162
1189
  // src/components/editing-panel-error-fallback.tsx
1163
- var React10 = __toESM(require("react"));
1164
- var import_ui8 = require("@elementor/ui");
1190
+ var React11 = __toESM(require("react"));
1191
+ var import_ui9 = require("@elementor/ui");
1165
1192
  function EditorPanelErrorFallback() {
1166
- return /* @__PURE__ */ React10.createElement(import_ui8.Box, { role: "alert", sx: { minHeight: "100%", p: 2 } }, /* @__PURE__ */ React10.createElement(import_ui8.Alert, { severity: "error", sx: { mb: 2, maxWidth: 400, textAlign: "center" } }, /* @__PURE__ */ React10.createElement("strong", null, "Something went wrong")));
1193
+ return /* @__PURE__ */ React11.createElement(import_ui9.Box, { role: "alert", sx: { minHeight: "100%", p: 2 } }, /* @__PURE__ */ React11.createElement(import_ui9.Alert, { severity: "error", sx: { mb: 2, maxWidth: 400, textAlign: "center" } }, /* @__PURE__ */ React11.createElement("strong", null, "Something went wrong")));
1167
1194
  }
1168
1195
 
1169
1196
  // src/components/editing-panel-tabs.tsx
1170
- var React74 = __toESM(require("react"));
1197
+ var React79 = __toESM(require("react"));
1171
1198
  var import_react28 = require("react");
1172
- var import_editor_v1_adapters12 = require("@elementor/editor-v1-adapters");
1173
- var import_ui61 = require("@elementor/ui");
1174
- var import_i18n50 = require("@wordpress/i18n");
1199
+ var import_editor_v1_adapters13 = require("@elementor/editor-v1-adapters");
1200
+ var import_ui66 = require("@elementor/ui");
1201
+ var import_i18n53 = require("@wordpress/i18n");
1175
1202
 
1176
1203
  // src/contexts/scroll-context.tsx
1177
- var React11 = __toESM(require("react"));
1204
+ var React12 = __toESM(require("react"));
1178
1205
  var import_react12 = require("react");
1179
- var import_ui9 = require("@elementor/ui");
1206
+ var import_ui10 = require("@elementor/ui");
1180
1207
  var ScrollContext = (0, import_react12.createContext)(void 0);
1181
- var ScrollPanel = (0, import_ui9.styled)("div")`
1208
+ var ScrollPanel = (0, import_ui10.styled)("div")`
1182
1209
  height: 100%;
1183
1210
  overflow-y: auto;
1184
1211
  `;
@@ -1206,7 +1233,7 @@ function ScrollProvider({ children }) {
1206
1233
  scrollElement.removeEventListener("scroll", handleScroll);
1207
1234
  };
1208
1235
  });
1209
- return /* @__PURE__ */ React11.createElement(ScrollContext.Provider, { value: { direction } }, /* @__PURE__ */ React11.createElement(ScrollPanel, { ref }, children));
1236
+ return /* @__PURE__ */ React12.createElement(ScrollContext.Provider, { value: { direction } }, /* @__PURE__ */ React12.createElement(ScrollPanel, { ref }, children));
1210
1237
  }
1211
1238
  function useScrollDirection() {
1212
1239
  return (0, import_react12.useContext)(ScrollContext)?.direction ?? DEFAULT_SCROLL_DIRECTION;
@@ -1262,14 +1289,14 @@ var useStateByElement = (key, initialValue) => {
1262
1289
  };
1263
1290
 
1264
1291
  // src/components/settings-tab.tsx
1265
- var React17 = __toESM(require("react"));
1292
+ var React18 = __toESM(require("react"));
1266
1293
  var import_editor_controls4 = require("@elementor/editor-controls");
1267
1294
  var import_editor_v1_adapters3 = require("@elementor/editor-v1-adapters");
1268
1295
  var import_session2 = require("@elementor/session");
1269
- var import_ui14 = require("@elementor/ui");
1296
+ var import_ui15 = require("@elementor/ui");
1270
1297
 
1271
1298
  // src/controls-registry/control.tsx
1272
- var React12 = __toESM(require("react"));
1299
+ var React13 = __toESM(require("react"));
1273
1300
 
1274
1301
  // src/controls-registry/controls-registry.tsx
1275
1302
  var import_editor_controls2 = require("@elementor/editor-controls");
@@ -1296,16 +1323,16 @@ var Control = ({ props, type }) => {
1296
1323
  context: { controlType: type }
1297
1324
  });
1298
1325
  }
1299
- return /* @__PURE__ */ React12.createElement(ControlByType, { ...props, context: { elementId: element.id } });
1326
+ return /* @__PURE__ */ React13.createElement(ControlByType, { ...props, context: { elementId: element.id } });
1300
1327
  };
1301
1328
 
1302
1329
  // src/controls-registry/control-type-container.tsx
1303
- var React13 = __toESM(require("react"));
1304
- var import_ui10 = require("@elementor/ui");
1330
+ var React14 = __toESM(require("react"));
1331
+ var import_ui11 = require("@elementor/ui");
1305
1332
  var ControlTypeContainer = ({ children, layout }) => {
1306
- return /* @__PURE__ */ React13.createElement(StyledContainer, { layout }, children);
1333
+ return /* @__PURE__ */ React14.createElement(StyledContainer, { layout }, children);
1307
1334
  };
1308
- var StyledContainer = (0, import_ui10.styled)(import_ui10.Box, {
1335
+ var StyledContainer = (0, import_ui11.styled)(import_ui11.Box, {
1309
1336
  shouldForwardProp: (prop) => !["layout"].includes(prop)
1310
1337
  })(({ layout, theme }) => ({
1311
1338
  display: "grid",
@@ -1321,7 +1348,7 @@ var getGridLayout = (layout) => ({
1321
1348
  });
1322
1349
 
1323
1350
  // src/controls-registry/settings-field.tsx
1324
- var React14 = __toESM(require("react"));
1351
+ var React15 = __toESM(require("react"));
1325
1352
  var import_editor_controls3 = require("@elementor/editor-controls");
1326
1353
  var import_editor_elements3 = require("@elementor/editor-elements");
1327
1354
 
@@ -1350,18 +1377,18 @@ var SettingsField = ({ bind, children }) => {
1350
1377
  props: { ...newValue }
1351
1378
  });
1352
1379
  };
1353
- return /* @__PURE__ */ React14.createElement(import_editor_controls3.PropProvider, { propType, value, setValue }, /* @__PURE__ */ React14.createElement(import_editor_controls3.PropKeyProvider, { bind }, children));
1380
+ return /* @__PURE__ */ React15.createElement(import_editor_controls3.PropProvider, { propType, value, setValue }, /* @__PURE__ */ React15.createElement(import_editor_controls3.PropKeyProvider, { bind }, children));
1354
1381
  };
1355
1382
 
1356
1383
  // src/components/section.tsx
1357
- var React15 = __toESM(require("react"));
1384
+ var React16 = __toESM(require("react"));
1358
1385
  var import_react15 = require("react");
1359
- var import_ui12 = require("@elementor/ui");
1386
+ var import_ui13 = require("@elementor/ui");
1360
1387
 
1361
1388
  // src/components/collapse-icon.tsx
1362
1389
  var import_icons4 = require("@elementor/icons");
1363
- var import_ui11 = require("@elementor/ui");
1364
- var CollapseIcon = (0, import_ui11.styled)(import_icons4.ChevronDownIcon, {
1390
+ var import_ui12 = require("@elementor/ui");
1391
+ var CollapseIcon = (0, import_ui12.styled)(import_icons4.ChevronDownIcon, {
1365
1392
  shouldForwardProp: (prop) => prop !== "open"
1366
1393
  })(({ theme, open }) => ({
1367
1394
  transform: open ? "rotate(180deg)" : "rotate(0deg)",
@@ -1376,30 +1403,30 @@ function Section({ title, children, defaultExpanded = false }) {
1376
1403
  const id = (0, import_react15.useId)();
1377
1404
  const labelId = `label-${id}`;
1378
1405
  const contentId = `content-${id}`;
1379
- return /* @__PURE__ */ React15.createElement(React15.Fragment, null, /* @__PURE__ */ React15.createElement(
1380
- import_ui12.ListItemButton,
1406
+ return /* @__PURE__ */ React16.createElement(React16.Fragment, null, /* @__PURE__ */ React16.createElement(
1407
+ import_ui13.ListItemButton,
1381
1408
  {
1382
1409
  id: labelId,
1383
1410
  "aria-controls": contentId,
1384
1411
  onClick: () => setIsOpen(!isOpen),
1385
1412
  sx: { "&:hover": { backgroundColor: "transparent" } }
1386
1413
  },
1387
- /* @__PURE__ */ React15.createElement(
1388
- import_ui12.ListItemText,
1414
+ /* @__PURE__ */ React16.createElement(
1415
+ import_ui13.ListItemText,
1389
1416
  {
1390
1417
  secondary: title,
1391
1418
  secondaryTypographyProps: { color: "text.primary", variant: "caption", fontWeight: "bold" }
1392
1419
  }
1393
1420
  ),
1394
- /* @__PURE__ */ React15.createElement(CollapseIcon, { open: isOpen, color: "secondary", fontSize: "tiny" })
1395
- ), /* @__PURE__ */ React15.createElement(import_ui12.Collapse, { id: contentId, "aria-labelledby": labelId, in: isOpen, timeout: "auto", unmountOnExit: true }, /* @__PURE__ */ React15.createElement(import_ui12.Stack, { gap: 2.5, p: 2 }, children)), /* @__PURE__ */ React15.createElement(import_ui12.Divider, null));
1421
+ /* @__PURE__ */ React16.createElement(CollapseIcon, { open: isOpen, color: "secondary", fontSize: "tiny" })
1422
+ ), /* @__PURE__ */ React16.createElement(import_ui13.Collapse, { id: contentId, "aria-labelledby": labelId, in: isOpen, timeout: "auto", unmountOnExit: true }, /* @__PURE__ */ React16.createElement(import_ui13.Stack, { gap: 2.5, p: 2 }, children)), /* @__PURE__ */ React16.createElement(import_ui13.Divider, null));
1396
1423
  }
1397
1424
 
1398
1425
  // src/components/sections-list.tsx
1399
- var React16 = __toESM(require("react"));
1400
- var import_ui13 = require("@elementor/ui");
1426
+ var React17 = __toESM(require("react"));
1427
+ var import_ui14 = require("@elementor/ui");
1401
1428
  function SectionsList(props) {
1402
- return /* @__PURE__ */ React16.createElement(import_ui13.List, { disablePadding: true, component: "div", ...props });
1429
+ return /* @__PURE__ */ React17.createElement(import_ui14.List, { disablePadding: true, component: "div", ...props });
1403
1430
  }
1404
1431
 
1405
1432
  // src/components/settings-tab.tsx
@@ -1407,12 +1434,12 @@ var SettingsTab = () => {
1407
1434
  const { elementType, element } = useElement();
1408
1435
  const settingsDefault = useDefaultPanelSettings();
1409
1436
  const isDefaultExpanded = (sectionId) => (0, import_editor_v1_adapters3.isExperimentActive)(EXPERIMENTAL_FEATURES.V_3_30) ? settingsDefault.defaultSectionsExpanded.settings?.includes(sectionId) : true;
1410
- return /* @__PURE__ */ React17.createElement(import_session2.SessionStorageProvider, { prefix: element.id }, /* @__PURE__ */ React17.createElement(SectionsList, null, elementType.controls.map(({ type, value }, index) => {
1437
+ return /* @__PURE__ */ React18.createElement(import_session2.SessionStorageProvider, { prefix: element.id }, /* @__PURE__ */ React18.createElement(SectionsList, null, elementType.controls.map(({ type, value }, index) => {
1411
1438
  if (type === "control") {
1412
- return /* @__PURE__ */ React17.createElement(Control2, { key: value.bind, control: value });
1439
+ return /* @__PURE__ */ React18.createElement(Control2, { key: value.bind, control: value });
1413
1440
  }
1414
1441
  if (type === "section") {
1415
- return /* @__PURE__ */ React17.createElement(
1442
+ return /* @__PURE__ */ React18.createElement(
1416
1443
  Section,
1417
1444
  {
1418
1445
  title: value.label,
@@ -1421,7 +1448,7 @@ var SettingsTab = () => {
1421
1448
  },
1422
1449
  value.items?.map((item) => {
1423
1450
  if (item.type === "control") {
1424
- return /* @__PURE__ */ React17.createElement(Control2, { key: item.value.bind, control: item.value });
1451
+ return /* @__PURE__ */ React18.createElement(Control2, { key: item.value.bind, control: item.value });
1425
1452
  }
1426
1453
  return null;
1427
1454
  })
@@ -1435,25 +1462,26 @@ var Control2 = ({ control }) => {
1435
1462
  return null;
1436
1463
  }
1437
1464
  const layout = control.meta?.layout || getDefaultLayout(control.type);
1438
- return /* @__PURE__ */ React17.createElement(SettingsField, { bind: control.bind }, control.meta?.topDivider && /* @__PURE__ */ React17.createElement(import_ui14.Divider, null), /* @__PURE__ */ React17.createElement(ControlTypeContainer, { layout }, control.label ? /* @__PURE__ */ React17.createElement(import_editor_controls4.ControlFormLabel, null, control.label) : null, /* @__PURE__ */ React17.createElement(Control, { type: control.type, props: control.props })));
1465
+ return /* @__PURE__ */ React18.createElement(SettingsField, { bind: control.bind }, control.meta?.topDivider && /* @__PURE__ */ React18.createElement(import_ui15.Divider, null), /* @__PURE__ */ React18.createElement(ControlTypeContainer, { layout }, control.label ? /* @__PURE__ */ React18.createElement(import_editor_controls4.ControlFormLabel, null, control.label) : null, /* @__PURE__ */ React18.createElement(Control, { type: control.type, props: control.props })));
1439
1466
  };
1440
1467
 
1441
1468
  // src/components/style-tab.tsx
1442
- var React73 = __toESM(require("react"));
1469
+ var React78 = __toESM(require("react"));
1443
1470
  var import_react27 = require("react");
1444
1471
  var import_editor_props10 = require("@elementor/editor-props");
1445
- var import_editor_responsive2 = require("@elementor/editor-responsive");
1446
- var import_editor_v1_adapters11 = require("@elementor/editor-v1-adapters");
1472
+ var import_editor_responsive3 = require("@elementor/editor-responsive");
1473
+ var import_editor_v1_adapters12 = require("@elementor/editor-v1-adapters");
1447
1474
  var import_session4 = require("@elementor/session");
1448
- var import_ui60 = require("@elementor/ui");
1449
- var import_i18n49 = require("@wordpress/i18n");
1475
+ var import_ui65 = require("@elementor/ui");
1476
+ var import_i18n52 = require("@wordpress/i18n");
1450
1477
 
1451
1478
  // src/contexts/styles-inheritance-context.tsx
1452
- var React18 = __toESM(require("react"));
1479
+ var React19 = __toESM(require("react"));
1453
1480
  var import_react17 = require("react");
1454
1481
  var import_editor_elements4 = require("@elementor/editor-elements");
1455
1482
  var import_editor_props5 = require("@elementor/editor-props");
1456
1483
  var import_editor_responsive = require("@elementor/editor-responsive");
1484
+ var import_editor_styles = require("@elementor/editor-styles");
1457
1485
  var import_editor_styles_repository5 = require("@elementor/editor-styles-repository");
1458
1486
 
1459
1487
  // src/hooks/use-styles-rerender.ts
@@ -1598,13 +1626,14 @@ function createStylesInheritance(styleDefs, breakpointsRoot) {
1598
1626
  const getStyles = ({ breakpoint, state }) => styleVariantsByMeta?.[getBreakpointKey(breakpoint)]?.[getStateKey(state)] ?? [];
1599
1627
  return {
1600
1628
  getSnapshot: createSnapshotsManager(getStyles, breakpointsRoot),
1601
- getInheritanceChain: (snapshot, path) => {
1629
+ getInheritanceChain: (snapshot, path, topLevelPropType) => {
1602
1630
  const [field, ...nextFields] = path;
1603
1631
  let inheritanceChain = snapshot[field] ?? [];
1604
1632
  if (nextFields.length > 0) {
1633
+ const filterPropType = getFilterPropType(topLevelPropType, nextFields);
1605
1634
  inheritanceChain = inheritanceChain.map(({ value: styleValue, ...rest }) => ({
1606
1635
  ...rest,
1607
- value: getValueByPath(styleValue, nextFields)
1636
+ value: getValueByPath(styleValue, nextFields, filterPropType)
1608
1637
  })).filter(({ value: styleValue }) => !(0, import_editor_props4.isEmpty)(styleValue));
1609
1638
  }
1610
1639
  return inheritanceChain;
@@ -1636,23 +1665,46 @@ function buildStyleVariantsByMetaMapping(styleDefs) {
1636
1665
  });
1637
1666
  return breakpointStateSlots;
1638
1667
  }
1639
- function getValueByPath(value, path) {
1668
+ function getValueByPath(value, path, filterPropType) {
1640
1669
  if (!value || typeof value !== "object") {
1641
1670
  return null;
1642
1671
  }
1672
+ if (shouldUseOriginalValue(filterPropType, value)) {
1673
+ return value;
1674
+ }
1643
1675
  return path.reduce((currentScope, key) => {
1644
1676
  if (!currentScope) {
1645
1677
  return null;
1646
1678
  }
1647
1679
  if ((0, import_editor_props4.isTransformable)(currentScope)) {
1648
- return currentScope.value?.[key];
1680
+ return currentScope.value?.[key] ?? null;
1649
1681
  }
1650
1682
  if (typeof currentScope === "object") {
1651
- return currentScope[key];
1683
+ return currentScope[key] ?? null;
1652
1684
  }
1653
1685
  return null;
1654
1686
  }, value);
1655
1687
  }
1688
+ function shouldUseOriginalValue(filterPropType, value) {
1689
+ return !!filterPropType && (0, import_editor_props4.isTransformable)(value) && filterPropType.key !== value.$$type;
1690
+ }
1691
+ var getFilterPropType = (propType, path) => {
1692
+ if (!propType || propType.kind !== "union") {
1693
+ return null;
1694
+ }
1695
+ return Object.values(propType.prop_types).find((type) => {
1696
+ return !!path.reduce((currentScope, key) => {
1697
+ if (currentScope?.kind !== "object") {
1698
+ return null;
1699
+ }
1700
+ const { shape } = currentScope;
1701
+ if (shape[key]) {
1702
+ return shape[key];
1703
+ }
1704
+ return null;
1705
+ }, type);
1706
+ }) ?? null;
1707
+ };
1656
1708
 
1657
1709
  // src/contexts/styles-inheritance-context.tsx
1658
1710
  var Context4 = (0, import_react17.createContext)(null);
@@ -1660,7 +1712,7 @@ function StyleInheritanceProvider({ children }) {
1660
1712
  const styleDefs = useAppliedStyles();
1661
1713
  const breakpointsTree = (0, import_editor_responsive.getBreakpointsTree)();
1662
1714
  const { getSnapshot, getInheritanceChain } = createStylesInheritance(styleDefs, breakpointsTree);
1663
- return /* @__PURE__ */ React18.createElement(Context4.Provider, { value: { getSnapshot, getInheritanceChain } }, children);
1715
+ return /* @__PURE__ */ React19.createElement(Context4.Provider, { value: { getSnapshot, getInheritanceChain } }, children);
1664
1716
  }
1665
1717
  function useStylesInheritanceSnapshot() {
1666
1718
  const context = (0, import_react17.useContext)(Context4);
@@ -1678,11 +1730,13 @@ function useStylesInheritanceChain(path) {
1678
1730
  if (!context) {
1679
1731
  throw new Error("useStylesInheritanceChain must be used within a StyleInheritanceProvider");
1680
1732
  }
1733
+ const schema = (0, import_editor_styles.getStylesSchema)();
1734
+ const topLevelPropType = schema?.[path[0]];
1681
1735
  const snapshot = useStylesInheritanceSnapshot();
1682
1736
  if (!snapshot) {
1683
1737
  return [];
1684
1738
  }
1685
- return context.getInheritanceChain(snapshot, path);
1739
+ return context.getInheritanceChain(snapshot, path, topLevelPropType);
1686
1740
  }
1687
1741
  var useAppliedStyles = () => {
1688
1742
  const { element } = useElement();
@@ -1690,14 +1744,14 @@ var useAppliedStyles = () => {
1690
1744
  const baseStyles = useBaseStyles();
1691
1745
  useStylesRerender();
1692
1746
  const classesProp = (0, import_editor_elements4.useElementSetting)(element.id, currentClassesProp);
1693
- const appliedStyles = import_editor_props5.classesPropTypeUtil.extract(classesProp);
1694
- return import_editor_styles_repository5.stylesRepository.all().filter((style) => appliedStyles?.includes(style.id)).concat(baseStyles);
1747
+ const appliedStyles = import_editor_props5.classesPropTypeUtil.extract(classesProp) ?? [];
1748
+ return import_editor_styles_repository5.stylesRepository.all().filter((style) => [...baseStyles, ...appliedStyles].includes(style.id));
1695
1749
  };
1696
1750
  var useBaseStyles = () => {
1697
1751
  const { elementType } = useElement();
1698
1752
  const widgetsCache = (0, import_editor_elements4.getWidgetsCache)();
1699
1753
  const widgetCache = widgetsCache?.[elementType.key];
1700
- return Object.values(widgetCache?.base_styles ?? {});
1754
+ return Object.keys(widgetCache?.base_styles ?? {});
1701
1755
  };
1702
1756
 
1703
1757
  // src/hooks/use-active-style-def-id.ts
@@ -1727,18 +1781,18 @@ function useActiveAndAppliedClassId(id, appliedClassesIds) {
1727
1781
  }
1728
1782
 
1729
1783
  // src/components/style-sections/background-section/background-section.tsx
1730
- var React22 = __toESM(require("react"));
1784
+ var React28 = __toESM(require("react"));
1731
1785
  var import_editor_controls7 = require("@elementor/editor-controls");
1732
1786
 
1733
1787
  // src/controls-registry/styles-field.tsx
1734
- var React21 = __toESM(require("react"));
1788
+ var React27 = __toESM(require("react"));
1735
1789
  var import_editor_controls6 = require("@elementor/editor-controls");
1736
- var import_editor_styles2 = require("@elementor/editor-styles");
1790
+ var import_editor_styles3 = require("@elementor/editor-styles");
1737
1791
 
1738
1792
  // src/hooks/use-styles-fields.ts
1739
1793
  var import_react18 = require("react");
1740
1794
  var import_editor_elements6 = require("@elementor/editor-elements");
1741
- var import_editor_styles = require("@elementor/editor-styles");
1795
+ var import_editor_styles2 = require("@elementor/editor-styles");
1742
1796
  var import_editor_styles_repository6 = require("@elementor/editor-styles-repository");
1743
1797
  var import_editor_v1_adapters4 = require("@elementor/editor-v1-adapters");
1744
1798
  var import_i18n5 = require("@wordpress/i18n");
@@ -1784,7 +1838,7 @@ function getProps({ styleId, elementId, provider, meta, propNames }) {
1784
1838
  if (!style) {
1785
1839
  throw new StyleNotFoundUnderProviderError({ context: { styleId, providerKey: provider.getKey() } });
1786
1840
  }
1787
- const variant = (0, import_editor_styles.getVariantByMeta)(style, meta);
1841
+ const variant = (0, import_editor_styles2.getVariantByMeta)(style, meta);
1788
1842
  return Object.fromEntries(
1789
1843
  propNames.map((key) => [key, variant?.props[key] ?? null])
1790
1844
  );
@@ -1854,7 +1908,7 @@ function getCurrentProps(style, meta) {
1854
1908
  if (!style) {
1855
1909
  return {};
1856
1910
  }
1857
- const variant = (0, import_editor_styles.getVariantByMeta)(style, meta);
1911
+ const variant = (0, import_editor_styles2.getVariantByMeta)(style, meta);
1858
1912
  const props = variant?.props ?? {};
1859
1913
  return structuredClone(props);
1860
1914
  }
@@ -1872,44 +1926,188 @@ function useStylesField(propName) {
1872
1926
  }
1873
1927
 
1874
1928
  // src/styles-inheritance/styles-inheritance-indicator.tsx
1875
- var React20 = __toESM(require("react"));
1876
- var import_react21 = require("react");
1929
+ var React26 = __toESM(require("react"));
1877
1930
  var import_editor_controls5 = require("@elementor/editor-controls");
1878
1931
  var import_editor_props6 = require("@elementor/editor-props");
1879
- var import_editor_styles_repository7 = require("@elementor/editor-styles-repository");
1932
+ var import_editor_styles_repository9 = require("@elementor/editor-styles-repository");
1933
+ var import_editor_v1_adapters6 = require("@elementor/editor-v1-adapters");
1934
+ var import_ui23 = require("@elementor/ui");
1935
+ var import_i18n9 = require("@wordpress/i18n");
1936
+
1937
+ // src/styles-inheritance/consts.ts
1880
1938
  var import_editor_v1_adapters5 = require("@elementor/editor-v1-adapters");
1881
- var import_ui16 = require("@elementor/ui");
1882
- var import_i18n6 = require("@wordpress/i18n");
1939
+ var excludePropTypeTransformers = /* @__PURE__ */ new Set([
1940
+ "background-color-overlay",
1941
+ "background-image-overlay",
1942
+ "background-gradient-overlay",
1943
+ "gradient-color-stop",
1944
+ "color-stop",
1945
+ "background-image-position-offset",
1946
+ "background-image-size-scale",
1947
+ "image-src",
1948
+ "image",
1949
+ "background-overlay"
1950
+ ]);
1951
+ var isUsingIndicatorPopover = () => (0, import_editor_v1_adapters5.isExperimentActive)("e_indications_popover");
1883
1952
 
1884
1953
  // src/styles-inheritance/styles-inheritance-infotip.tsx
1885
- var React19 = __toESM(require("react"));
1886
- var import_react20 = require("react");
1887
- var import_editor_canvas = require("@elementor/editor-canvas");
1888
- var import_ui15 = require("@elementor/ui");
1954
+ var React25 = __toESM(require("react"));
1955
+ var import_react21 = require("react");
1956
+ var import_editor_canvas2 = require("@elementor/editor-canvas");
1957
+ var import_ui22 = require("@elementor/ui");
1958
+ var import_i18n8 = require("@wordpress/i18n");
1889
1959
 
1890
- // src/hooks/use-normalized-inheritance-chain-items.tsx
1960
+ // src/components/section-content.tsx
1891
1961
  var import_react19 = require("react");
1962
+ var React20 = __toESM(require("react"));
1963
+ var import_ui16 = require("@elementor/ui");
1964
+ var SectionContentRefContext = (0, import_react19.createContext)(null);
1965
+ var useSectionContentRef = () => (0, import_react19.useContext)(SectionContentRefContext);
1966
+ var SectionContent = ({ gap = 2, sx, children }) => {
1967
+ const ref = (0, import_react19.useRef)(null);
1968
+ return /* @__PURE__ */ React20.createElement(SectionContentRefContext.Provider, { value: ref }, /* @__PURE__ */ React20.createElement(import_ui16.Stack, { gap, sx: { ...sx }, ref }, children));
1969
+ };
1970
+
1971
+ // src/hooks/use-direction.ts
1972
+ var import_ui17 = require("@elementor/ui");
1973
+
1974
+ // src/sync/get-elementor-globals.ts
1975
+ var getElementorConfig = () => {
1976
+ const extendedWindow = window;
1977
+ return extendedWindow.elementor?.config ?? {};
1978
+ };
1979
+ var getElementorFrontendConfig = () => {
1980
+ const extendedWindow = window;
1981
+ return extendedWindow.elementorFrontend?.config ?? {};
1982
+ };
1983
+
1984
+ // src/hooks/use-direction.ts
1985
+ function useDirection() {
1986
+ const theme = (0, import_ui17.useTheme)();
1987
+ const isUiRtl = "rtl" === theme.direction, isSiteRtl = !!getElementorFrontendConfig()?.is_rtl;
1988
+ return { isSiteRtl, isUiRtl };
1989
+ }
1990
+
1991
+ // src/styles-inheritance/components/breakpoint-icon.tsx
1992
+ var React21 = __toESM(require("react"));
1993
+ var import_editor_responsive2 = require("@elementor/editor-responsive");
1994
+ var import_icons5 = require("@elementor/icons");
1995
+ var import_ui18 = require("@elementor/ui");
1996
+ var SIZE3 = "tiny";
1997
+ var DEFAULT_BREAKPOINT2 = "desktop";
1998
+ var breakpointIconMap = {
1999
+ widescreen: import_icons5.WidescreenIcon,
2000
+ desktop: import_icons5.DesktopIcon,
2001
+ laptop: import_icons5.LaptopIcon,
2002
+ tablet_extra: import_icons5.TabletLandscapeIcon,
2003
+ tablet: import_icons5.TabletPortraitIcon,
2004
+ mobile_extra: import_icons5.MobileLandscapeIcon,
2005
+ mobile: import_icons5.MobilePortraitIcon
2006
+ };
2007
+ var BreakpointIcon = ({ breakpoint }) => {
2008
+ const breakpoints = (0, import_editor_responsive2.useBreakpoints)();
2009
+ const currentBreakpoint = breakpoint || DEFAULT_BREAKPOINT2;
2010
+ const IconComponent = breakpointIconMap[currentBreakpoint];
2011
+ if (!IconComponent) {
2012
+ return null;
2013
+ }
2014
+ const breakpointLabel = breakpoints.find((breakpointItem) => breakpointItem.id === currentBreakpoint)?.label;
2015
+ return /* @__PURE__ */ React21.createElement(import_ui18.Tooltip, { title: breakpointLabel, placement: "top" }, /* @__PURE__ */ React21.createElement(IconComponent, { fontSize: SIZE3, sx: { mt: "2px" } }));
2016
+ };
2017
+
2018
+ // src/styles-inheritance/components/label-chip.tsx
2019
+ var React22 = __toESM(require("react"));
2020
+ var import_editor_styles_repository7 = require("@elementor/editor-styles-repository");
2021
+ var import_icons6 = require("@elementor/icons");
2022
+ var import_ui19 = require("@elementor/ui");
2023
+ var import_i18n6 = require("@wordpress/i18n");
2024
+ var SIZE4 = "tiny";
2025
+ var LabelChip = ({ displayLabel, provider }) => {
2026
+ return /* @__PURE__ */ React22.createElement(
2027
+ import_ui19.Chip,
2028
+ {
2029
+ label: displayLabel,
2030
+ size: SIZE4,
2031
+ color: "global",
2032
+ variant: "standard",
2033
+ state: "enabled",
2034
+ icon: provider === import_editor_styles_repository7.ELEMENTS_BASE_STYLES_PROVIDER_KEY ? /* @__PURE__ */ React22.createElement(import_ui19.Tooltip, { title: (0, import_i18n6.__)("Inherited from base styles", "elementor"), placement: "top" }, /* @__PURE__ */ React22.createElement(import_icons6.InfoCircleIcon, { fontSize: SIZE4 })) : void 0,
2035
+ sx: (theme) => ({
2036
+ lineHeight: 1,
2037
+ flexWrap: "nowrap",
2038
+ alignItems: "center",
2039
+ borderRadius: `${theme.shape.borderRadius * 0.75}px`,
2040
+ flexDirection: "row-reverse",
2041
+ ".MuiChip-label": {
2042
+ overflow: "hidden",
2043
+ textOverflow: "ellipsis",
2044
+ whiteSpace: "nowrap"
2045
+ }
2046
+ })
2047
+ }
2048
+ );
2049
+ };
2050
+
2051
+ // src/styles-inheritance/components/value-component.tsx
2052
+ var React23 = __toESM(require("react"));
2053
+ var import_ui20 = require("@elementor/ui");
2054
+ var ValueComponent = ({ index, value }) => {
2055
+ return /* @__PURE__ */ React23.createElement(
2056
+ import_ui20.Typography,
2057
+ {
2058
+ variant: "caption",
2059
+ color: "text.tertiary",
2060
+ sx: {
2061
+ mt: "1px",
2062
+ textDecoration: index === 0 ? "none" : "line-through",
2063
+ overflow: "hidden",
2064
+ textOverflow: "ellipsis",
2065
+ whiteSpace: "nowrap"
2066
+ }
2067
+ },
2068
+ value
2069
+ );
2070
+ };
2071
+
2072
+ // src/styles-inheritance/components/action-icons.tsx
2073
+ var React24 = __toESM(require("react"));
2074
+ var import_ui21 = require("@elementor/ui");
2075
+ var ActionIcons = () => /* @__PURE__ */ React24.createElement(import_ui21.Box, { display: "flex", gap: 0.5, alignItems: "center" });
2076
+
2077
+ // src/styles-inheritance/hooks/use-normalized-inheritance-chain-items.tsx
2078
+ var import_react20 = require("react");
2079
+ var import_editor_styles_repository8 = require("@elementor/editor-styles-repository");
2080
+ var import_i18n7 = require("@wordpress/i18n");
1892
2081
  var MAXIMUM_ITEMS = 2;
1893
2082
  var useNormalizedInheritanceChainItems = (inheritanceChain, bind, resolve) => {
1894
- const [items3, setItems] = (0, import_react19.useState)([]);
1895
- (0, import_react19.useEffect)(() => {
2083
+ const [items3, setItems] = (0, import_react20.useState)([]);
2084
+ (0, import_react20.useEffect)(() => {
1896
2085
  (async () => {
1897
2086
  const normalizedItems = await Promise.all(
1898
- inheritanceChain.filter((item) => item.style?.label).map((item, index) => normalizeInheritanceItem(item, index, bind, resolve))
2087
+ inheritanceChain.filter(({ style }) => style).map((item, index) => normalizeInheritanceItem(item, index, bind, resolve))
1899
2088
  );
1900
- const validItems = normalizedItems.filter((item) => item.value !== "").slice(0, MAXIMUM_ITEMS);
2089
+ const validItems = normalizedItems.map((item) => ({
2090
+ ...item,
2091
+ displayLabel: import_editor_styles_repository8.ELEMENTS_BASE_STYLES_PROVIDER_KEY !== item.provider ? item.displayLabel : (0, import_i18n7.__)("Base", "elementor")
2092
+ })).filter((item) => !item.value || item.displayLabel !== "").slice(0, MAXIMUM_ITEMS);
1901
2093
  setItems(validItems);
1902
2094
  })();
1903
2095
  }, [inheritanceChain, bind, resolve]);
1904
2096
  return items3;
1905
2097
  };
2098
+ var DEFAULT_BREAKPOINT3 = "desktop";
1906
2099
  var normalizeInheritanceItem = async (item, index, bind, resolve) => {
1907
- const state = item.variant?.meta?.state || "";
1908
- const label = item.style?.label || "";
1909
- const displayLabel = state ? `${label}:${state}` : label;
2100
+ const {
2101
+ variant: {
2102
+ meta: { state, breakpoint }
2103
+ },
2104
+ style: { label, id }
2105
+ } = item;
2106
+ const displayLabel = `${label}${state ? ":" + state : ""}`;
1910
2107
  return {
1911
- id: item.style?.id ? item.style?.id + state : index,
1912
- breakpoint: item.variant?.meta?.breakpoint,
2108
+ id: id ? id + (state ?? "") : index,
2109
+ provider: item.provider || "",
2110
+ breakpoint: breakpoint ?? DEFAULT_BREAKPOINT3,
1913
2111
  displayLabel,
1914
2112
  value: await getTransformedValue(item, bind, resolve)
1915
2113
  };
@@ -1921,75 +2119,171 @@ var getTransformedValue = async (item, bind, resolve) => {
1921
2119
  [bind]: item.value
1922
2120
  }
1923
2121
  });
1924
- return Object.values(result).join(" ");
2122
+ const value = result?.[bind] ?? result;
2123
+ if ((0, import_react20.isValidElement)(value)) {
2124
+ return value;
2125
+ }
2126
+ if (typeof value === "object") {
2127
+ return JSON.stringify(value);
2128
+ }
2129
+ return String(value);
1925
2130
  } catch {
1926
2131
  return "";
1927
2132
  }
1928
2133
  };
1929
2134
 
2135
+ // src/styles-inheritance/styles-inheritance-transformers-registry.tsx
2136
+ var import_editor_canvas = require("@elementor/editor-canvas");
2137
+ var stylesInheritanceTransformersRegistry = (0, import_editor_canvas.createTransformersRegistry)();
2138
+
1930
2139
  // src/styles-inheritance/styles-inheritance-infotip.tsx
1931
- var StyleIndicatorInfotip = ({ inheritanceChain, propType, path }) => {
2140
+ var SIZE5 = "tiny";
2141
+ var StyleIndicatorInfotip = ({ inheritanceChain, propType, path, label, children }) => {
2142
+ const [open, setOpen] = (0, import_react21.useState)(false);
2143
+ const { isSiteRtl } = useDirection();
1932
2144
  const key = path.join(".");
1933
- const resolve = (0, import_react20.useMemo)(() => {
1934
- return (0, import_editor_canvas.createPropsResolver)({
1935
- transformers: import_editor_canvas.styleTransformersRegistry,
2145
+ const sectionContentRef = useSectionContentRef();
2146
+ const sectionContentWidth = sectionContentRef?.current?.offsetWidth ?? 320;
2147
+ const resolve = (0, import_react21.useMemo)(() => {
2148
+ return (0, import_editor_canvas2.createPropsResolver)({
2149
+ transformers: stylesInheritanceTransformersRegistry,
1936
2150
  schema: { [key]: propType }
1937
2151
  });
1938
2152
  }, [key, propType]);
1939
2153
  const items3 = useNormalizedInheritanceChainItems(inheritanceChain, key, resolve);
1940
- return /* @__PURE__ */ React19.createElement(import_ui15.Card, { elevation: 0, sx: { maxWidth: 320 } }, /* @__PURE__ */ React19.createElement(import_ui15.CardContent, { sx: { p: 1.5, pb: 2.5 } }, /* @__PURE__ */ React19.createElement(import_ui15.List, null, items3.map((item) => /* @__PURE__ */ React19.createElement(import_ui15.ListItem, { key: item.id }, /* @__PURE__ */ React19.createElement(
1941
- import_ui15.ListItemText,
2154
+ const toggleOpen = () => setOpen((prev) => !prev);
2155
+ const closeInfotip = () => {
2156
+ setOpen(false);
2157
+ };
2158
+ const forceInfotipAlignLeft = isSiteRtl ? 9999999 : -9999999;
2159
+ const infotipContent = /* @__PURE__ */ React25.createElement(
2160
+ import_ui22.Card,
1942
2161
  {
1943
- primary: `${item.breakpoint} | ${item.displayLabel}. ${item.value}`
1944
- }
1945
- ))))));
2162
+ elevation: 0,
2163
+ sx: {
2164
+ width: `${sectionContentWidth}px`,
2165
+ maxWidth: 500,
2166
+ overflowX: "hidden"
2167
+ }
2168
+ },
2169
+ /* @__PURE__ */ React25.createElement(
2170
+ import_ui22.CardContent,
2171
+ {
2172
+ sx: {
2173
+ display: "flex",
2174
+ gap: 0.5,
2175
+ flexDirection: "column",
2176
+ p: 0,
2177
+ "&:last-child": {
2178
+ pb: 0
2179
+ }
2180
+ }
2181
+ },
2182
+ /* @__PURE__ */ React25.createElement(import_ui22.Stack, { direction: "row", alignItems: "center", sx: { pl: 1.5, pr: 0.5, minHeight: 36, py: 0.5 } }, /* @__PURE__ */ React25.createElement(import_ui22.Typography, { variant: "subtitle2", color: "secondary", sx: { fontSize: 12, fontWeight: "500" } }, (0, import_i18n8.__)("Style origin", "elementor")), /* @__PURE__ */ React25.createElement(
2183
+ import_ui22.CloseButton,
2184
+ {
2185
+ slotProps: { icon: { fontSize: SIZE5 } },
2186
+ sx: { ml: "auto" },
2187
+ onClick: closeInfotip
2188
+ }
2189
+ )),
2190
+ /* @__PURE__ */ React25.createElement(import_ui22.Stack, { gap: 1.5, sx: { pl: 2, pr: 1, pb: 2, overflowX: "hidden", overflowY: "auto" }, role: "list" }, items3.map((item, index) => {
2191
+ return /* @__PURE__ */ React25.createElement(
2192
+ import_ui22.Box,
2193
+ {
2194
+ key: item.id,
2195
+ display: "flex",
2196
+ gap: 0.5,
2197
+ role: "listitem",
2198
+ "aria-label": (0, import_i18n8.__)("Inheritance item: %s", "elementor").replace(
2199
+ "%s",
2200
+ item.displayLabel
2201
+ )
2202
+ },
2203
+ /* @__PURE__ */ React25.createElement(import_ui22.Box, { display: "flex", gap: 0.5, sx: { flexWrap: "wrap", width: "100%" } }, /* @__PURE__ */ React25.createElement(BreakpointIcon, { breakpoint: item.breakpoint }), /* @__PURE__ */ React25.createElement(LabelChip, { displayLabel: item.displayLabel, provider: item.provider }), /* @__PURE__ */ React25.createElement(ValueComponent, { index, value: item.value })),
2204
+ /* @__PURE__ */ React25.createElement(ActionIcons, null)
2205
+ );
2206
+ }))
2207
+ )
2208
+ );
2209
+ return /* @__PURE__ */ React25.createElement(
2210
+ import_ui22.Infotip,
2211
+ {
2212
+ placement: "top",
2213
+ content: infotipContent,
2214
+ open,
2215
+ onClose: closeInfotip,
2216
+ disableHoverListener: true,
2217
+ componentsProps: {
2218
+ tooltip: {
2219
+ sx: {
2220
+ mx: 2
2221
+ }
2222
+ }
2223
+ },
2224
+ slotProps: {
2225
+ popper: {
2226
+ modifiers: [
2227
+ {
2228
+ name: "offset",
2229
+ options: { offset: [forceInfotipAlignLeft, 0] }
2230
+ }
2231
+ ]
2232
+ }
2233
+ }
2234
+ },
2235
+ /* @__PURE__ */ React25.createElement(import_ui22.IconButton, { onClick: toggleOpen, "aria-label": label, sx: { my: "-1px" } }, children)
2236
+ );
1946
2237
  };
1947
2238
 
1948
2239
  // src/styles-inheritance/styles-inheritance-indicator.tsx
1949
2240
  var StylesInheritanceIndicator = () => {
1950
- const [open, setOpen] = (0, import_react21.useState)(false);
1951
- const { value, path, propType } = (0, import_editor_controls5.useBoundProp)();
2241
+ const { path, propType } = (0, import_editor_controls5.useBoundProp)();
1952
2242
  const { id: currentStyleId, provider: currentStyleProvider, meta: currentStyleMeta } = useStyle();
1953
- const isUsingNestedProps = (0, import_editor_v1_adapters5.isExperimentActive)("e_v_3_30");
2243
+ const isUsingNestedProps = (0, import_editor_v1_adapters6.isExperimentActive)(EXPERIMENTAL_FEATURES.V_3_30);
1954
2244
  const finalPath = isUsingNestedProps ? path : path.slice(0, 1);
1955
2245
  const inheritanceChain = useStylesInheritanceChain(finalPath);
1956
2246
  if (!inheritanceChain.length) {
1957
2247
  return null;
1958
2248
  }
1959
- const [{ style, variant, provider }] = inheritanceChain;
1960
- if (provider === import_editor_styles_repository7.ELEMENTS_BASE_STYLES_PROVIDER_KEY) {
2249
+ const currentItem = inheritanceChain.find(
2250
+ ({
2251
+ style,
2252
+ variant: {
2253
+ meta: { breakpoint, state }
2254
+ }
2255
+ }) => style.id === currentStyleId && breakpoint === currentStyleMeta.breakpoint && state === currentStyleMeta.state
2256
+ );
2257
+ const hasValue = !(0, import_editor_props6.isEmpty)(currentItem?.value);
2258
+ const [actualStyle] = inheritanceChain;
2259
+ if (actualStyle.provider === import_editor_styles_repository9.ELEMENTS_BASE_STYLES_PROVIDER_KEY) {
1961
2260
  return null;
1962
2261
  }
1963
- const { breakpoint, state } = variant.meta;
1964
- const isFinalValue = style.id === currentStyleId && breakpoint === currentStyleMeta.breakpoint && state === currentStyleMeta.state;
1965
- const hasValue = !(0, import_editor_props6.isEmpty)(value);
2262
+ const isFinalValue = currentItem === actualStyle;
1966
2263
  const label = getLabel({ isFinalValue, hasValue });
1967
2264
  const variantType = getVariant({ isFinalValue, hasValue, currentStyleProvider });
1968
- const eIndicationsPopover = (0, import_editor_v1_adapters5.isExperimentActive)("e_indications_popover");
1969
- if (!eIndicationsPopover) {
1970
- return /* @__PURE__ */ React20.createElement(StyleIndicator, { variant: variantType, "aria-label": label });
2265
+ if (!isUsingIndicatorPopover()) {
2266
+ return /* @__PURE__ */ React26.createElement(import_ui23.Tooltip, { title: (0, import_i18n9.__)("Style origin", "elementor"), placement: "top" }, /* @__PURE__ */ React26.createElement(StyleIndicator, { variant: variantType, "aria-label": label }));
1971
2267
  }
1972
- const toggleOpen = () => setOpen((prev) => !prev);
1973
- return /* @__PURE__ */ React20.createElement(
1974
- import_ui16.Infotip,
2268
+ return /* @__PURE__ */ React26.createElement(
2269
+ StyleIndicatorInfotip,
1975
2270
  {
1976
- placement: "top",
1977
- content: /* @__PURE__ */ React20.createElement(StyleIndicatorInfotip, { inheritanceChain, path: finalPath, propType }),
1978
- open,
1979
- onClose: () => setOpen(false),
1980
- trigger: "manual"
2271
+ inheritanceChain,
2272
+ path: finalPath,
2273
+ propType,
2274
+ label
1981
2275
  },
1982
- /* @__PURE__ */ React20.createElement(import_ui16.IconButton, { onClick: toggleOpen, "aria-label": label }, /* @__PURE__ */ React20.createElement(StyleIndicator, { variant: variantType }))
2276
+ /* @__PURE__ */ React26.createElement(StyleIndicator, { variant: variantType })
1983
2277
  );
1984
2278
  };
1985
2279
  var getLabel = ({ isFinalValue, hasValue }) => {
1986
2280
  if (isFinalValue) {
1987
- return (0, import_i18n6.__)("This is the final value", "elementor");
2281
+ return (0, import_i18n9.__)("This is the final value", "elementor");
1988
2282
  }
1989
2283
  if (hasValue) {
1990
- return (0, import_i18n6.__)("This value is overridden by another style", "elementor");
2284
+ return (0, import_i18n9.__)("This value is overridden by another style", "elementor");
1991
2285
  }
1992
- return (0, import_i18n6.__)("This has value from another style", "elementor");
2286
+ return (0, import_i18n9.__)("This has value from another style", "elementor");
1993
2287
  };
1994
2288
  var getVariant = ({
1995
2289
  isFinalValue,
@@ -1997,7 +2291,7 @@ var getVariant = ({
1997
2291
  currentStyleProvider
1998
2292
  }) => {
1999
2293
  if (isFinalValue) {
2000
- return (0, import_editor_styles_repository7.isElementsStylesProvider)(currentStyleProvider?.getKey?.()) ? "local" : "global";
2294
+ return (0, import_editor_styles_repository9.isElementsStylesProvider)(currentStyleProvider?.getKey?.()) ? "local" : "global";
2001
2295
  }
2002
2296
  if (hasValue) {
2003
2297
  return "overridden";
@@ -2008,14 +2302,15 @@ var getVariant = ({
2008
2302
  // src/controls-registry/styles-field.tsx
2009
2303
  var StylesField = ({ bind, placeholder, children }) => {
2010
2304
  const [value, setValue] = useStylesField(bind);
2011
- const stylesSchema = (0, import_editor_styles2.getStylesSchema)();
2305
+ const { canEdit } = useStyle();
2306
+ const stylesSchema = (0, import_editor_styles3.getStylesSchema)();
2012
2307
  const propType = createTopLevelOjectType({ schema: stylesSchema });
2013
2308
  const values = { [bind]: value };
2014
2309
  const placeholderValues = { [bind]: placeholder };
2015
2310
  const setValues = (newValue) => {
2016
2311
  setValue(newValue[bind]);
2017
2312
  };
2018
- return /* @__PURE__ */ React21.createElement(
2313
+ return /* @__PURE__ */ React27.createElement(
2019
2314
  import_editor_controls6.ControlAdornmentsProvider,
2020
2315
  {
2021
2316
  items: [
@@ -2025,59 +2320,62 @@ var StylesField = ({ bind, placeholder, children }) => {
2025
2320
  }
2026
2321
  ]
2027
2322
  },
2028
- /* @__PURE__ */ React21.createElement(
2323
+ /* @__PURE__ */ React27.createElement(
2029
2324
  import_editor_controls6.PropProvider,
2030
2325
  {
2031
2326
  propType,
2032
2327
  value: values,
2033
2328
  setValue: setValues,
2034
- placeholder: placeholderValues
2329
+ placeholder: placeholderValues,
2330
+ disabled: !canEdit
2035
2331
  },
2036
- /* @__PURE__ */ React21.createElement(import_editor_controls6.PropKeyProvider, { bind }, children)
2332
+ /* @__PURE__ */ React27.createElement(import_editor_controls6.PropKeyProvider, { bind }, children)
2037
2333
  )
2038
2334
  );
2039
2335
  };
2040
2336
 
2041
2337
  // src/components/style-sections/background-section/background-section.tsx
2042
2338
  var BackgroundSection = () => {
2043
- return /* @__PURE__ */ React22.createElement(StylesField, { bind: "background" }, /* @__PURE__ */ React22.createElement(import_editor_controls7.BackgroundControl, null));
2339
+ return /* @__PURE__ */ React28.createElement(SectionContent, null, /* @__PURE__ */ React28.createElement(StylesField, { bind: "background" }, /* @__PURE__ */ React28.createElement(import_editor_controls7.BackgroundControl, null)));
2044
2340
  };
2045
2341
 
2046
2342
  // src/components/style-sections/border-section/border-section.tsx
2047
- var React32 = __toESM(require("react"));
2343
+ var React37 = __toESM(require("react"));
2048
2344
 
2049
2345
  // src/components/panel-divider.tsx
2050
- var React23 = __toESM(require("react"));
2051
- var import_ui17 = require("@elementor/ui");
2052
- var PanelDivider = () => /* @__PURE__ */ React23.createElement(import_ui17.Divider, { sx: { my: 0.5 } });
2053
-
2054
- // src/components/section-content.tsx
2055
- var React24 = __toESM(require("react"));
2056
- var import_ui18 = require("@elementor/ui");
2057
- var SectionContent = ({ gap = 2, sx, children }) => /* @__PURE__ */ React24.createElement(import_ui18.Stack, { gap, sx: { ...sx } }, children);
2346
+ var React29 = __toESM(require("react"));
2347
+ var import_ui24 = require("@elementor/ui");
2348
+ var PanelDivider = () => /* @__PURE__ */ React29.createElement(import_ui24.Divider, { sx: { my: 0.5 } });
2058
2349
 
2059
2350
  // src/components/style-sections/border-section/border-field.tsx
2060
- var React30 = __toESM(require("react"));
2061
- var import_i18n10 = require("@wordpress/i18n");
2351
+ var React35 = __toESM(require("react"));
2352
+ var import_i18n13 = require("@wordpress/i18n");
2062
2353
 
2063
2354
  // src/components/add-or-remove-content.tsx
2064
- var React26 = __toESM(require("react"));
2065
- var import_icons5 = require("@elementor/icons");
2066
- var import_ui20 = require("@elementor/ui");
2355
+ var React31 = __toESM(require("react"));
2356
+ var import_icons7 = require("@elementor/icons");
2357
+ var import_ui26 = require("@elementor/ui");
2067
2358
 
2068
2359
  // src/components/control-label.tsx
2069
- var React25 = __toESM(require("react"));
2360
+ var React30 = __toESM(require("react"));
2070
2361
  var import_editor_controls8 = require("@elementor/editor-controls");
2071
- var import_ui19 = require("@elementor/ui");
2362
+ var import_ui25 = require("@elementor/ui");
2072
2363
  var ControlLabel = ({ children }) => {
2073
- return /* @__PURE__ */ React25.createElement(import_ui19.Stack, { direction: "row", alignItems: "center", justifyItems: "start", gap: 1 }, /* @__PURE__ */ React25.createElement(import_editor_controls8.ControlFormLabel, null, children), /* @__PURE__ */ React25.createElement(import_editor_controls8.ControlAdornments, null));
2364
+ return /* @__PURE__ */ React30.createElement(import_ui25.Stack, { direction: "row", alignItems: "center", justifyItems: "start", gap: 1 }, /* @__PURE__ */ React30.createElement(import_editor_controls8.ControlFormLabel, null, children), /* @__PURE__ */ React30.createElement(import_editor_controls8.ControlAdornments, null));
2074
2365
  };
2075
2366
 
2076
2367
  // src/components/add-or-remove-content.tsx
2077
- var SIZE2 = "tiny";
2078
- var AddOrRemoveContent = ({ isAdded, label, onAdd, onRemove, children }) => {
2079
- return /* @__PURE__ */ React26.createElement(SectionContent, null, /* @__PURE__ */ React26.createElement(
2080
- import_ui20.Stack,
2368
+ var SIZE6 = "tiny";
2369
+ var AddOrRemoveContent = ({
2370
+ isAdded,
2371
+ label,
2372
+ onAdd,
2373
+ onRemove,
2374
+ children,
2375
+ disabled
2376
+ }) => {
2377
+ return /* @__PURE__ */ React31.createElement(SectionContent, null, /* @__PURE__ */ React31.createElement(
2378
+ import_ui26.Stack,
2081
2379
  {
2082
2380
  direction: "row",
2083
2381
  sx: {
@@ -2086,102 +2384,80 @@ var AddOrRemoveContent = ({ isAdded, label, onAdd, onRemove, children }) => {
2086
2384
  marginInlineEnd: -0.75
2087
2385
  }
2088
2386
  },
2089
- /* @__PURE__ */ React26.createElement(ControlLabel, null, label),
2090
- isAdded ? /* @__PURE__ */ React26.createElement(import_ui20.IconButton, { size: SIZE2, onClick: onRemove, "aria-label": "Remove" }, /* @__PURE__ */ React26.createElement(import_icons5.MinusIcon, { fontSize: SIZE2 })) : /* @__PURE__ */ React26.createElement(import_ui20.IconButton, { size: SIZE2, onClick: onAdd, "aria-label": "Add" }, /* @__PURE__ */ React26.createElement(import_icons5.PlusIcon, { fontSize: SIZE2 }))
2091
- ), /* @__PURE__ */ React26.createElement(import_ui20.Collapse, { in: isAdded, unmountOnExit: true }, /* @__PURE__ */ React26.createElement(SectionContent, null, children)));
2387
+ /* @__PURE__ */ React31.createElement(ControlLabel, null, label),
2388
+ isAdded ? /* @__PURE__ */ React31.createElement(import_ui26.IconButton, { size: SIZE6, onClick: onRemove, "aria-label": "Remove", disabled }, /* @__PURE__ */ React31.createElement(import_icons7.MinusIcon, { fontSize: SIZE6 })) : /* @__PURE__ */ React31.createElement(import_ui26.IconButton, { size: SIZE6, onClick: onAdd, "aria-label": "Add", disabled }, /* @__PURE__ */ React31.createElement(import_icons7.PlusIcon, { fontSize: SIZE6 }))
2389
+ ), /* @__PURE__ */ React31.createElement(import_ui26.Collapse, { in: isAdded, unmountOnExit: true }, /* @__PURE__ */ React31.createElement(SectionContent, null, children)));
2092
2390
  };
2093
2391
 
2094
2392
  // src/components/style-sections/border-section/border-color-field.tsx
2095
- var React27 = __toESM(require("react"));
2393
+ var React32 = __toESM(require("react"));
2096
2394
  var import_editor_controls9 = require("@elementor/editor-controls");
2097
- var import_ui21 = require("@elementor/ui");
2098
- var import_i18n7 = require("@wordpress/i18n");
2395
+ var import_ui27 = require("@elementor/ui");
2396
+ var import_i18n10 = require("@wordpress/i18n");
2099
2397
  var BorderColorField = () => {
2100
- return /* @__PURE__ */ React27.createElement(StylesField, { bind: "border-color" }, /* @__PURE__ */ React27.createElement(import_ui21.Grid, { container: true, gap: 2, alignItems: "center", flexWrap: "nowrap" }, /* @__PURE__ */ React27.createElement(import_ui21.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React27.createElement(ControlLabel, null, (0, import_i18n7.__)("Border color", "elementor"))), /* @__PURE__ */ React27.createElement(import_ui21.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React27.createElement(import_editor_controls9.ColorControl, null))));
2398
+ return /* @__PURE__ */ React32.createElement(StylesField, { bind: "border-color" }, /* @__PURE__ */ React32.createElement(import_ui27.Grid, { container: true, gap: 2, alignItems: "center", flexWrap: "nowrap" }, /* @__PURE__ */ React32.createElement(import_ui27.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React32.createElement(ControlLabel, null, (0, import_i18n10.__)("Border color", "elementor"))), /* @__PURE__ */ React32.createElement(import_ui27.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React32.createElement(import_editor_controls9.ColorControl, null))));
2101
2399
  };
2102
2400
 
2103
2401
  // src/components/style-sections/border-section/border-style-field.tsx
2104
- var React28 = __toESM(require("react"));
2402
+ var React33 = __toESM(require("react"));
2105
2403
  var import_editor_controls10 = require("@elementor/editor-controls");
2106
- var import_ui22 = require("@elementor/ui");
2107
- var import_i18n8 = require("@wordpress/i18n");
2404
+ var import_ui28 = require("@elementor/ui");
2405
+ var import_i18n11 = require("@wordpress/i18n");
2108
2406
  var borderStyles = [
2109
- { value: "none", label: (0, import_i18n8.__)("None", "elementor") },
2110
- { value: "solid", label: (0, import_i18n8.__)("Solid", "elementor") },
2111
- { value: "dashed", label: (0, import_i18n8.__)("Dashed", "elementor") },
2112
- { value: "dotted", label: (0, import_i18n8.__)("Dotted", "elementor") },
2113
- { value: "double", label: (0, import_i18n8.__)("Double", "elementor") },
2114
- { value: "groove", label: (0, import_i18n8.__)("Groove", "elementor") },
2115
- { value: "ridge", label: (0, import_i18n8.__)("Ridge", "elementor") },
2116
- { value: "inset", label: (0, import_i18n8.__)("Inset", "elementor") },
2117
- { value: "outset", label: (0, import_i18n8.__)("Outset", "elementor") }
2407
+ { value: "none", label: (0, import_i18n11.__)("None", "elementor") },
2408
+ { value: "solid", label: (0, import_i18n11.__)("Solid", "elementor") },
2409
+ { value: "dashed", label: (0, import_i18n11.__)("Dashed", "elementor") },
2410
+ { value: "dotted", label: (0, import_i18n11.__)("Dotted", "elementor") },
2411
+ { value: "double", label: (0, import_i18n11.__)("Double", "elementor") },
2412
+ { value: "groove", label: (0, import_i18n11.__)("Groove", "elementor") },
2413
+ { value: "ridge", label: (0, import_i18n11.__)("Ridge", "elementor") },
2414
+ { value: "inset", label: (0, import_i18n11.__)("Inset", "elementor") },
2415
+ { value: "outset", label: (0, import_i18n11.__)("Outset", "elementor") }
2118
2416
  ];
2119
2417
  var BorderStyleField = () => {
2120
- return /* @__PURE__ */ React28.createElement(StylesField, { bind: "border-style" }, /* @__PURE__ */ React28.createElement(import_ui22.Grid, { container: true, gap: 2, alignItems: "center", flexWrap: "nowrap" }, /* @__PURE__ */ React28.createElement(import_ui22.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React28.createElement(ControlLabel, null, (0, import_i18n8.__)("Border type", "elementor"))), /* @__PURE__ */ React28.createElement(import_ui22.Grid, { item: true, xs: 6, sx: { overflow: "hidden" } }, /* @__PURE__ */ React28.createElement(import_editor_controls10.SelectControl, { options: borderStyles }))));
2418
+ return /* @__PURE__ */ React33.createElement(StylesField, { bind: "border-style" }, /* @__PURE__ */ React33.createElement(import_ui28.Grid, { container: true, gap: 2, alignItems: "center", flexWrap: "nowrap" }, /* @__PURE__ */ React33.createElement(import_ui28.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React33.createElement(ControlLabel, null, (0, import_i18n11.__)("Border type", "elementor"))), /* @__PURE__ */ React33.createElement(import_ui28.Grid, { item: true, xs: 6, sx: { overflow: "hidden" } }, /* @__PURE__ */ React33.createElement(import_editor_controls10.SelectControl, { options: borderStyles }))));
2121
2419
  };
2122
2420
 
2123
2421
  // src/components/style-sections/border-section/border-width-field.tsx
2124
- var React29 = __toESM(require("react"));
2422
+ var React34 = __toESM(require("react"));
2125
2423
  var import_editor_controls11 = require("@elementor/editor-controls");
2126
2424
  var import_editor_props7 = require("@elementor/editor-props");
2127
- var import_icons6 = require("@elementor/icons");
2128
- var import_ui24 = require("@elementor/ui");
2129
- var import_i18n9 = require("@wordpress/i18n");
2130
-
2131
- // src/hooks/use-direction.ts
2132
- var import_ui23 = require("@elementor/ui");
2133
-
2134
- // src/sync/get-elementor-globals.ts
2135
- var getElementorConfig = () => {
2136
- const extendedWindow = window;
2137
- return extendedWindow.elementor?.config ?? {};
2138
- };
2139
- var getElementorFrontendConfig = () => {
2140
- const extendedWindow = window;
2141
- return extendedWindow.elementorFrontend?.config ?? {};
2142
- };
2143
-
2144
- // src/hooks/use-direction.ts
2145
- function useDirection() {
2146
- const theme = (0, import_ui23.useTheme)();
2147
- const isUiRtl = "rtl" === theme.direction, isSiteRtl = !!getElementorFrontendConfig()?.is_rtl;
2148
- return { isSiteRtl, isUiRtl };
2149
- }
2150
-
2151
- // src/components/style-sections/border-section/border-width-field.tsx
2152
- var InlineStartIcon = (0, import_ui24.withDirection)(import_icons6.SideRightIcon);
2153
- var InlineEndIcon = (0, import_ui24.withDirection)(import_icons6.SideLeftIcon);
2425
+ var import_icons8 = require("@elementor/icons");
2426
+ var import_ui29 = require("@elementor/ui");
2427
+ var import_i18n12 = require("@wordpress/i18n");
2428
+ var InlineStartIcon = (0, import_ui29.withDirection)(import_icons8.SideRightIcon);
2429
+ var InlineEndIcon = (0, import_ui29.withDirection)(import_icons8.SideLeftIcon);
2154
2430
  var getEdges = (isSiteRtl) => [
2155
2431
  {
2156
- label: (0, import_i18n9.__)("Top", "elementor"),
2157
- icon: /* @__PURE__ */ React29.createElement(import_icons6.SideTopIcon, { fontSize: "tiny" }),
2432
+ label: (0, import_i18n12.__)("Top", "elementor"),
2433
+ icon: /* @__PURE__ */ React34.createElement(import_icons8.SideTopIcon, { fontSize: "tiny" }),
2158
2434
  bind: "block-start"
2159
2435
  },
2160
2436
  {
2161
- label: isSiteRtl ? (0, import_i18n9.__)("Left", "elementor") : (0, import_i18n9.__)("Right", "elementor"),
2162
- icon: /* @__PURE__ */ React29.createElement(InlineStartIcon, { fontSize: "tiny" }),
2437
+ label: isSiteRtl ? (0, import_i18n12.__)("Left", "elementor") : (0, import_i18n12.__)("Right", "elementor"),
2438
+ icon: /* @__PURE__ */ React34.createElement(InlineStartIcon, { fontSize: "tiny" }),
2163
2439
  bind: "inline-end"
2164
2440
  },
2165
2441
  {
2166
- label: (0, import_i18n9.__)("Bottom", "elementor"),
2167
- icon: /* @__PURE__ */ React29.createElement(import_icons6.SideBottomIcon, { fontSize: "tiny" }),
2442
+ label: (0, import_i18n12.__)("Bottom", "elementor"),
2443
+ icon: /* @__PURE__ */ React34.createElement(import_icons8.SideBottomIcon, { fontSize: "tiny" }),
2168
2444
  bind: "block-end"
2169
2445
  },
2170
2446
  {
2171
- label: isSiteRtl ? (0, import_i18n9.__)("Right", "elementor") : (0, import_i18n9.__)("Left", "elementor"),
2172
- icon: /* @__PURE__ */ React29.createElement(InlineEndIcon, { fontSize: "tiny" }),
2447
+ label: isSiteRtl ? (0, import_i18n12.__)("Right", "elementor") : (0, import_i18n12.__)("Left", "elementor"),
2448
+ icon: /* @__PURE__ */ React34.createElement(InlineEndIcon, { fontSize: "tiny" }),
2173
2449
  bind: "inline-start"
2174
2450
  }
2175
2451
  ];
2176
2452
  var BorderWidthField = () => {
2177
2453
  const { isSiteRtl } = useDirection();
2178
- return /* @__PURE__ */ React29.createElement(StylesField, { bind: "border-width" }, /* @__PURE__ */ React29.createElement(
2454
+ return /* @__PURE__ */ React34.createElement(StylesField, { bind: "border-width" }, /* @__PURE__ */ React34.createElement(
2179
2455
  import_editor_controls11.EqualUnequalSizesControl,
2180
2456
  {
2181
2457
  items: getEdges(isSiteRtl),
2182
- label: (0, import_i18n9.__)("Border width", "elementor"),
2183
- icon: /* @__PURE__ */ React29.createElement(import_icons6.SideAllIcon, { fontSize: "tiny" }),
2184
- tooltipLabel: (0, import_i18n9.__)("Adjust borders", "elementor"),
2458
+ label: (0, import_i18n12.__)("Border width", "elementor"),
2459
+ icon: /* @__PURE__ */ React34.createElement(import_icons8.SideAllIcon, { fontSize: "tiny" }),
2460
+ tooltipLabel: (0, import_i18n12.__)("Adjust borders", "elementor"),
2185
2461
  multiSizePropTypeUtil: import_editor_props7.borderWidthPropTypeUtil
2186
2462
  }
2187
2463
  ));
@@ -2194,6 +2470,7 @@ var initialBorder = {
2194
2470
  "border-style": { $$type: "string", value: "solid" }
2195
2471
  };
2196
2472
  var BorderField = () => {
2473
+ const { canEdit } = useStyle();
2197
2474
  const [border, setBorder] = useStylesFields(Object.keys(initialBorder));
2198
2475
  const addBorder = () => {
2199
2476
  setBorder(initialBorder);
@@ -2206,96 +2483,97 @@ var BorderField = () => {
2206
2483
  });
2207
2484
  };
2208
2485
  const hasBorder = Object.values(border ?? {}).some(Boolean);
2209
- return /* @__PURE__ */ React30.createElement(
2486
+ return /* @__PURE__ */ React35.createElement(
2210
2487
  AddOrRemoveContent,
2211
2488
  {
2212
- label: (0, import_i18n10.__)("Border", "elementor"),
2489
+ label: (0, import_i18n13.__)("Border", "elementor"),
2213
2490
  isAdded: hasBorder,
2214
2491
  onAdd: addBorder,
2215
- onRemove: removeBorder
2492
+ onRemove: removeBorder,
2493
+ disabled: !canEdit
2216
2494
  },
2217
- /* @__PURE__ */ React30.createElement(BorderWidthField, null),
2218
- /* @__PURE__ */ React30.createElement(BorderColorField, null),
2219
- /* @__PURE__ */ React30.createElement(BorderStyleField, null)
2495
+ /* @__PURE__ */ React35.createElement(BorderWidthField, null),
2496
+ /* @__PURE__ */ React35.createElement(BorderColorField, null),
2497
+ /* @__PURE__ */ React35.createElement(BorderStyleField, null)
2220
2498
  );
2221
2499
  };
2222
2500
 
2223
2501
  // src/components/style-sections/border-section/border-radius-field.tsx
2224
- var React31 = __toESM(require("react"));
2502
+ var React36 = __toESM(require("react"));
2225
2503
  var import_editor_controls12 = require("@elementor/editor-controls");
2226
2504
  var import_editor_props8 = require("@elementor/editor-props");
2227
- var import_icons7 = require("@elementor/icons");
2228
- var import_ui25 = require("@elementor/ui");
2229
- var import_i18n11 = require("@wordpress/i18n");
2230
- var StartStartIcon = (0, import_ui25.withDirection)(import_icons7.RadiusTopLeftIcon);
2231
- var StartEndIcon = (0, import_ui25.withDirection)(import_icons7.RadiusTopRightIcon);
2232
- var EndStartIcon = (0, import_ui25.withDirection)(import_icons7.RadiusBottomLeftIcon);
2233
- var EndEndIcon = (0, import_ui25.withDirection)(import_icons7.RadiusBottomRightIcon);
2234
- var getStartStartLabel = (isSiteRtl) => isSiteRtl ? (0, import_i18n11.__)("Top right", "elementor") : (0, import_i18n11.__)("Top left", "elementor");
2235
- var getStartEndLabel = (isSiteRtl) => isSiteRtl ? (0, import_i18n11.__)("Top left", "elementor") : (0, import_i18n11.__)("Top right", "elementor");
2236
- var getEndStartLabel = (isSiteRtl) => isSiteRtl ? (0, import_i18n11.__)("Bottom right", "elementor") : (0, import_i18n11.__)("Bottom left", "elementor");
2237
- var getEndEndLabel = (isSiteRtl) => isSiteRtl ? (0, import_i18n11.__)("Bottom left", "elementor") : (0, import_i18n11.__)("Bottom right", "elementor");
2505
+ var import_icons9 = require("@elementor/icons");
2506
+ var import_ui30 = require("@elementor/ui");
2507
+ var import_i18n14 = require("@wordpress/i18n");
2508
+ var StartStartIcon = (0, import_ui30.withDirection)(import_icons9.RadiusTopLeftIcon);
2509
+ var StartEndIcon = (0, import_ui30.withDirection)(import_icons9.RadiusTopRightIcon);
2510
+ var EndStartIcon = (0, import_ui30.withDirection)(import_icons9.RadiusBottomLeftIcon);
2511
+ var EndEndIcon = (0, import_ui30.withDirection)(import_icons9.RadiusBottomRightIcon);
2512
+ var getStartStartLabel = (isSiteRtl) => isSiteRtl ? (0, import_i18n14.__)("Top right", "elementor") : (0, import_i18n14.__)("Top left", "elementor");
2513
+ var getStartEndLabel = (isSiteRtl) => isSiteRtl ? (0, import_i18n14.__)("Top left", "elementor") : (0, import_i18n14.__)("Top right", "elementor");
2514
+ var getEndStartLabel = (isSiteRtl) => isSiteRtl ? (0, import_i18n14.__)("Bottom right", "elementor") : (0, import_i18n14.__)("Bottom left", "elementor");
2515
+ var getEndEndLabel = (isSiteRtl) => isSiteRtl ? (0, import_i18n14.__)("Bottom left", "elementor") : (0, import_i18n14.__)("Bottom right", "elementor");
2238
2516
  var getCorners = (isSiteRtl) => [
2239
2517
  {
2240
2518
  label: getStartStartLabel(isSiteRtl),
2241
- icon: /* @__PURE__ */ React31.createElement(StartStartIcon, { fontSize: "tiny" }),
2519
+ icon: /* @__PURE__ */ React36.createElement(StartStartIcon, { fontSize: "tiny" }),
2242
2520
  bind: "start-start"
2243
2521
  },
2244
2522
  {
2245
2523
  label: getStartEndLabel(isSiteRtl),
2246
- icon: /* @__PURE__ */ React31.createElement(StartEndIcon, { fontSize: "tiny" }),
2524
+ icon: /* @__PURE__ */ React36.createElement(StartEndIcon, { fontSize: "tiny" }),
2247
2525
  bind: "start-end"
2248
2526
  },
2249
2527
  {
2250
2528
  label: getEndStartLabel(isSiteRtl),
2251
- icon: /* @__PURE__ */ React31.createElement(EndStartIcon, { fontSize: "tiny" }),
2529
+ icon: /* @__PURE__ */ React36.createElement(EndStartIcon, { fontSize: "tiny" }),
2252
2530
  bind: "end-start"
2253
2531
  },
2254
2532
  {
2255
2533
  label: getEndEndLabel(isSiteRtl),
2256
- icon: /* @__PURE__ */ React31.createElement(EndEndIcon, { fontSize: "tiny" }),
2534
+ icon: /* @__PURE__ */ React36.createElement(EndEndIcon, { fontSize: "tiny" }),
2257
2535
  bind: "end-end"
2258
2536
  }
2259
2537
  ];
2260
2538
  var BorderRadiusField = () => {
2261
2539
  const { isSiteRtl } = useDirection();
2262
- return /* @__PURE__ */ React31.createElement(StylesField, { bind: "border-radius" }, /* @__PURE__ */ React31.createElement(
2540
+ return /* @__PURE__ */ React36.createElement(StylesField, { bind: "border-radius" }, /* @__PURE__ */ React36.createElement(
2263
2541
  import_editor_controls12.EqualUnequalSizesControl,
2264
2542
  {
2265
2543
  items: getCorners(isSiteRtl),
2266
- label: (0, import_i18n11.__)("Border radius", "elementor"),
2267
- icon: /* @__PURE__ */ React31.createElement(import_icons7.BorderCornersIcon, { fontSize: "tiny" }),
2268
- tooltipLabel: (0, import_i18n11.__)("Adjust corners", "elementor"),
2544
+ label: (0, import_i18n14.__)("Border radius", "elementor"),
2545
+ icon: /* @__PURE__ */ React36.createElement(import_icons9.BorderCornersIcon, { fontSize: "tiny" }),
2546
+ tooltipLabel: (0, import_i18n14.__)("Adjust corners", "elementor"),
2269
2547
  multiSizePropTypeUtil: import_editor_props8.borderRadiusPropTypeUtil
2270
2548
  }
2271
2549
  ));
2272
2550
  };
2273
2551
 
2274
2552
  // src/components/style-sections/border-section/border-section.tsx
2275
- var BorderSection = () => /* @__PURE__ */ React32.createElement(SectionContent, null, /* @__PURE__ */ React32.createElement(BorderRadiusField, null), /* @__PURE__ */ React32.createElement(PanelDivider, null), /* @__PURE__ */ React32.createElement(BorderField, null));
2553
+ var BorderSection = () => /* @__PURE__ */ React37.createElement(SectionContent, null, /* @__PURE__ */ React37.createElement(BorderRadiusField, null), /* @__PURE__ */ React37.createElement(PanelDivider, null), /* @__PURE__ */ React37.createElement(BorderField, null));
2276
2554
 
2277
2555
  // src/components/style-sections/effects-section/effects-section.tsx
2278
- var React33 = __toESM(require("react"));
2556
+ var React38 = __toESM(require("react"));
2279
2557
  var import_editor_controls13 = require("@elementor/editor-controls");
2280
2558
  var EffectsSection = () => {
2281
- return /* @__PURE__ */ React33.createElement(SectionContent, null, /* @__PURE__ */ React33.createElement(StylesField, { bind: "box-shadow" }, /* @__PURE__ */ React33.createElement(import_editor_controls13.BoxShadowRepeaterControl, null)));
2559
+ return /* @__PURE__ */ React38.createElement(SectionContent, null, /* @__PURE__ */ React38.createElement(StylesField, { bind: "box-shadow" }, /* @__PURE__ */ React38.createElement(import_editor_controls13.BoxShadowRepeaterControl, null)));
2282
2560
  };
2283
2561
 
2284
2562
  // src/components/style-sections/layout-section/layout-section.tsx
2285
- var React45 = __toESM(require("react"));
2563
+ var React50 = __toESM(require("react"));
2286
2564
  var import_editor_controls24 = require("@elementor/editor-controls");
2287
2565
  var import_editor_elements7 = require("@elementor/editor-elements");
2288
- var import_i18n22 = require("@wordpress/i18n");
2566
+ var import_i18n25 = require("@wordpress/i18n");
2289
2567
 
2290
2568
  // src/hooks/use-computed-style.ts
2291
- var import_editor_v1_adapters6 = require("@elementor/editor-v1-adapters");
2569
+ var import_editor_v1_adapters7 = require("@elementor/editor-v1-adapters");
2292
2570
  function useComputedStyle(elementId) {
2293
- return (0, import_editor_v1_adapters6.__privateUseListenTo)(
2571
+ return (0, import_editor_v1_adapters7.__privateUseListenTo)(
2294
2572
  [
2295
- (0, import_editor_v1_adapters6.windowEvent)("elementor/device-mode/change"),
2296
- (0, import_editor_v1_adapters6.commandEndEvent)("document/elements/reset-style"),
2297
- (0, import_editor_v1_adapters6.commandEndEvent)("document/elements/settings"),
2298
- (0, import_editor_v1_adapters6.commandEndEvent)("document/elements/paste-style")
2573
+ (0, import_editor_v1_adapters7.windowEvent)("elementor/device-mode/change"),
2574
+ (0, import_editor_v1_adapters7.commandEndEvent)("document/elements/reset-style"),
2575
+ (0, import_editor_v1_adapters7.commandEndEvent)("document/elements/settings"),
2576
+ (0, import_editor_v1_adapters7.commandEndEvent)("document/elements/paste-style")
2299
2577
  ],
2300
2578
  () => {
2301
2579
  if (!elementId) {
@@ -2313,16 +2591,16 @@ function useComputedStyle(elementId) {
2313
2591
  }
2314
2592
 
2315
2593
  // src/components/style-sections/layout-section/align-content-field.tsx
2316
- var React35 = __toESM(require("react"));
2594
+ var React40 = __toESM(require("react"));
2317
2595
  var import_editor_controls14 = require("@elementor/editor-controls");
2318
- var import_icons8 = require("@elementor/icons");
2319
- var import_ui27 = require("@elementor/ui");
2320
- var import_i18n12 = require("@wordpress/i18n");
2596
+ var import_icons10 = require("@elementor/icons");
2597
+ var import_ui32 = require("@elementor/ui");
2598
+ var import_i18n15 = require("@wordpress/i18n");
2321
2599
 
2322
2600
  // src/components/style-sections/layout-section/utils/rotated-icon.tsx
2323
- var React34 = __toESM(require("react"));
2601
+ var React39 = __toESM(require("react"));
2324
2602
  var import_react22 = require("react");
2325
- var import_ui26 = require("@elementor/ui");
2603
+ var import_ui31 = require("@elementor/ui");
2326
2604
  var CLOCKWISE_ANGLES = {
2327
2605
  row: 0,
2328
2606
  column: 90,
@@ -2344,11 +2622,11 @@ var RotatedIcon = ({
2344
2622
  }) => {
2345
2623
  const rotate = (0, import_react22.useRef)(useGetTargetAngle(isClockwise, offset, disableRotationForReversed));
2346
2624
  rotate.current = useGetTargetAngle(isClockwise, offset, disableRotationForReversed, rotate);
2347
- return /* @__PURE__ */ React34.createElement(Icon, { fontSize: size, sx: { transition: ".3s", rotate: `${rotate.current}deg` } });
2625
+ return /* @__PURE__ */ React39.createElement(Icon, { fontSize: size, sx: { transition: ".3s", rotate: `${rotate.current}deg` } });
2348
2626
  };
2349
2627
  var useGetTargetAngle = (isClockwise, offset, disableRotationForReversed, existingRef) => {
2350
2628
  const [direction] = useStylesField("flex-direction");
2351
- const isRtl = "rtl" === (0, import_ui26.useTheme)().direction;
2629
+ const isRtl = "rtl" === (0, import_ui31.useTheme)().direction;
2352
2630
  const rotationMultiplier = isRtl ? -1 : 1;
2353
2631
  const angleMap = isClockwise ? CLOCKWISE_ANGLES : COUNTER_CLOCKWISE_ANGLES;
2354
2632
  const currentDirection = direction?.value || "row";
@@ -2363,8 +2641,8 @@ var useGetTargetAngle = (isClockwise, offset, disableRotationForReversed, existi
2363
2641
  };
2364
2642
 
2365
2643
  // src/components/style-sections/layout-section/align-content-field.tsx
2366
- var StartIcon = (0, import_ui27.withDirection)(import_icons8.JustifyTopIcon);
2367
- var EndIcon = (0, import_ui27.withDirection)(import_icons8.JustifyBottomIcon);
2644
+ var StartIcon = (0, import_ui32.withDirection)(import_icons10.JustifyTopIcon);
2645
+ var EndIcon = (0, import_ui32.withDirection)(import_icons10.JustifyBottomIcon);
2368
2646
  var iconProps = {
2369
2647
  isClockwise: false,
2370
2648
  offset: 0,
@@ -2373,54 +2651,54 @@ var iconProps = {
2373
2651
  var options = [
2374
2652
  {
2375
2653
  value: "start",
2376
- label: (0, import_i18n12.__)("Start", "elementor"),
2377
- renderContent: ({ size }) => /* @__PURE__ */ React35.createElement(RotatedIcon, { icon: StartIcon, size, ...iconProps }),
2654
+ label: (0, import_i18n15.__)("Start", "elementor"),
2655
+ renderContent: ({ size }) => /* @__PURE__ */ React40.createElement(RotatedIcon, { icon: StartIcon, size, ...iconProps }),
2378
2656
  showTooltip: true
2379
2657
  },
2380
2658
  {
2381
2659
  value: "center",
2382
- label: (0, import_i18n12.__)("Center", "elementor"),
2383
- renderContent: ({ size }) => /* @__PURE__ */ React35.createElement(RotatedIcon, { icon: import_icons8.JustifyCenterIcon, size, ...iconProps }),
2660
+ label: (0, import_i18n15.__)("Center", "elementor"),
2661
+ renderContent: ({ size }) => /* @__PURE__ */ React40.createElement(RotatedIcon, { icon: import_icons10.JustifyCenterIcon, size, ...iconProps }),
2384
2662
  showTooltip: true
2385
2663
  },
2386
2664
  {
2387
2665
  value: "end",
2388
- label: (0, import_i18n12.__)("End", "elementor"),
2389
- renderContent: ({ size }) => /* @__PURE__ */ React35.createElement(RotatedIcon, { icon: EndIcon, size, ...iconProps }),
2666
+ label: (0, import_i18n15.__)("End", "elementor"),
2667
+ renderContent: ({ size }) => /* @__PURE__ */ React40.createElement(RotatedIcon, { icon: EndIcon, size, ...iconProps }),
2390
2668
  showTooltip: true
2391
2669
  },
2392
2670
  {
2393
2671
  value: "space-between",
2394
- label: (0, import_i18n12.__)("Space between", "elementor"),
2395
- renderContent: ({ size }) => /* @__PURE__ */ React35.createElement(RotatedIcon, { icon: import_icons8.JustifySpaceBetweenVerticalIcon, size, ...iconProps }),
2672
+ label: (0, import_i18n15.__)("Space between", "elementor"),
2673
+ renderContent: ({ size }) => /* @__PURE__ */ React40.createElement(RotatedIcon, { icon: import_icons10.JustifySpaceBetweenVerticalIcon, size, ...iconProps }),
2396
2674
  showTooltip: true
2397
2675
  },
2398
2676
  {
2399
2677
  value: "space-around",
2400
- label: (0, import_i18n12.__)("Space around", "elementor"),
2401
- renderContent: ({ size }) => /* @__PURE__ */ React35.createElement(RotatedIcon, { icon: import_icons8.JustifySpaceAroundVerticalIcon, size, ...iconProps }),
2678
+ label: (0, import_i18n15.__)("Space around", "elementor"),
2679
+ renderContent: ({ size }) => /* @__PURE__ */ React40.createElement(RotatedIcon, { icon: import_icons10.JustifySpaceAroundVerticalIcon, size, ...iconProps }),
2402
2680
  showTooltip: true
2403
2681
  },
2404
2682
  {
2405
2683
  value: "space-evenly",
2406
- label: (0, import_i18n12.__)("Space evenly", "elementor"),
2407
- renderContent: ({ size }) => /* @__PURE__ */ React35.createElement(RotatedIcon, { icon: import_icons8.JustifyDistributeVerticalIcon, size, ...iconProps }),
2684
+ label: (0, import_i18n15.__)("Space evenly", "elementor"),
2685
+ renderContent: ({ size }) => /* @__PURE__ */ React40.createElement(RotatedIcon, { icon: import_icons10.JustifyDistributeVerticalIcon, size, ...iconProps }),
2408
2686
  showTooltip: true
2409
2687
  }
2410
2688
  ];
2411
2689
  var AlignContentField = () => {
2412
2690
  const { isSiteRtl } = useDirection();
2413
- return /* @__PURE__ */ React35.createElement(import_ui27.DirectionProvider, { rtl: isSiteRtl }, /* @__PURE__ */ React35.createElement(import_ui27.ThemeProvider, null, /* @__PURE__ */ React35.createElement(StylesField, { bind: "align-content" }, /* @__PURE__ */ React35.createElement(import_ui27.Stack, { gap: 1 }, /* @__PURE__ */ React35.createElement(ControlLabel, null, (0, import_i18n12.__)("Align content", "elementor")), /* @__PURE__ */ React35.createElement(import_editor_controls14.ToggleControl, { options, fullWidth: true })))));
2691
+ return /* @__PURE__ */ React40.createElement(import_ui32.DirectionProvider, { rtl: isSiteRtl }, /* @__PURE__ */ React40.createElement(import_ui32.ThemeProvider, null, /* @__PURE__ */ React40.createElement(StylesField, { bind: "align-content" }, /* @__PURE__ */ React40.createElement(import_ui32.Stack, { gap: 1 }, /* @__PURE__ */ React40.createElement(ControlLabel, null, (0, import_i18n15.__)("Align content", "elementor")), /* @__PURE__ */ React40.createElement(import_editor_controls14.ToggleControl, { options, fullWidth: true })))));
2414
2692
  };
2415
2693
 
2416
2694
  // src/components/style-sections/layout-section/align-items-field.tsx
2417
- var React36 = __toESM(require("react"));
2695
+ var React41 = __toESM(require("react"));
2418
2696
  var import_editor_controls15 = require("@elementor/editor-controls");
2419
- var import_icons9 = require("@elementor/icons");
2420
- var import_ui28 = require("@elementor/ui");
2421
- var import_i18n13 = require("@wordpress/i18n");
2422
- var StartIcon2 = (0, import_ui28.withDirection)(import_icons9.LayoutAlignLeftIcon);
2423
- var EndIcon2 = (0, import_ui28.withDirection)(import_icons9.LayoutAlignRightIcon);
2697
+ var import_icons11 = require("@elementor/icons");
2698
+ var import_ui33 = require("@elementor/ui");
2699
+ var import_i18n16 = require("@wordpress/i18n");
2700
+ var StartIcon2 = (0, import_ui33.withDirection)(import_icons11.LayoutAlignLeftIcon);
2701
+ var EndIcon2 = (0, import_ui33.withDirection)(import_icons11.LayoutAlignRightIcon);
2424
2702
  var iconProps2 = {
2425
2703
  isClockwise: false,
2426
2704
  offset: 90
@@ -2428,56 +2706,56 @@ var iconProps2 = {
2428
2706
  var options2 = [
2429
2707
  {
2430
2708
  value: "start",
2431
- label: (0, import_i18n13.__)("Start", "elementor"),
2432
- renderContent: ({ size }) => /* @__PURE__ */ React36.createElement(RotatedIcon, { icon: StartIcon2, size, ...iconProps2 }),
2709
+ label: (0, import_i18n16.__)("Start", "elementor"),
2710
+ renderContent: ({ size }) => /* @__PURE__ */ React41.createElement(RotatedIcon, { icon: StartIcon2, size, ...iconProps2 }),
2433
2711
  showTooltip: true
2434
2712
  },
2435
2713
  {
2436
2714
  value: "center",
2437
- label: (0, import_i18n13.__)("Center", "elementor"),
2438
- renderContent: ({ size }) => /* @__PURE__ */ React36.createElement(RotatedIcon, { icon: import_icons9.LayoutAlignCenterIcon, size, ...iconProps2 }),
2715
+ label: (0, import_i18n16.__)("Center", "elementor"),
2716
+ renderContent: ({ size }) => /* @__PURE__ */ React41.createElement(RotatedIcon, { icon: import_icons11.LayoutAlignCenterIcon, size, ...iconProps2 }),
2439
2717
  showTooltip: true
2440
2718
  },
2441
2719
  {
2442
2720
  value: "end",
2443
- label: (0, import_i18n13.__)("End", "elementor"),
2444
- renderContent: ({ size }) => /* @__PURE__ */ React36.createElement(RotatedIcon, { icon: EndIcon2, size, ...iconProps2 }),
2721
+ label: (0, import_i18n16.__)("End", "elementor"),
2722
+ renderContent: ({ size }) => /* @__PURE__ */ React41.createElement(RotatedIcon, { icon: EndIcon2, size, ...iconProps2 }),
2445
2723
  showTooltip: true
2446
2724
  },
2447
2725
  {
2448
2726
  value: "stretch",
2449
- label: (0, import_i18n13.__)("Stretch", "elementor"),
2450
- renderContent: ({ size }) => /* @__PURE__ */ React36.createElement(RotatedIcon, { icon: import_icons9.LayoutDistributeVerticalIcon, size, ...iconProps2 }),
2727
+ label: (0, import_i18n16.__)("Stretch", "elementor"),
2728
+ renderContent: ({ size }) => /* @__PURE__ */ React41.createElement(RotatedIcon, { icon: import_icons11.LayoutDistributeVerticalIcon, size, ...iconProps2 }),
2451
2729
  showTooltip: true
2452
2730
  }
2453
2731
  ];
2454
2732
  var AlignItemsField = () => {
2455
2733
  const { isSiteRtl } = useDirection();
2456
- return /* @__PURE__ */ React36.createElement(import_ui28.DirectionProvider, { rtl: isSiteRtl }, /* @__PURE__ */ React36.createElement(import_ui28.ThemeProvider, null, /* @__PURE__ */ React36.createElement(StylesField, { bind: "align-items" }, /* @__PURE__ */ React36.createElement(import_ui28.Grid, { container: true, gap: 2, alignItems: "center", flexWrap: "nowrap" }, /* @__PURE__ */ React36.createElement(import_ui28.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React36.createElement(ControlLabel, null, (0, import_i18n13.__)("Align items", "elementor"))), /* @__PURE__ */ React36.createElement(import_ui28.Grid, { item: true, xs: 6, sx: { display: "flex", justifyContent: "end" } }, /* @__PURE__ */ React36.createElement(import_editor_controls15.ToggleControl, { options: options2 }))))));
2734
+ return /* @__PURE__ */ React41.createElement(import_ui33.DirectionProvider, { rtl: isSiteRtl }, /* @__PURE__ */ React41.createElement(import_ui33.ThemeProvider, null, /* @__PURE__ */ React41.createElement(StylesField, { bind: "align-items" }, /* @__PURE__ */ React41.createElement(import_ui33.Grid, { container: true, gap: 2, alignItems: "center", flexWrap: "nowrap" }, /* @__PURE__ */ React41.createElement(import_ui33.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React41.createElement(ControlLabel, null, (0, import_i18n16.__)("Align items", "elementor"))), /* @__PURE__ */ React41.createElement(import_ui33.Grid, { item: true, xs: 6, sx: { display: "flex", justifyContent: "end" } }, /* @__PURE__ */ React41.createElement(import_editor_controls15.ToggleControl, { options: options2 }))))));
2457
2735
  };
2458
2736
 
2459
2737
  // src/components/style-sections/layout-section/align-self-child-field.tsx
2460
- var React37 = __toESM(require("react"));
2738
+ var React42 = __toESM(require("react"));
2461
2739
  var import_editor_controls16 = require("@elementor/editor-controls");
2462
- var import_icons10 = require("@elementor/icons");
2463
- var import_ui29 = require("@elementor/ui");
2464
- var import_i18n14 = require("@wordpress/i18n");
2740
+ var import_icons12 = require("@elementor/icons");
2741
+ var import_ui34 = require("@elementor/ui");
2742
+ var import_i18n17 = require("@wordpress/i18n");
2465
2743
  var ALIGN_SELF_CHILD_OFFSET_MAP = {
2466
2744
  row: 90,
2467
2745
  "row-reverse": 90,
2468
2746
  column: 0,
2469
2747
  "column-reverse": 0
2470
2748
  };
2471
- var StartIcon3 = (0, import_ui29.withDirection)(import_icons10.LayoutAlignLeftIcon);
2472
- var EndIcon3 = (0, import_ui29.withDirection)(import_icons10.LayoutAlignRightIcon);
2749
+ var StartIcon3 = (0, import_ui34.withDirection)(import_icons12.LayoutAlignLeftIcon);
2750
+ var EndIcon3 = (0, import_ui34.withDirection)(import_icons12.LayoutAlignRightIcon);
2473
2751
  var iconProps3 = {
2474
2752
  isClockwise: false
2475
2753
  };
2476
2754
  var getOptions = (parentStyleDirection) => [
2477
2755
  {
2478
2756
  value: "start",
2479
- label: (0, import_i18n14.__)("Start", "elementor"),
2480
- renderContent: ({ size }) => /* @__PURE__ */ React37.createElement(
2757
+ label: (0, import_i18n17.__)("Start", "elementor"),
2758
+ renderContent: ({ size }) => /* @__PURE__ */ React42.createElement(
2481
2759
  RotatedIcon,
2482
2760
  {
2483
2761
  icon: StartIcon3,
@@ -2490,11 +2768,11 @@ var getOptions = (parentStyleDirection) => [
2490
2768
  },
2491
2769
  {
2492
2770
  value: "center",
2493
- label: (0, import_i18n14.__)("Center", "elementor"),
2494
- renderContent: ({ size }) => /* @__PURE__ */ React37.createElement(
2771
+ label: (0, import_i18n17.__)("Center", "elementor"),
2772
+ renderContent: ({ size }) => /* @__PURE__ */ React42.createElement(
2495
2773
  RotatedIcon,
2496
2774
  {
2497
- icon: import_icons10.LayoutAlignCenterIcon,
2775
+ icon: import_icons12.LayoutAlignCenterIcon,
2498
2776
  size,
2499
2777
  offset: ALIGN_SELF_CHILD_OFFSET_MAP[parentStyleDirection],
2500
2778
  ...iconProps3
@@ -2504,8 +2782,8 @@ var getOptions = (parentStyleDirection) => [
2504
2782
  },
2505
2783
  {
2506
2784
  value: "end",
2507
- label: (0, import_i18n14.__)("End", "elementor"),
2508
- renderContent: ({ size }) => /* @__PURE__ */ React37.createElement(
2785
+ label: (0, import_i18n17.__)("End", "elementor"),
2786
+ renderContent: ({ size }) => /* @__PURE__ */ React42.createElement(
2509
2787
  RotatedIcon,
2510
2788
  {
2511
2789
  icon: EndIcon3,
@@ -2518,11 +2796,11 @@ var getOptions = (parentStyleDirection) => [
2518
2796
  },
2519
2797
  {
2520
2798
  value: "stretch",
2521
- label: (0, import_i18n14.__)("Stretch", "elementor"),
2522
- renderContent: ({ size }) => /* @__PURE__ */ React37.createElement(
2799
+ label: (0, import_i18n17.__)("Stretch", "elementor"),
2800
+ renderContent: ({ size }) => /* @__PURE__ */ React42.createElement(
2523
2801
  RotatedIcon,
2524
2802
  {
2525
- icon: import_icons10.LayoutDistributeVerticalIcon,
2803
+ icon: import_icons12.LayoutDistributeVerticalIcon,
2526
2804
  size,
2527
2805
  offset: ALIGN_SELF_CHILD_OFFSET_MAP[parentStyleDirection],
2528
2806
  ...iconProps3
@@ -2533,107 +2811,107 @@ var getOptions = (parentStyleDirection) => [
2533
2811
  ];
2534
2812
  var AlignSelfChild = ({ parentStyleDirection }) => {
2535
2813
  const { isSiteRtl } = useDirection();
2536
- return /* @__PURE__ */ React37.createElement(import_ui29.DirectionProvider, { rtl: isSiteRtl }, /* @__PURE__ */ React37.createElement(import_ui29.ThemeProvider, null, /* @__PURE__ */ React37.createElement(StylesField, { bind: "align-self" }, /* @__PURE__ */ React37.createElement(import_ui29.Grid, { container: true, gap: 2, alignItems: "center", flexWrap: "nowrap" }, /* @__PURE__ */ React37.createElement(import_ui29.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React37.createElement(ControlLabel, null, (0, import_i18n14.__)("Align self", "elementor"))), /* @__PURE__ */ React37.createElement(import_ui29.Grid, { item: true, xs: 6, sx: { display: "flex", justifyContent: "flex-end" } }, /* @__PURE__ */ React37.createElement(import_editor_controls16.ToggleControl, { options: getOptions(parentStyleDirection) }))))));
2814
+ return /* @__PURE__ */ React42.createElement(import_ui34.DirectionProvider, { rtl: isSiteRtl }, /* @__PURE__ */ React42.createElement(import_ui34.ThemeProvider, null, /* @__PURE__ */ React42.createElement(StylesField, { bind: "align-self" }, /* @__PURE__ */ React42.createElement(import_ui34.Grid, { container: true, gap: 2, alignItems: "center", flexWrap: "nowrap" }, /* @__PURE__ */ React42.createElement(import_ui34.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React42.createElement(ControlLabel, null, (0, import_i18n17.__)("Align self", "elementor"))), /* @__PURE__ */ React42.createElement(import_ui34.Grid, { item: true, xs: 6, sx: { display: "flex", justifyContent: "flex-end" } }, /* @__PURE__ */ React42.createElement(import_editor_controls16.ToggleControl, { options: getOptions(parentStyleDirection) }))))));
2537
2815
  };
2538
2816
 
2539
2817
  // src/components/style-sections/layout-section/display-field.tsx
2540
- var React38 = __toESM(require("react"));
2818
+ var React43 = __toESM(require("react"));
2541
2819
  var import_editor_controls17 = require("@elementor/editor-controls");
2542
- var import_editor_v1_adapters7 = require("@elementor/editor-v1-adapters");
2543
- var import_ui30 = require("@elementor/ui");
2544
- var import_i18n15 = require("@wordpress/i18n");
2820
+ var import_editor_v1_adapters8 = require("@elementor/editor-v1-adapters");
2821
+ var import_ui35 = require("@elementor/ui");
2822
+ var import_i18n18 = require("@wordpress/i18n");
2545
2823
  var displayFieldItems = [
2546
2824
  {
2547
2825
  value: "block",
2548
- renderContent: () => (0, import_i18n15.__)("Block", "elementor"),
2549
- label: (0, import_i18n15.__)("Block", "elementor"),
2826
+ renderContent: () => (0, import_i18n18.__)("Block", "elementor"),
2827
+ label: (0, import_i18n18.__)("Block", "elementor"),
2550
2828
  showTooltip: true
2551
2829
  },
2552
2830
  {
2553
2831
  value: "flex",
2554
- renderContent: () => (0, import_i18n15.__)("Flex", "elementor"),
2555
- label: (0, import_i18n15.__)("Flex", "elementor"),
2832
+ renderContent: () => (0, import_i18n18.__)("Flex", "elementor"),
2833
+ label: (0, import_i18n18.__)("Flex", "elementor"),
2556
2834
  showTooltip: true
2557
2835
  },
2558
2836
  {
2559
2837
  value: "inline-block",
2560
- renderContent: () => (0, import_i18n15.__)("In-blk", "elementor"),
2561
- label: (0, import_i18n15.__)("Inline-block", "elementor"),
2838
+ renderContent: () => (0, import_i18n18.__)("In-blk", "elementor"),
2839
+ label: (0, import_i18n18.__)("Inline-block", "elementor"),
2562
2840
  showTooltip: true
2563
2841
  }
2564
2842
  ];
2565
2843
  var DisplayField = () => {
2566
- const isDisplayNoneFeatureActive = (0, import_editor_v1_adapters7.isExperimentActive)("e_v_3_30");
2844
+ const isDisplayNoneFeatureActive = (0, import_editor_v1_adapters8.isExperimentActive)(EXPERIMENTAL_FEATURES.V_3_30);
2567
2845
  const items3 = [...displayFieldItems];
2568
2846
  if (isDisplayNoneFeatureActive) {
2569
2847
  items3.push({
2570
2848
  value: "none",
2571
- renderContent: () => (0, import_i18n15.__)("None", "elementor"),
2572
- label: (0, import_i18n15.__)("None", "elementor"),
2849
+ renderContent: () => (0, import_i18n18.__)("None", "elementor"),
2850
+ label: (0, import_i18n18.__)("None", "elementor"),
2573
2851
  showTooltip: true
2574
2852
  });
2575
2853
  }
2576
2854
  items3.push({
2577
2855
  value: "inline-flex",
2578
- renderContent: () => (0, import_i18n15.__)("In-flx", "elementor"),
2579
- label: (0, import_i18n15.__)("Inline-flex", "elementor"),
2856
+ renderContent: () => (0, import_i18n18.__)("In-flx", "elementor"),
2857
+ label: (0, import_i18n18.__)("Inline-flex", "elementor"),
2580
2858
  showTooltip: true
2581
2859
  });
2582
2860
  const placeholder = useDisplayPlaceholderValue();
2583
- return /* @__PURE__ */ React38.createElement(StylesField, { bind: "display", placeholder }, /* @__PURE__ */ React38.createElement(import_ui30.Stack, { gap: 0.75 }, /* @__PURE__ */ React38.createElement(ControlLabel, null, (0, import_i18n15.__)("Display", "elementor")), /* @__PURE__ */ React38.createElement(import_editor_controls17.ToggleControl, { options: items3, maxItems: 4, fullWidth: true })));
2861
+ return /* @__PURE__ */ React43.createElement(StylesField, { bind: "display", placeholder }, /* @__PURE__ */ React43.createElement(import_ui35.Stack, { gap: 0.75 }, /* @__PURE__ */ React43.createElement(ControlLabel, null, (0, import_i18n18.__)("Display", "elementor")), /* @__PURE__ */ React43.createElement(import_editor_controls17.ToggleControl, { options: items3, maxItems: 4, fullWidth: true })));
2584
2862
  };
2585
2863
  var useDisplayPlaceholderValue = () => useStylesInheritanceChain(["display"])[0]?.value ?? void 0;
2586
2864
 
2587
2865
  // src/components/style-sections/layout-section/flex-direction-field.tsx
2588
- var React39 = __toESM(require("react"));
2866
+ var React44 = __toESM(require("react"));
2589
2867
  var import_editor_controls18 = require("@elementor/editor-controls");
2590
- var import_icons11 = require("@elementor/icons");
2591
- var import_ui31 = require("@elementor/ui");
2592
- var import_i18n16 = require("@wordpress/i18n");
2868
+ var import_icons13 = require("@elementor/icons");
2869
+ var import_ui36 = require("@elementor/ui");
2870
+ var import_i18n19 = require("@wordpress/i18n");
2593
2871
  var options3 = [
2594
2872
  {
2595
2873
  value: "row",
2596
- label: (0, import_i18n16.__)("Row", "elementor"),
2874
+ label: (0, import_i18n19.__)("Row", "elementor"),
2597
2875
  renderContent: ({ size }) => {
2598
- const StartIcon5 = (0, import_ui31.withDirection)(import_icons11.ArrowRightIcon);
2599
- return /* @__PURE__ */ React39.createElement(StartIcon5, { fontSize: size });
2876
+ const StartIcon5 = (0, import_ui36.withDirection)(import_icons13.ArrowRightIcon);
2877
+ return /* @__PURE__ */ React44.createElement(StartIcon5, { fontSize: size });
2600
2878
  },
2601
2879
  showTooltip: true
2602
2880
  },
2603
2881
  {
2604
2882
  value: "column",
2605
- label: (0, import_i18n16.__)("Column", "elementor"),
2606
- renderContent: ({ size }) => /* @__PURE__ */ React39.createElement(import_icons11.ArrowDownSmallIcon, { fontSize: size }),
2883
+ label: (0, import_i18n19.__)("Column", "elementor"),
2884
+ renderContent: ({ size }) => /* @__PURE__ */ React44.createElement(import_icons13.ArrowDownSmallIcon, { fontSize: size }),
2607
2885
  showTooltip: true
2608
2886
  },
2609
2887
  {
2610
2888
  value: "row-reverse",
2611
- label: (0, import_i18n16.__)("Reversed row", "elementor"),
2889
+ label: (0, import_i18n19.__)("Reversed row", "elementor"),
2612
2890
  renderContent: ({ size }) => {
2613
- const EndIcon5 = (0, import_ui31.withDirection)(import_icons11.ArrowLeftIcon);
2614
- return /* @__PURE__ */ React39.createElement(EndIcon5, { fontSize: size });
2891
+ const EndIcon5 = (0, import_ui36.withDirection)(import_icons13.ArrowLeftIcon);
2892
+ return /* @__PURE__ */ React44.createElement(EndIcon5, { fontSize: size });
2615
2893
  },
2616
2894
  showTooltip: true
2617
2895
  },
2618
2896
  {
2619
2897
  value: "column-reverse",
2620
- label: (0, import_i18n16.__)("Reversed column", "elementor"),
2621
- renderContent: ({ size }) => /* @__PURE__ */ React39.createElement(import_icons11.ArrowUpSmallIcon, { fontSize: size }),
2898
+ label: (0, import_i18n19.__)("Reversed column", "elementor"),
2899
+ renderContent: ({ size }) => /* @__PURE__ */ React44.createElement(import_icons13.ArrowUpSmallIcon, { fontSize: size }),
2622
2900
  showTooltip: true
2623
2901
  }
2624
2902
  ];
2625
2903
  var FlexDirectionField = () => {
2626
2904
  const { isSiteRtl } = useDirection();
2627
- return /* @__PURE__ */ React39.createElement(import_ui31.DirectionProvider, { rtl: isSiteRtl }, /* @__PURE__ */ React39.createElement(import_ui31.ThemeProvider, null, /* @__PURE__ */ React39.createElement(StylesField, { bind: "flex-direction" }, /* @__PURE__ */ React39.createElement(import_ui31.Grid, { container: true, gap: 2, alignItems: "center", flexWrap: "nowrap" }, /* @__PURE__ */ React39.createElement(import_ui31.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React39.createElement(ControlLabel, null, (0, import_i18n16.__)("Direction", "elementor"))), /* @__PURE__ */ React39.createElement(import_ui31.Grid, { item: true, xs: 6, sx: { display: "flex", justifyContent: "end" } }, /* @__PURE__ */ React39.createElement(import_editor_controls18.ToggleControl, { options: options3 }))))));
2905
+ return /* @__PURE__ */ React44.createElement(import_ui36.DirectionProvider, { rtl: isSiteRtl }, /* @__PURE__ */ React44.createElement(import_ui36.ThemeProvider, null, /* @__PURE__ */ React44.createElement(StylesField, { bind: "flex-direction" }, /* @__PURE__ */ React44.createElement(import_ui36.Grid, { container: true, gap: 2, alignItems: "center", flexWrap: "nowrap" }, /* @__PURE__ */ React44.createElement(import_ui36.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React44.createElement(ControlLabel, null, (0, import_i18n19.__)("Direction", "elementor"))), /* @__PURE__ */ React44.createElement(import_ui36.Grid, { item: true, xs: 6, sx: { display: "flex", justifyContent: "end" } }, /* @__PURE__ */ React44.createElement(import_editor_controls18.ToggleControl, { options: options3 }))))));
2628
2906
  };
2629
2907
 
2630
2908
  // src/components/style-sections/layout-section/flex-order-field.tsx
2631
- var React40 = __toESM(require("react"));
2909
+ var React45 = __toESM(require("react"));
2632
2910
  var import_react23 = require("react");
2633
2911
  var import_editor_controls19 = require("@elementor/editor-controls");
2634
- var import_icons12 = require("@elementor/icons");
2635
- var import_ui32 = require("@elementor/ui");
2636
- var import_i18n17 = require("@wordpress/i18n");
2912
+ var import_icons14 = require("@elementor/icons");
2913
+ var import_ui37 = require("@elementor/ui");
2914
+ var import_i18n20 = require("@wordpress/i18n");
2637
2915
  var FIRST_DEFAULT_VALUE = -99999;
2638
2916
  var LAST_DEFAULT_VALUE = 99999;
2639
2917
  var FIRST = "first";
@@ -2646,25 +2924,27 @@ var orderValueMap = {
2646
2924
  var items = [
2647
2925
  {
2648
2926
  value: FIRST,
2649
- label: (0, import_i18n17.__)("First", "elementor"),
2650
- renderContent: ({ size }) => /* @__PURE__ */ React40.createElement(import_icons12.ArrowUpSmallIcon, { fontSize: size }),
2927
+ label: (0, import_i18n20.__)("First", "elementor"),
2928
+ renderContent: ({ size }) => /* @__PURE__ */ React45.createElement(import_icons14.ArrowUpSmallIcon, { fontSize: size }),
2651
2929
  showTooltip: true
2652
2930
  },
2653
2931
  {
2654
2932
  value: LAST,
2655
- label: (0, import_i18n17.__)("Last", "elementor"),
2656
- renderContent: ({ size }) => /* @__PURE__ */ React40.createElement(import_icons12.ArrowDownSmallIcon, { fontSize: size }),
2933
+ label: (0, import_i18n20.__)("Last", "elementor"),
2934
+ renderContent: ({ size }) => /* @__PURE__ */ React45.createElement(import_icons14.ArrowDownSmallIcon, { fontSize: size }),
2657
2935
  showTooltip: true
2658
2936
  },
2659
2937
  {
2660
2938
  value: CUSTOM,
2661
- label: (0, import_i18n17.__)("Custom", "elementor"),
2662
- renderContent: ({ size }) => /* @__PURE__ */ React40.createElement(import_icons12.PencilIcon, { fontSize: size }),
2939
+ label: (0, import_i18n20.__)("Custom", "elementor"),
2940
+ renderContent: ({ size }) => /* @__PURE__ */ React45.createElement(import_icons14.PencilIcon, { fontSize: size }),
2663
2941
  showTooltip: true
2664
2942
  }
2665
2943
  ];
2666
2944
  var FlexOrderField = () => {
2667
- const { isSiteRtl } = useDirection(), [order, setOrder] = useStylesField("order");
2945
+ const { isSiteRtl } = useDirection();
2946
+ const [order, setOrder] = useStylesField("order");
2947
+ const { canEdit } = useStyle();
2668
2948
  const [groupControlValue, setGroupControlValue] = (0, import_react23.useState)(getGroupControlValue(order?.value || null));
2669
2949
  const handleToggleButtonChange = (group) => {
2670
2950
  setGroupControlValue(group);
@@ -2674,15 +2954,16 @@ var FlexOrderField = () => {
2674
2954
  }
2675
2955
  setOrder({ $$type: "number", value: orderValueMap[group] });
2676
2956
  };
2677
- return /* @__PURE__ */ React40.createElement(import_ui32.DirectionProvider, { rtl: isSiteRtl }, /* @__PURE__ */ React40.createElement(import_ui32.ThemeProvider, null, /* @__PURE__ */ React40.createElement(StylesField, { bind: "order" }, /* @__PURE__ */ React40.createElement(SectionContent, null, /* @__PURE__ */ React40.createElement(import_ui32.Grid, { container: true, gap: 2, alignItems: "center", flexWrap: "nowrap" }, /* @__PURE__ */ React40.createElement(import_ui32.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React40.createElement(ControlLabel, null, (0, import_i18n17.__)("Order", "elementor"))), /* @__PURE__ */ React40.createElement(import_ui32.Grid, { item: true, xs: 6, sx: { display: "flex", justifyContent: "end" } }, /* @__PURE__ */ React40.createElement(
2957
+ return /* @__PURE__ */ React45.createElement(import_ui37.DirectionProvider, { rtl: isSiteRtl }, /* @__PURE__ */ React45.createElement(import_ui37.ThemeProvider, null, /* @__PURE__ */ React45.createElement(StylesField, { bind: "order" }, /* @__PURE__ */ React45.createElement(SectionContent, null, /* @__PURE__ */ React45.createElement(import_ui37.Grid, { container: true, gap: 2, alignItems: "center", flexWrap: "nowrap" }, /* @__PURE__ */ React45.createElement(import_ui37.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React45.createElement(ControlLabel, null, (0, import_i18n20.__)("Order", "elementor"))), /* @__PURE__ */ React45.createElement(import_ui37.Grid, { item: true, xs: 6, sx: { display: "flex", justifyContent: "end" } }, /* @__PURE__ */ React45.createElement(
2678
2958
  import_editor_controls19.ControlToggleButtonGroup,
2679
2959
  {
2680
2960
  items,
2681
2961
  value: groupControlValue,
2682
2962
  onChange: handleToggleButtonChange,
2683
- exclusive: true
2963
+ exclusive: true,
2964
+ disabled: !canEdit
2684
2965
  }
2685
- ))), CUSTOM === groupControlValue && /* @__PURE__ */ React40.createElement(import_ui32.Grid, { container: true, gap: 2, alignItems: "center", flexWrap: "nowrap" }, /* @__PURE__ */ React40.createElement(import_ui32.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React40.createElement(ControlLabel, null, (0, import_i18n17.__)("Custom order", "elementor"))), /* @__PURE__ */ React40.createElement(import_ui32.Grid, { item: true, xs: 6, sx: { display: "flex", justifyContent: "end" } }, /* @__PURE__ */ React40.createElement(
2966
+ ))), CUSTOM === groupControlValue && /* @__PURE__ */ React45.createElement(import_ui37.Grid, { container: true, gap: 2, alignItems: "center", flexWrap: "nowrap" }, /* @__PURE__ */ React45.createElement(import_ui37.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React45.createElement(ControlLabel, null, (0, import_i18n20.__)("Custom order", "elementor"))), /* @__PURE__ */ React45.createElement(import_ui37.Grid, { item: true, xs: 6, sx: { display: "flex", justifyContent: "end" } }, /* @__PURE__ */ React45.createElement(
2686
2967
  import_editor_controls19.NumberControl,
2687
2968
  {
2688
2969
  min: FIRST_DEFAULT_VALUE + 1,
@@ -2702,36 +2983,37 @@ var getGroupControlValue = (order) => {
2702
2983
  };
2703
2984
 
2704
2985
  // src/components/style-sections/layout-section/flex-size-field.tsx
2705
- var React41 = __toESM(require("react"));
2986
+ var React46 = __toESM(require("react"));
2706
2987
  var import_react24 = require("react");
2707
2988
  var import_editor_controls20 = require("@elementor/editor-controls");
2708
2989
  var import_editor_props9 = require("@elementor/editor-props");
2709
- var import_icons13 = require("@elementor/icons");
2710
- var import_ui33 = require("@elementor/ui");
2711
- var import_i18n18 = require("@wordpress/i18n");
2990
+ var import_icons15 = require("@elementor/icons");
2991
+ var import_ui38 = require("@elementor/ui");
2992
+ var import_i18n21 = require("@wordpress/i18n");
2712
2993
  var DEFAULT = 1;
2713
2994
  var items2 = [
2714
2995
  {
2715
2996
  value: "flex-grow",
2716
- label: (0, import_i18n18.__)("Grow", "elementor"),
2717
- renderContent: ({ size }) => /* @__PURE__ */ React41.createElement(import_icons13.ExpandIcon, { fontSize: size }),
2997
+ label: (0, import_i18n21.__)("Grow", "elementor"),
2998
+ renderContent: ({ size }) => /* @__PURE__ */ React46.createElement(import_icons15.ExpandIcon, { fontSize: size }),
2718
2999
  showTooltip: true
2719
3000
  },
2720
3001
  {
2721
3002
  value: "flex-shrink",
2722
- label: (0, import_i18n18.__)("Shrink", "elementor"),
2723
- renderContent: ({ size }) => /* @__PURE__ */ React41.createElement(import_icons13.ShrinkIcon, { fontSize: size }),
3003
+ label: (0, import_i18n21.__)("Shrink", "elementor"),
3004
+ renderContent: ({ size }) => /* @__PURE__ */ React46.createElement(import_icons15.ShrinkIcon, { fontSize: size }),
2724
3005
  showTooltip: true
2725
3006
  },
2726
3007
  {
2727
3008
  value: "custom",
2728
- label: (0, import_i18n18.__)("Custom", "elementor"),
2729
- renderContent: ({ size }) => /* @__PURE__ */ React41.createElement(import_icons13.PencilIcon, { fontSize: size }),
3009
+ label: (0, import_i18n21.__)("Custom", "elementor"),
3010
+ renderContent: ({ size }) => /* @__PURE__ */ React46.createElement(import_icons15.PencilIcon, { fontSize: size }),
2730
3011
  showTooltip: true
2731
3012
  }
2732
3013
  ];
2733
3014
  var FlexSizeField = () => {
2734
3015
  const { isSiteRtl } = useDirection();
3016
+ const { canEdit } = useStyle();
2735
3017
  const [fields, setFields] = useStylesFields(["flex-grow", "flex-shrink", "flex-basis"]);
2736
3018
  const grow = fields?.["flex-grow"]?.value || null;
2737
3019
  const shrink = fields?.["flex-shrink"]?.value || null;
@@ -2761,17 +3043,18 @@ var FlexSizeField = () => {
2761
3043
  "flex-shrink": import_editor_props9.numberPropTypeUtil.create(DEFAULT)
2762
3044
  });
2763
3045
  };
2764
- return /* @__PURE__ */ React41.createElement(import_ui33.DirectionProvider, { rtl: isSiteRtl }, /* @__PURE__ */ React41.createElement(import_ui33.ThemeProvider, null, /* @__PURE__ */ React41.createElement(SectionContent, null, /* @__PURE__ */ React41.createElement(import_ui33.Grid, { container: true, gap: 2, alignItems: "center", flexWrap: "nowrap" }, /* @__PURE__ */ React41.createElement(import_ui33.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React41.createElement(StylesField, { bind: activeGroup ?? "" }, /* @__PURE__ */ React41.createElement(ControlLabel, null, (0, import_i18n18.__)("Size", "elementor")))), /* @__PURE__ */ React41.createElement(import_ui33.Grid, { item: true, xs: 6, sx: { display: "flex", justifyContent: "end" } }, /* @__PURE__ */ React41.createElement(
3046
+ return /* @__PURE__ */ React46.createElement(import_ui38.DirectionProvider, { rtl: isSiteRtl }, /* @__PURE__ */ React46.createElement(import_ui38.ThemeProvider, null, /* @__PURE__ */ React46.createElement(SectionContent, null, /* @__PURE__ */ React46.createElement(import_ui38.Grid, { container: true, gap: 2, alignItems: "center", flexWrap: "nowrap" }, /* @__PURE__ */ React46.createElement(StylesField, { bind: activeGroup ?? "" }, /* @__PURE__ */ React46.createElement(import_ui38.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React46.createElement(ControlLabel, null, (0, import_i18n21.__)("Size", "elementor"))), /* @__PURE__ */ React46.createElement(import_ui38.Grid, { item: true, xs: 6, sx: { display: "flex", justifyContent: "end" } }, /* @__PURE__ */ React46.createElement(
2765
3047
  import_editor_controls20.ControlToggleButtonGroup,
2766
3048
  {
2767
3049
  value: activeGroup,
2768
3050
  onChange: onChangeGroup,
3051
+ disabled: !canEdit,
2769
3052
  items: items2,
2770
3053
  exclusive: true
2771
3054
  }
2772
- ))), "custom" === activeGroup && /* @__PURE__ */ React41.createElement(FlexCustomField, null))));
3055
+ )))), "custom" === activeGroup && /* @__PURE__ */ React46.createElement(FlexCustomField, null))));
2773
3056
  };
2774
- var FlexCustomField = () => /* @__PURE__ */ React41.createElement(React41.Fragment, null, /* @__PURE__ */ React41.createElement(StylesField, { bind: "flex-grow" }, /* @__PURE__ */ React41.createElement(import_ui33.Grid, { container: true, gap: 2, alignItems: "center", flexWrap: "nowrap" }, /* @__PURE__ */ React41.createElement(import_ui33.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React41.createElement(ControlLabel, null, (0, import_i18n18.__)("Grow", "elementor"))), /* @__PURE__ */ React41.createElement(import_ui33.Grid, { item: true, xs: 6, sx: { display: "flex", justifyContent: "end" } }, /* @__PURE__ */ React41.createElement(import_editor_controls20.NumberControl, { min: 0, shouldForceInt: true })))), /* @__PURE__ */ React41.createElement(StylesField, { bind: "flex-shrink" }, /* @__PURE__ */ React41.createElement(import_ui33.Grid, { container: true, gap: 2, alignItems: "center", flexWrap: "nowrap" }, /* @__PURE__ */ React41.createElement(import_ui33.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React41.createElement(ControlLabel, null, (0, import_i18n18.__)("Shrink", "elementor"))), /* @__PURE__ */ React41.createElement(import_ui33.Grid, { item: true, xs: 6, sx: { display: "flex", justifyContent: "end" } }, /* @__PURE__ */ React41.createElement(import_editor_controls20.NumberControl, { min: 0, shouldForceInt: true })))), /* @__PURE__ */ React41.createElement(StylesField, { bind: "flex-basis" }, /* @__PURE__ */ React41.createElement(import_ui33.Grid, { container: true, gap: 2, alignItems: "center", flexWrap: "nowrap" }, /* @__PURE__ */ React41.createElement(import_ui33.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React41.createElement(ControlLabel, null, (0, import_i18n18.__)("Basis", "elementor"))), /* @__PURE__ */ React41.createElement(import_ui33.Grid, { item: true, xs: 6, sx: { display: "flex", justifyContent: "end" } }, /* @__PURE__ */ React41.createElement(import_editor_controls20.SizeControl, { extendedValues: ["auto"] })))));
3057
+ var FlexCustomField = () => /* @__PURE__ */ React46.createElement(React46.Fragment, null, /* @__PURE__ */ React46.createElement(StylesField, { bind: "flex-grow" }, /* @__PURE__ */ React46.createElement(import_ui38.Grid, { container: true, gap: 2, alignItems: "center", flexWrap: "nowrap" }, /* @__PURE__ */ React46.createElement(import_ui38.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React46.createElement(ControlLabel, null, (0, import_i18n21.__)("Grow", "elementor"))), /* @__PURE__ */ React46.createElement(import_ui38.Grid, { item: true, xs: 6, sx: { display: "flex", justifyContent: "end" } }, /* @__PURE__ */ React46.createElement(import_editor_controls20.NumberControl, { min: 0, shouldForceInt: true })))), /* @__PURE__ */ React46.createElement(StylesField, { bind: "flex-shrink" }, /* @__PURE__ */ React46.createElement(import_ui38.Grid, { container: true, gap: 2, alignItems: "center", flexWrap: "nowrap" }, /* @__PURE__ */ React46.createElement(import_ui38.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React46.createElement(ControlLabel, null, (0, import_i18n21.__)("Shrink", "elementor"))), /* @__PURE__ */ React46.createElement(import_ui38.Grid, { item: true, xs: 6, sx: { display: "flex", justifyContent: "end" } }, /* @__PURE__ */ React46.createElement(import_editor_controls20.NumberControl, { min: 0, shouldForceInt: true })))), /* @__PURE__ */ React46.createElement(StylesField, { bind: "flex-basis" }, /* @__PURE__ */ React46.createElement(import_ui38.Grid, { container: true, gap: 2, alignItems: "center", flexWrap: "nowrap" }, /* @__PURE__ */ React46.createElement(import_ui38.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React46.createElement(ControlLabel, null, (0, import_i18n21.__)("Basis", "elementor"))), /* @__PURE__ */ React46.createElement(import_ui38.Grid, { item: true, xs: 6, sx: { display: "flex", justifyContent: "end" } }, /* @__PURE__ */ React46.createElement(import_editor_controls20.SizeControl, { extendedValues: ["auto"] })))));
2775
3058
  var getActiveGroup = ({
2776
3059
  grow,
2777
3060
  shrink,
@@ -2793,22 +3076,22 @@ var getActiveGroup = ({
2793
3076
  };
2794
3077
 
2795
3078
  // src/components/style-sections/layout-section/gap-control-field.tsx
2796
- var React42 = __toESM(require("react"));
3079
+ var React47 = __toESM(require("react"));
2797
3080
  var import_editor_controls21 = require("@elementor/editor-controls");
2798
- var import_ui34 = require("@elementor/ui");
2799
- var import_i18n19 = require("@wordpress/i18n");
3081
+ var import_ui39 = require("@elementor/ui");
3082
+ var import_i18n22 = require("@wordpress/i18n");
2800
3083
  var GapControlField = () => {
2801
- return /* @__PURE__ */ React42.createElement(import_ui34.Stack, { gap: 1 }, /* @__PURE__ */ React42.createElement(StylesField, { bind: "gap" }, /* @__PURE__ */ React42.createElement(import_editor_controls21.GapControl, { label: (0, import_i18n19.__)("Gaps", "elementor") })));
3084
+ return /* @__PURE__ */ React47.createElement(import_ui39.Stack, { gap: 1 }, /* @__PURE__ */ React47.createElement(StylesField, { bind: "gap" }, /* @__PURE__ */ React47.createElement(import_editor_controls21.GapControl, { label: (0, import_i18n22.__)("Gaps", "elementor") })));
2802
3085
  };
2803
3086
 
2804
3087
  // src/components/style-sections/layout-section/justify-content-field.tsx
2805
- var React43 = __toESM(require("react"));
3088
+ var React48 = __toESM(require("react"));
2806
3089
  var import_editor_controls22 = require("@elementor/editor-controls");
2807
- var import_icons14 = require("@elementor/icons");
2808
- var import_ui35 = require("@elementor/ui");
2809
- var import_i18n20 = require("@wordpress/i18n");
2810
- var StartIcon4 = (0, import_ui35.withDirection)(import_icons14.JustifyTopIcon);
2811
- var EndIcon4 = (0, import_ui35.withDirection)(import_icons14.JustifyBottomIcon);
3090
+ var import_icons16 = require("@elementor/icons");
3091
+ var import_ui40 = require("@elementor/ui");
3092
+ var import_i18n23 = require("@wordpress/i18n");
3093
+ var StartIcon4 = (0, import_ui40.withDirection)(import_icons16.JustifyTopIcon);
3094
+ var EndIcon4 = (0, import_ui40.withDirection)(import_icons16.JustifyBottomIcon);
2812
3095
  var iconProps4 = {
2813
3096
  isClockwise: true,
2814
3097
  offset: -90
@@ -2816,75 +3099,75 @@ var iconProps4 = {
2816
3099
  var options4 = [
2817
3100
  {
2818
3101
  value: "flex-start",
2819
- label: (0, import_i18n20.__)("Start", "elementor"),
2820
- renderContent: ({ size }) => /* @__PURE__ */ React43.createElement(RotatedIcon, { icon: StartIcon4, size, ...iconProps4 }),
3102
+ label: (0, import_i18n23.__)("Start", "elementor"),
3103
+ renderContent: ({ size }) => /* @__PURE__ */ React48.createElement(RotatedIcon, { icon: StartIcon4, size, ...iconProps4 }),
2821
3104
  showTooltip: true
2822
3105
  },
2823
3106
  {
2824
3107
  value: "center",
2825
- label: (0, import_i18n20.__)("Center", "elementor"),
2826
- renderContent: ({ size }) => /* @__PURE__ */ React43.createElement(RotatedIcon, { icon: import_icons14.JustifyCenterIcon, size, ...iconProps4 }),
3108
+ label: (0, import_i18n23.__)("Center", "elementor"),
3109
+ renderContent: ({ size }) => /* @__PURE__ */ React48.createElement(RotatedIcon, { icon: import_icons16.JustifyCenterIcon, size, ...iconProps4 }),
2827
3110
  showTooltip: true
2828
3111
  },
2829
3112
  {
2830
3113
  value: "flex-end",
2831
- label: (0, import_i18n20.__)("End", "elementor"),
2832
- renderContent: ({ size }) => /* @__PURE__ */ React43.createElement(RotatedIcon, { icon: EndIcon4, size, ...iconProps4 }),
3114
+ label: (0, import_i18n23.__)("End", "elementor"),
3115
+ renderContent: ({ size }) => /* @__PURE__ */ React48.createElement(RotatedIcon, { icon: EndIcon4, size, ...iconProps4 }),
2833
3116
  showTooltip: true
2834
3117
  },
2835
3118
  {
2836
3119
  value: "space-between",
2837
- label: (0, import_i18n20.__)("Space between", "elementor"),
2838
- renderContent: ({ size }) => /* @__PURE__ */ React43.createElement(RotatedIcon, { icon: import_icons14.JustifySpaceBetweenVerticalIcon, size, ...iconProps4 }),
3120
+ label: (0, import_i18n23.__)("Space between", "elementor"),
3121
+ renderContent: ({ size }) => /* @__PURE__ */ React48.createElement(RotatedIcon, { icon: import_icons16.JustifySpaceBetweenVerticalIcon, size, ...iconProps4 }),
2839
3122
  showTooltip: true
2840
3123
  },
2841
3124
  {
2842
3125
  value: "space-around",
2843
- label: (0, import_i18n20.__)("Space around", "elementor"),
2844
- renderContent: ({ size }) => /* @__PURE__ */ React43.createElement(RotatedIcon, { icon: import_icons14.JustifySpaceAroundVerticalIcon, size, ...iconProps4 }),
3126
+ label: (0, import_i18n23.__)("Space around", "elementor"),
3127
+ renderContent: ({ size }) => /* @__PURE__ */ React48.createElement(RotatedIcon, { icon: import_icons16.JustifySpaceAroundVerticalIcon, size, ...iconProps4 }),
2845
3128
  showTooltip: true
2846
3129
  },
2847
3130
  {
2848
3131
  value: "space-evenly",
2849
- label: (0, import_i18n20.__)("Space evenly", "elementor"),
2850
- renderContent: ({ size }) => /* @__PURE__ */ React43.createElement(RotatedIcon, { icon: import_icons14.JustifyDistributeVerticalIcon, size, ...iconProps4 }),
3132
+ label: (0, import_i18n23.__)("Space evenly", "elementor"),
3133
+ renderContent: ({ size }) => /* @__PURE__ */ React48.createElement(RotatedIcon, { icon: import_icons16.JustifyDistributeVerticalIcon, size, ...iconProps4 }),
2851
3134
  showTooltip: true
2852
3135
  }
2853
3136
  ];
2854
3137
  var JustifyContentField = () => {
2855
3138
  const { isSiteRtl } = useDirection();
2856
- return /* @__PURE__ */ React43.createElement(import_ui35.DirectionProvider, { rtl: isSiteRtl }, /* @__PURE__ */ React43.createElement(import_ui35.ThemeProvider, null, /* @__PURE__ */ React43.createElement(StylesField, { bind: "justify-content" }, /* @__PURE__ */ React43.createElement(import_ui35.Stack, { gap: 0.75 }, /* @__PURE__ */ React43.createElement(ControlLabel, null, (0, import_i18n20.__)("Justify content", "elementor")), /* @__PURE__ */ React43.createElement(import_editor_controls22.ToggleControl, { options: options4, fullWidth: true })))));
3139
+ return /* @__PURE__ */ React48.createElement(import_ui40.DirectionProvider, { rtl: isSiteRtl }, /* @__PURE__ */ React48.createElement(import_ui40.ThemeProvider, null, /* @__PURE__ */ React48.createElement(StylesField, { bind: "justify-content" }, /* @__PURE__ */ React48.createElement(import_ui40.Stack, { gap: 0.75 }, /* @__PURE__ */ React48.createElement(ControlLabel, null, (0, import_i18n23.__)("Justify content", "elementor")), /* @__PURE__ */ React48.createElement(import_editor_controls22.ToggleControl, { options: options4, fullWidth: true })))));
2857
3140
  };
2858
3141
 
2859
3142
  // src/components/style-sections/layout-section/wrap-field.tsx
2860
- var React44 = __toESM(require("react"));
3143
+ var React49 = __toESM(require("react"));
2861
3144
  var import_editor_controls23 = require("@elementor/editor-controls");
2862
- var import_icons15 = require("@elementor/icons");
2863
- var import_ui36 = require("@elementor/ui");
2864
- var import_i18n21 = require("@wordpress/i18n");
3145
+ var import_icons17 = require("@elementor/icons");
3146
+ var import_ui41 = require("@elementor/ui");
3147
+ var import_i18n24 = require("@wordpress/i18n");
2865
3148
  var options5 = [
2866
3149
  {
2867
3150
  value: "nowrap",
2868
- label: (0, import_i18n21.__)("No wrap", "elementor"),
2869
- renderContent: ({ size }) => /* @__PURE__ */ React44.createElement(import_icons15.ArrowRightIcon, { fontSize: size }),
3151
+ label: (0, import_i18n24.__)("No wrap", "elementor"),
3152
+ renderContent: ({ size }) => /* @__PURE__ */ React49.createElement(import_icons17.ArrowRightIcon, { fontSize: size }),
2870
3153
  showTooltip: true
2871
3154
  },
2872
3155
  {
2873
3156
  value: "wrap",
2874
- label: (0, import_i18n21.__)("Wrap", "elementor"),
2875
- renderContent: ({ size }) => /* @__PURE__ */ React44.createElement(import_icons15.ArrowBackIcon, { fontSize: size }),
3157
+ label: (0, import_i18n24.__)("Wrap", "elementor"),
3158
+ renderContent: ({ size }) => /* @__PURE__ */ React49.createElement(import_icons17.ArrowBackIcon, { fontSize: size }),
2876
3159
  showTooltip: true
2877
3160
  },
2878
3161
  {
2879
3162
  value: "wrap-reverse",
2880
- label: (0, import_i18n21.__)("Reversed wrap", "elementor"),
2881
- renderContent: ({ size }) => /* @__PURE__ */ React44.createElement(import_icons15.ArrowForwardIcon, { fontSize: size }),
3163
+ label: (0, import_i18n24.__)("Reversed wrap", "elementor"),
3164
+ renderContent: ({ size }) => /* @__PURE__ */ React49.createElement(import_icons17.ArrowForwardIcon, { fontSize: size }),
2882
3165
  showTooltip: true
2883
3166
  }
2884
3167
  ];
2885
3168
  var WrapField = () => {
2886
3169
  const { isSiteRtl } = useDirection();
2887
- return /* @__PURE__ */ React44.createElement(import_ui36.DirectionProvider, { rtl: isSiteRtl }, /* @__PURE__ */ React44.createElement(import_ui36.ThemeProvider, null, /* @__PURE__ */ React44.createElement(StylesField, { bind: "flex-wrap" }, /* @__PURE__ */ React44.createElement(import_ui36.Grid, { container: true, gap: 2, alignItems: "center", flexWrap: "nowrap" }, /* @__PURE__ */ React44.createElement(import_ui36.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React44.createElement(ControlLabel, null, (0, import_i18n21.__)("Wrap", "elementor"))), /* @__PURE__ */ React44.createElement(import_ui36.Grid, { item: true, xs: 6, sx: { display: "flex", justifyContent: "flex-end" } }, /* @__PURE__ */ React44.createElement(import_editor_controls23.ToggleControl, { options: options5 }))))));
3170
+ return /* @__PURE__ */ React49.createElement(import_ui41.DirectionProvider, { rtl: isSiteRtl }, /* @__PURE__ */ React49.createElement(import_ui41.ThemeProvider, null, /* @__PURE__ */ React49.createElement(StylesField, { bind: "flex-wrap" }, /* @__PURE__ */ React49.createElement(import_ui41.Grid, { container: true, gap: 2, alignItems: "center", flexWrap: "nowrap" }, /* @__PURE__ */ React49.createElement(import_ui41.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React49.createElement(ControlLabel, null, (0, import_i18n24.__)("Wrap", "elementor"))), /* @__PURE__ */ React49.createElement(import_ui41.Grid, { item: true, xs: 6, sx: { display: "flex", justifyContent: "flex-end" } }, /* @__PURE__ */ React49.createElement(import_editor_controls23.ToggleControl, { options: options5 }))))));
2888
3171
  };
2889
3172
 
2890
3173
  // src/components/style-sections/layout-section/layout-section.tsx
@@ -2896,13 +3179,13 @@ var LayoutSection = () => {
2896
3179
  const parent = (0, import_editor_elements7.useParentElement)(element.id);
2897
3180
  const parentStyle = useComputedStyle(parent?.id || null);
2898
3181
  const parentStyleDirection = parentStyle?.flexDirection ?? "row";
2899
- return /* @__PURE__ */ React45.createElement(SectionContent, null, /* @__PURE__ */ React45.createElement(DisplayField, null), isDisplayFlex && /* @__PURE__ */ React45.createElement(FlexFields, null), "flex" === parentStyle?.display && /* @__PURE__ */ React45.createElement(FlexChildFields, { parentStyleDirection }));
3182
+ return /* @__PURE__ */ React50.createElement(SectionContent, null, /* @__PURE__ */ React50.createElement(DisplayField, null), isDisplayFlex && /* @__PURE__ */ React50.createElement(FlexFields, null), "flex" === parentStyle?.display && /* @__PURE__ */ React50.createElement(FlexChildFields, { parentStyleDirection }));
2900
3183
  };
2901
3184
  var FlexFields = () => {
2902
3185
  const [flexWrap] = useStylesField("flex-wrap");
2903
- return /* @__PURE__ */ React45.createElement(React45.Fragment, null, /* @__PURE__ */ React45.createElement(FlexDirectionField, null), /* @__PURE__ */ React45.createElement(JustifyContentField, null), /* @__PURE__ */ React45.createElement(AlignItemsField, null), /* @__PURE__ */ React45.createElement(PanelDivider, null), /* @__PURE__ */ React45.createElement(GapControlField, null), /* @__PURE__ */ React45.createElement(WrapField, null), ["wrap", "wrap-reverse"].includes(flexWrap?.value) && /* @__PURE__ */ React45.createElement(AlignContentField, null));
3186
+ return /* @__PURE__ */ React50.createElement(React50.Fragment, null, /* @__PURE__ */ React50.createElement(FlexDirectionField, null), /* @__PURE__ */ React50.createElement(JustifyContentField, null), /* @__PURE__ */ React50.createElement(AlignItemsField, null), /* @__PURE__ */ React50.createElement(PanelDivider, null), /* @__PURE__ */ React50.createElement(GapControlField, null), /* @__PURE__ */ React50.createElement(WrapField, null), ["wrap", "wrap-reverse"].includes(flexWrap?.value) && /* @__PURE__ */ React50.createElement(AlignContentField, null));
2904
3187
  };
2905
- var FlexChildFields = ({ parentStyleDirection }) => /* @__PURE__ */ React45.createElement(React45.Fragment, null, /* @__PURE__ */ React45.createElement(PanelDivider, null), /* @__PURE__ */ React45.createElement(import_editor_controls24.ControlFormLabel, null, (0, import_i18n22.__)("Flex child", "elementor")), /* @__PURE__ */ React45.createElement(AlignSelfChild, { parentStyleDirection }), /* @__PURE__ */ React45.createElement(FlexOrderField, null), /* @__PURE__ */ React45.createElement(FlexSizeField, null));
3188
+ var FlexChildFields = ({ parentStyleDirection }) => /* @__PURE__ */ React50.createElement(React50.Fragment, null, /* @__PURE__ */ React50.createElement(PanelDivider, null), /* @__PURE__ */ React50.createElement(import_editor_controls24.ControlFormLabel, null, (0, import_i18n25.__)("Flex child", "elementor")), /* @__PURE__ */ React50.createElement(AlignSelfChild, { parentStyleDirection }), /* @__PURE__ */ React50.createElement(FlexOrderField, null), /* @__PURE__ */ React50.createElement(FlexSizeField, null));
2906
3189
  var shouldDisplayFlexFields = (display, local) => {
2907
3190
  const value = display?.value ?? local?.value;
2908
3191
  if (!value) {
@@ -2912,66 +3195,66 @@ var shouldDisplayFlexFields = (display, local) => {
2912
3195
  };
2913
3196
 
2914
3197
  // src/components/style-sections/position-section/position-section.tsx
2915
- var React50 = __toESM(require("react"));
2916
- var import_editor_v1_adapters8 = require("@elementor/editor-v1-adapters");
3198
+ var React55 = __toESM(require("react"));
3199
+ var import_editor_v1_adapters9 = require("@elementor/editor-v1-adapters");
2917
3200
  var import_session3 = require("@elementor/session");
2918
3201
 
2919
3202
  // src/components/style-sections/position-section/dimensions-field.tsx
2920
- var React46 = __toESM(require("react"));
3203
+ var React51 = __toESM(require("react"));
2921
3204
  var import_editor_controls25 = require("@elementor/editor-controls");
2922
- var import_icons16 = require("@elementor/icons");
2923
- var import_ui37 = require("@elementor/ui");
2924
- var import_i18n23 = require("@wordpress/i18n");
2925
- var InlineStartIcon2 = (0, import_ui37.withDirection)(import_icons16.SideLeftIcon);
2926
- var InlineEndIcon2 = (0, import_ui37.withDirection)(import_icons16.SideRightIcon);
3205
+ var import_icons18 = require("@elementor/icons");
3206
+ var import_ui42 = require("@elementor/ui");
3207
+ var import_i18n26 = require("@wordpress/i18n");
3208
+ var InlineStartIcon2 = (0, import_ui42.withDirection)(import_icons18.SideLeftIcon);
3209
+ var InlineEndIcon2 = (0, import_ui42.withDirection)(import_icons18.SideRightIcon);
2927
3210
  var sideIcons = {
2928
- "inset-block-start": /* @__PURE__ */ React46.createElement(import_icons16.SideTopIcon, { fontSize: "tiny" }),
2929
- "inset-block-end": /* @__PURE__ */ React46.createElement(import_icons16.SideBottomIcon, { fontSize: "tiny" }),
2930
- "inset-inline-start": /* @__PURE__ */ React46.createElement(RotatedIcon, { icon: InlineStartIcon2, size: "tiny" }),
2931
- "inset-inline-end": /* @__PURE__ */ React46.createElement(RotatedIcon, { icon: InlineEndIcon2, size: "tiny" })
3211
+ "inset-block-start": /* @__PURE__ */ React51.createElement(import_icons18.SideTopIcon, { fontSize: "tiny" }),
3212
+ "inset-block-end": /* @__PURE__ */ React51.createElement(import_icons18.SideBottomIcon, { fontSize: "tiny" }),
3213
+ "inset-inline-start": /* @__PURE__ */ React51.createElement(RotatedIcon, { icon: InlineStartIcon2, size: "tiny" }),
3214
+ "inset-inline-end": /* @__PURE__ */ React51.createElement(RotatedIcon, { icon: InlineEndIcon2, size: "tiny" })
2932
3215
  };
2933
- var getInlineStartLabel = (isSiteRtl) => isSiteRtl ? (0, import_i18n23.__)("Right", "elementor") : (0, import_i18n23.__)("Left", "elementor");
2934
- var getInlineEndLabel = (isSiteRtl) => isSiteRtl ? (0, import_i18n23.__)("Left", "elementor") : (0, import_i18n23.__)("Right", "elementor");
3216
+ var getInlineStartLabel = (isSiteRtl) => isSiteRtl ? (0, import_i18n26.__)("Right", "elementor") : (0, import_i18n26.__)("Left", "elementor");
3217
+ var getInlineEndLabel = (isSiteRtl) => isSiteRtl ? (0, import_i18n26.__)("Left", "elementor") : (0, import_i18n26.__)("Right", "elementor");
2935
3218
  var DimensionsField = () => {
2936
3219
  const { isSiteRtl } = useDirection();
2937
- return /* @__PURE__ */ React46.createElement(React46.Fragment, null, /* @__PURE__ */ React46.createElement(import_ui37.Stack, { direction: "row", gap: 2, flexWrap: "nowrap" }, /* @__PURE__ */ React46.createElement(DimensionField, { side: "inset-block-start", label: (0, import_i18n23.__)("Top", "elementor") }), /* @__PURE__ */ React46.createElement(DimensionField, { side: "inset-inline-end", label: getInlineEndLabel(isSiteRtl) })), /* @__PURE__ */ React46.createElement(import_ui37.Stack, { direction: "row", gap: 2, flexWrap: "nowrap" }, /* @__PURE__ */ React46.createElement(DimensionField, { side: "inset-block-end", label: (0, import_i18n23.__)("Bottom", "elementor") }), /* @__PURE__ */ React46.createElement(DimensionField, { side: "inset-inline-start", label: getInlineStartLabel(isSiteRtl) })));
3220
+ return /* @__PURE__ */ React51.createElement(React51.Fragment, null, /* @__PURE__ */ React51.createElement(import_ui42.Stack, { direction: "row", gap: 2, flexWrap: "nowrap" }, /* @__PURE__ */ React51.createElement(DimensionField, { side: "inset-block-start", label: (0, import_i18n26.__)("Top", "elementor") }), /* @__PURE__ */ React51.createElement(DimensionField, { side: "inset-inline-end", label: getInlineEndLabel(isSiteRtl) })), /* @__PURE__ */ React51.createElement(import_ui42.Stack, { direction: "row", gap: 2, flexWrap: "nowrap" }, /* @__PURE__ */ React51.createElement(DimensionField, { side: "inset-block-end", label: (0, import_i18n26.__)("Bottom", "elementor") }), /* @__PURE__ */ React51.createElement(DimensionField, { side: "inset-inline-start", label: getInlineStartLabel(isSiteRtl) })));
2938
3221
  };
2939
3222
  var DimensionField = ({ side, label }) => {
2940
- return /* @__PURE__ */ React46.createElement(import_ui37.Grid, { container: true, gap: 0.75, alignItems: "center" }, /* @__PURE__ */ React46.createElement(import_ui37.Grid, { item: true, xs: 12 }, /* @__PURE__ */ React46.createElement(ControlLabel, null, label)), /* @__PURE__ */ React46.createElement(import_ui37.Grid, { item: true, xs: 12 }, /* @__PURE__ */ React46.createElement(StylesField, { bind: side }, /* @__PURE__ */ React46.createElement(import_editor_controls25.SizeControl, { startIcon: sideIcons[side], extendedValues: ["auto"] }))));
3223
+ return /* @__PURE__ */ React51.createElement(import_ui42.Grid, { container: true, gap: 0.75, alignItems: "center" }, /* @__PURE__ */ React51.createElement(import_ui42.Grid, { item: true, xs: 12 }, /* @__PURE__ */ React51.createElement(ControlLabel, null, label)), /* @__PURE__ */ React51.createElement(import_ui42.Grid, { item: true, xs: 12 }, /* @__PURE__ */ React51.createElement(StylesField, { bind: side }, /* @__PURE__ */ React51.createElement(import_editor_controls25.SizeControl, { startIcon: sideIcons[side], extendedValues: ["auto"] }))));
2941
3224
  };
2942
3225
 
2943
3226
  // src/components/style-sections/position-section/offset-field.tsx
2944
- var React47 = __toESM(require("react"));
3227
+ var React52 = __toESM(require("react"));
2945
3228
  var import_editor_controls26 = require("@elementor/editor-controls");
2946
- var import_ui38 = require("@elementor/ui");
2947
- var import_i18n24 = require("@wordpress/i18n");
3229
+ var import_ui43 = require("@elementor/ui");
3230
+ var import_i18n27 = require("@wordpress/i18n");
2948
3231
  var OffsetField = () => {
2949
- return /* @__PURE__ */ React47.createElement(StylesField, { bind: "scroll-margin-top" }, /* @__PURE__ */ React47.createElement(import_ui38.Grid, { container: true, gap: 2, alignItems: "center", flexWrap: "nowrap" }, /* @__PURE__ */ React47.createElement(import_ui38.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React47.createElement(ControlLabel, null, (0, import_i18n24.__)("Anchor offset", "elementor"))), /* @__PURE__ */ React47.createElement(import_ui38.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React47.createElement(import_editor_controls26.SizeControl, { units: ["px", "em", "rem", "vw", "vh"] }))));
3232
+ return /* @__PURE__ */ React52.createElement(StylesField, { bind: "scroll-margin-top" }, /* @__PURE__ */ React52.createElement(import_ui43.Grid, { container: true, gap: 2, alignItems: "center", flexWrap: "nowrap" }, /* @__PURE__ */ React52.createElement(import_ui43.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React52.createElement(ControlLabel, null, (0, import_i18n27.__)("Anchor offset", "elementor"))), /* @__PURE__ */ React52.createElement(import_ui43.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React52.createElement(import_editor_controls26.SizeControl, { units: ["px", "em", "rem", "vw", "vh"] }))));
2950
3233
  };
2951
3234
 
2952
3235
  // src/components/style-sections/position-section/position-field.tsx
2953
- var React48 = __toESM(require("react"));
3236
+ var React53 = __toESM(require("react"));
2954
3237
  var import_editor_controls27 = require("@elementor/editor-controls");
2955
- var import_ui39 = require("@elementor/ui");
2956
- var import_i18n25 = require("@wordpress/i18n");
3238
+ var import_ui44 = require("@elementor/ui");
3239
+ var import_i18n28 = require("@wordpress/i18n");
2957
3240
  var positionOptions = [
2958
- { label: (0, import_i18n25.__)("Static", "elementor"), value: "static" },
2959
- { label: (0, import_i18n25.__)("Relative", "elementor"), value: "relative" },
2960
- { label: (0, import_i18n25.__)("Absolute", "elementor"), value: "absolute" },
2961
- { label: (0, import_i18n25.__)("Fixed", "elementor"), value: "fixed" },
2962
- { label: (0, import_i18n25.__)("Sticky", "elementor"), value: "sticky" }
3241
+ { label: (0, import_i18n28.__)("Static", "elementor"), value: "static" },
3242
+ { label: (0, import_i18n28.__)("Relative", "elementor"), value: "relative" },
3243
+ { label: (0, import_i18n28.__)("Absolute", "elementor"), value: "absolute" },
3244
+ { label: (0, import_i18n28.__)("Fixed", "elementor"), value: "fixed" },
3245
+ { label: (0, import_i18n28.__)("Sticky", "elementor"), value: "sticky" }
2963
3246
  ];
2964
3247
  var PositionField = ({ onChange }) => {
2965
- return /* @__PURE__ */ React48.createElement(StylesField, { bind: "position" }, /* @__PURE__ */ React48.createElement(import_ui39.Grid, { container: true, gap: 2, alignItems: "center", flexWrap: "nowrap" }, /* @__PURE__ */ React48.createElement(import_ui39.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React48.createElement(ControlLabel, null, (0, import_i18n25.__)("Position", "elementor"))), /* @__PURE__ */ React48.createElement(import_ui39.Grid, { item: true, xs: 6, sx: { overflow: "hidden" } }, /* @__PURE__ */ React48.createElement(import_editor_controls27.SelectControl, { options: positionOptions, onChange }))));
3248
+ return /* @__PURE__ */ React53.createElement(StylesField, { bind: "position" }, /* @__PURE__ */ React53.createElement(import_ui44.Grid, { container: true, gap: 2, alignItems: "center", flexWrap: "nowrap" }, /* @__PURE__ */ React53.createElement(import_ui44.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React53.createElement(ControlLabel, null, (0, import_i18n28.__)("Position", "elementor"))), /* @__PURE__ */ React53.createElement(import_ui44.Grid, { item: true, xs: 6, sx: { overflow: "hidden" } }, /* @__PURE__ */ React53.createElement(import_editor_controls27.SelectControl, { options: positionOptions, onChange }))));
2966
3249
  };
2967
3250
 
2968
3251
  // src/components/style-sections/position-section/z-index-field.tsx
2969
- var React49 = __toESM(require("react"));
3252
+ var React54 = __toESM(require("react"));
2970
3253
  var import_editor_controls28 = require("@elementor/editor-controls");
2971
- var import_ui40 = require("@elementor/ui");
2972
- var import_i18n26 = require("@wordpress/i18n");
3254
+ var import_ui45 = require("@elementor/ui");
3255
+ var import_i18n29 = require("@wordpress/i18n");
2973
3256
  var ZIndexField = () => {
2974
- return /* @__PURE__ */ React49.createElement(StylesField, { bind: "z-index" }, /* @__PURE__ */ React49.createElement(import_ui40.Grid, { container: true, gap: 2, alignItems: "center", flexWrap: "nowrap" }, /* @__PURE__ */ React49.createElement(import_ui40.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React49.createElement(ControlLabel, null, (0, import_i18n26.__)("Z-index", "elementor"))), /* @__PURE__ */ React49.createElement(import_ui40.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React49.createElement(import_editor_controls28.NumberControl, null))));
3257
+ return /* @__PURE__ */ React54.createElement(StylesField, { bind: "z-index" }, /* @__PURE__ */ React54.createElement(import_ui45.Grid, { container: true, gap: 2, alignItems: "center", flexWrap: "nowrap" }, /* @__PURE__ */ React54.createElement(import_ui45.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React54.createElement(ControlLabel, null, (0, import_i18n29.__)("Z-index", "elementor"))), /* @__PURE__ */ React54.createElement(import_ui45.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React54.createElement(import_editor_controls28.NumberControl, null))));
2975
3258
  };
2976
3259
 
2977
3260
  // src/components/style-sections/position-section/position-section.tsx
@@ -2984,7 +3267,7 @@ var PositionSection = () => {
2984
3267
  "inset-inline-end"
2985
3268
  ]);
2986
3269
  const [dimensionsValuesFromHistory, updateDimensionsHistory, clearDimensionsHistory] = usePersistDimensions();
2987
- const isCssIdFeatureActive = (0, import_editor_v1_adapters8.isExperimentActive)("e_v_3_30");
3270
+ const isCssIdFeatureActive = (0, import_editor_v1_adapters9.isExperimentActive)("e_v_3_30");
2988
3271
  const onPositionChange = (newPosition, previousPosition) => {
2989
3272
  if (newPosition === "static") {
2990
3273
  if (dimensionsValues) {
@@ -3004,7 +3287,7 @@ var PositionSection = () => {
3004
3287
  }
3005
3288
  };
3006
3289
  const isNotStatic = positionValue && positionValue?.value !== "static";
3007
- return /* @__PURE__ */ React50.createElement(SectionContent, null, /* @__PURE__ */ React50.createElement(PositionField, { onChange: onPositionChange }), isNotStatic ? /* @__PURE__ */ React50.createElement(React50.Fragment, null, /* @__PURE__ */ React50.createElement(DimensionsField, null), /* @__PURE__ */ React50.createElement(ZIndexField, null)) : null, isCssIdFeatureActive && /* @__PURE__ */ React50.createElement(React50.Fragment, null, /* @__PURE__ */ React50.createElement(PanelDivider, null), /* @__PURE__ */ React50.createElement(OffsetField, null)));
3290
+ return /* @__PURE__ */ React55.createElement(SectionContent, null, /* @__PURE__ */ React55.createElement(PositionField, { onChange: onPositionChange }), isNotStatic ? /* @__PURE__ */ React55.createElement(React55.Fragment, null, /* @__PURE__ */ React55.createElement(DimensionsField, null), /* @__PURE__ */ React55.createElement(ZIndexField, null)) : null, isCssIdFeatureActive && /* @__PURE__ */ React55.createElement(React55.Fragment, null, /* @__PURE__ */ React55.createElement(PanelDivider, null), /* @__PURE__ */ React55.createElement(OffsetField, null)));
3008
3291
  };
3009
3292
  var usePersistDimensions = () => {
3010
3293
  const { id: styleDefID, meta } = useStyle();
@@ -3014,101 +3297,101 @@ var usePersistDimensions = () => {
3014
3297
  };
3015
3298
 
3016
3299
  // src/components/style-sections/size-section/size-section.tsx
3017
- var React55 = __toESM(require("react"));
3300
+ var React60 = __toESM(require("react"));
3018
3301
  var import_editor_controls32 = require("@elementor/editor-controls");
3019
- var import_editor_v1_adapters9 = require("@elementor/editor-v1-adapters");
3020
- var import_ui45 = require("@elementor/ui");
3021
- var import_i18n31 = require("@wordpress/i18n");
3302
+ var import_editor_v1_adapters10 = require("@elementor/editor-v1-adapters");
3303
+ var import_ui50 = require("@elementor/ui");
3304
+ var import_i18n34 = require("@wordpress/i18n");
3022
3305
 
3023
3306
  // src/components/collapsible-content.tsx
3024
- var React51 = __toESM(require("react"));
3307
+ var React56 = __toESM(require("react"));
3025
3308
  var import_react25 = require("react");
3026
- var import_ui41 = require("@elementor/ui");
3027
- var import_i18n27 = require("@wordpress/i18n");
3309
+ var import_ui46 = require("@elementor/ui");
3310
+ var import_i18n30 = require("@wordpress/i18n");
3028
3311
  var CollapsibleContent = ({ children, defaultOpen = false }) => {
3029
3312
  const [open, setOpen] = (0, import_react25.useState)(defaultOpen);
3030
3313
  const handleToggle = () => {
3031
3314
  setOpen((prevOpen) => !prevOpen);
3032
3315
  };
3033
- return /* @__PURE__ */ React51.createElement(import_ui41.Stack, null, /* @__PURE__ */ React51.createElement(
3034
- import_ui41.Button,
3316
+ return /* @__PURE__ */ React56.createElement(import_ui46.Stack, null, /* @__PURE__ */ React56.createElement(
3317
+ import_ui46.Button,
3035
3318
  {
3036
3319
  fullWidth: true,
3037
3320
  size: "small",
3038
3321
  color: "secondary",
3039
3322
  variant: "outlined",
3040
3323
  onClick: handleToggle,
3041
- endIcon: /* @__PURE__ */ React51.createElement(CollapseIcon, { open }),
3324
+ endIcon: /* @__PURE__ */ React56.createElement(CollapseIcon, { open }),
3042
3325
  sx: { my: 0.5 }
3043
3326
  },
3044
- open ? (0, import_i18n27.__)("Show less", "elementor") : (0, import_i18n27.__)("Show more", "elementor")
3045
- ), /* @__PURE__ */ React51.createElement(import_ui41.Collapse, { in: open, timeout: "auto", unmountOnExit: true }, children));
3327
+ open ? (0, import_i18n30.__)("Show less", "elementor") : (0, import_i18n30.__)("Show more", "elementor")
3328
+ ), /* @__PURE__ */ React56.createElement(import_ui46.Collapse, { in: open, timeout: "auto", unmountOnExit: true }, children));
3046
3329
  };
3047
3330
 
3048
3331
  // src/components/style-sections/size-section/object-fit-field.tsx
3049
- var React52 = __toESM(require("react"));
3332
+ var React57 = __toESM(require("react"));
3050
3333
  var import_editor_controls29 = require("@elementor/editor-controls");
3051
- var import_ui42 = require("@elementor/ui");
3052
- var import_i18n28 = require("@wordpress/i18n");
3334
+ var import_ui47 = require("@elementor/ui");
3335
+ var import_i18n31 = require("@wordpress/i18n");
3053
3336
  var positionOptions2 = [
3054
- { label: (0, import_i18n28.__)("Fill", "elementor"), value: "fill" },
3055
- { label: (0, import_i18n28.__)("Cover", "elementor"), value: "cover" },
3056
- { label: (0, import_i18n28.__)("Contain", "elementor"), value: "contain" },
3057
- { label: (0, import_i18n28.__)("None", "elementor"), value: "none" },
3058
- { label: (0, import_i18n28.__)("Scale down", "elementor"), value: "scale-down" }
3337
+ { label: (0, import_i18n31.__)("Fill", "elementor"), value: "fill" },
3338
+ { label: (0, import_i18n31.__)("Cover", "elementor"), value: "cover" },
3339
+ { label: (0, import_i18n31.__)("Contain", "elementor"), value: "contain" },
3340
+ { label: (0, import_i18n31.__)("None", "elementor"), value: "none" },
3341
+ { label: (0, import_i18n31.__)("Scale down", "elementor"), value: "scale-down" }
3059
3342
  ];
3060
3343
  var ObjectFitField = ({ onChange }) => {
3061
- return /* @__PURE__ */ React52.createElement(StylesField, { bind: "object-fit" }, /* @__PURE__ */ React52.createElement(import_ui42.Grid, { container: true, pt: 2, gap: 2, alignItems: "center", flexWrap: "nowrap" }, /* @__PURE__ */ React52.createElement(import_ui42.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React52.createElement(ControlLabel, null, (0, import_i18n28.__)("Object fit", "elementor"))), /* @__PURE__ */ React52.createElement(import_ui42.Grid, { item: true, xs: 6, sx: { overflow: "hidden" } }, /* @__PURE__ */ React52.createElement(import_editor_controls29.SelectControl, { options: positionOptions2, onChange }))));
3344
+ return /* @__PURE__ */ React57.createElement(StylesField, { bind: "object-fit" }, /* @__PURE__ */ React57.createElement(import_ui47.Grid, { container: true, gap: 2, alignItems: "center", flexWrap: "nowrap" }, /* @__PURE__ */ React57.createElement(import_ui47.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React57.createElement(ControlLabel, null, (0, import_i18n31.__)("Object fit", "elementor"))), /* @__PURE__ */ React57.createElement(import_ui47.Grid, { item: true, xs: 6, sx: { overflow: "hidden" } }, /* @__PURE__ */ React57.createElement(import_editor_controls29.SelectControl, { options: positionOptions2, onChange }))));
3062
3345
  };
3063
3346
 
3064
3347
  // src/components/style-sections/size-section/object-position-field.tsx
3065
- var React53 = __toESM(require("react"));
3348
+ var React58 = __toESM(require("react"));
3066
3349
  var import_editor_controls30 = require("@elementor/editor-controls");
3067
- var import_ui43 = require("@elementor/ui");
3068
- var import_i18n29 = require("@wordpress/i18n");
3350
+ var import_ui48 = require("@elementor/ui");
3351
+ var import_i18n32 = require("@wordpress/i18n");
3069
3352
  var positionOptions3 = [
3070
- { label: (0, import_i18n29.__)("Center center", "elementor"), value: "center center" },
3071
- { label: (0, import_i18n29.__)("Center left", "elementor"), value: "center left" },
3072
- { label: (0, import_i18n29.__)("Center right", "elementor"), value: "center right" },
3073
- { label: (0, import_i18n29.__)("Top center", "elementor"), value: "top center" },
3074
- { label: (0, import_i18n29.__)("Top left", "elementor"), value: "top left" },
3075
- { label: (0, import_i18n29.__)("Top right", "elementor"), value: "top right" },
3076
- { label: (0, import_i18n29.__)("Bottom center", "elementor"), value: "bottom center" },
3077
- { label: (0, import_i18n29.__)("Bottom left", "elementor"), value: "bottom left" },
3078
- { label: (0, import_i18n29.__)("Bottom right", "elementor"), value: "bottom right" }
3353
+ { label: (0, import_i18n32.__)("Center center", "elementor"), value: "center center" },
3354
+ { label: (0, import_i18n32.__)("Center left", "elementor"), value: "center left" },
3355
+ { label: (0, import_i18n32.__)("Center right", "elementor"), value: "center right" },
3356
+ { label: (0, import_i18n32.__)("Top center", "elementor"), value: "top center" },
3357
+ { label: (0, import_i18n32.__)("Top left", "elementor"), value: "top left" },
3358
+ { label: (0, import_i18n32.__)("Top right", "elementor"), value: "top right" },
3359
+ { label: (0, import_i18n32.__)("Bottom center", "elementor"), value: "bottom center" },
3360
+ { label: (0, import_i18n32.__)("Bottom left", "elementor"), value: "bottom left" },
3361
+ { label: (0, import_i18n32.__)("Bottom right", "elementor"), value: "bottom right" }
3079
3362
  ];
3080
3363
  var ObjectPositionField = ({ onChange }) => {
3081
- return /* @__PURE__ */ React53.createElement(StylesField, { bind: "object-position" }, /* @__PURE__ */ React53.createElement(import_ui43.Grid, { container: true, pt: 2, gap: 2, alignItems: "center", flexWrap: "nowrap" }, /* @__PURE__ */ React53.createElement(import_ui43.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React53.createElement(ControlLabel, null, (0, import_i18n29.__)("Object position", "elementor"))), /* @__PURE__ */ React53.createElement(import_ui43.Grid, { item: true, xs: 6, sx: { overflow: "hidden" } }, /* @__PURE__ */ React53.createElement(import_editor_controls30.SelectControl, { options: positionOptions3, onChange }))));
3364
+ return /* @__PURE__ */ React58.createElement(StylesField, { bind: "object-position" }, /* @__PURE__ */ React58.createElement(import_ui48.Grid, { container: true, gap: 2, alignItems: "center", flexWrap: "nowrap" }, /* @__PURE__ */ React58.createElement(import_ui48.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React58.createElement(ControlLabel, null, (0, import_i18n32.__)("Object position", "elementor"))), /* @__PURE__ */ React58.createElement(import_ui48.Grid, { item: true, xs: 6, sx: { overflow: "hidden" } }, /* @__PURE__ */ React58.createElement(import_editor_controls30.SelectControl, { options: positionOptions3, onChange }))));
3082
3365
  };
3083
3366
 
3084
3367
  // src/components/style-sections/size-section/overflow-field.tsx
3085
- var React54 = __toESM(require("react"));
3368
+ var React59 = __toESM(require("react"));
3086
3369
  var import_editor_controls31 = require("@elementor/editor-controls");
3087
- var import_icons17 = require("@elementor/icons");
3088
- var import_ui44 = require("@elementor/ui");
3089
- var import_i18n30 = require("@wordpress/i18n");
3370
+ var import_icons19 = require("@elementor/icons");
3371
+ var import_ui49 = require("@elementor/ui");
3372
+ var import_i18n33 = require("@wordpress/i18n");
3090
3373
  var options6 = [
3091
3374
  {
3092
3375
  value: "visible",
3093
- label: (0, import_i18n30.__)("Visible", "elementor"),
3094
- renderContent: ({ size }) => /* @__PURE__ */ React54.createElement(import_icons17.EyeIcon, { fontSize: size }),
3376
+ label: (0, import_i18n33.__)("Visible", "elementor"),
3377
+ renderContent: ({ size }) => /* @__PURE__ */ React59.createElement(import_icons19.EyeIcon, { fontSize: size }),
3095
3378
  showTooltip: true
3096
3379
  },
3097
3380
  {
3098
3381
  value: "hidden",
3099
- label: (0, import_i18n30.__)("Hidden", "elementor"),
3100
- renderContent: ({ size }) => /* @__PURE__ */ React54.createElement(import_icons17.EyeOffIcon, { fontSize: size }),
3382
+ label: (0, import_i18n33.__)("Hidden", "elementor"),
3383
+ renderContent: ({ size }) => /* @__PURE__ */ React59.createElement(import_icons19.EyeOffIcon, { fontSize: size }),
3101
3384
  showTooltip: true
3102
3385
  },
3103
3386
  {
3104
3387
  value: "auto",
3105
- label: (0, import_i18n30.__)("Auto", "elementor"),
3106
- renderContent: ({ size }) => /* @__PURE__ */ React54.createElement(import_icons17.LetterAIcon, { fontSize: size }),
3388
+ label: (0, import_i18n33.__)("Auto", "elementor"),
3389
+ renderContent: ({ size }) => /* @__PURE__ */ React59.createElement(import_icons19.LetterAIcon, { fontSize: size }),
3107
3390
  showTooltip: true
3108
3391
  }
3109
3392
  ];
3110
3393
  var OverflowField = () => {
3111
- return /* @__PURE__ */ React54.createElement(StylesField, { bind: "overflow" }, /* @__PURE__ */ React54.createElement(import_ui44.Grid, { container: true, gap: 2, alignItems: "center", flexWrap: "nowrap" }, /* @__PURE__ */ React54.createElement(import_ui44.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React54.createElement(ControlLabel, null, (0, import_i18n30.__)("Overflow", "elementor"))), /* @__PURE__ */ React54.createElement(import_ui44.Grid, { item: true, xs: 6, sx: { display: "flex", justifyContent: "flex-end" } }, /* @__PURE__ */ React54.createElement(import_editor_controls31.ToggleControl, { options: options6 }))));
3394
+ return /* @__PURE__ */ React59.createElement(StylesField, { bind: "overflow" }, /* @__PURE__ */ React59.createElement(import_ui49.Grid, { container: true, gap: 2, alignItems: "center", flexWrap: "nowrap" }, /* @__PURE__ */ React59.createElement(import_ui49.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React59.createElement(ControlLabel, null, (0, import_i18n33.__)("Overflow", "elementor"))), /* @__PURE__ */ React59.createElement(import_ui49.Grid, { item: true, xs: 6, sx: { display: "flex", justifyContent: "flex-end" } }, /* @__PURE__ */ React59.createElement(import_editor_controls31.ToggleControl, { options: options6 }))));
3112
3395
  };
3113
3396
 
3114
3397
  // src/components/style-sections/size-section/size-section.tsx
@@ -3123,78 +3406,78 @@ var SizeSection = () => {
3123
3406
  });
3124
3407
  }
3125
3408
  };
3126
- const isVersion330Active = (0, import_editor_v1_adapters9.isExperimentActive)("e_v_3_30");
3127
- return /* @__PURE__ */ React55.createElement(SectionContent, null, /* @__PURE__ */ React55.createElement(import_ui45.Grid, { container: true, gap: 2, flexWrap: "nowrap" }, /* @__PURE__ */ React55.createElement(import_ui45.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React55.createElement(SizeField, { bind: "width", label: (0, import_i18n31.__)("Width", "elementor"), extendedValues: ["auto"] })), /* @__PURE__ */ React55.createElement(import_ui45.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React55.createElement(SizeField, { bind: "height", label: (0, import_i18n31.__)("Height", "elementor"), extendedValues: ["auto"] }))), /* @__PURE__ */ React55.createElement(import_ui45.Grid, { container: true, gap: 2, flexWrap: "nowrap" }, /* @__PURE__ */ React55.createElement(import_ui45.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React55.createElement(
3409
+ const isVersion330Active = (0, import_editor_v1_adapters10.isExperimentActive)("e_v_3_30");
3410
+ return /* @__PURE__ */ React60.createElement(SectionContent, null, /* @__PURE__ */ React60.createElement(import_ui50.Grid, { container: true, gap: 2, flexWrap: "nowrap" }, /* @__PURE__ */ React60.createElement(import_ui50.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React60.createElement(SizeField, { bind: "width", label: (0, import_i18n34.__)("Width", "elementor"), extendedValues: ["auto"] })), /* @__PURE__ */ React60.createElement(import_ui50.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React60.createElement(SizeField, { bind: "height", label: (0, import_i18n34.__)("Height", "elementor"), extendedValues: ["auto"] }))), /* @__PURE__ */ React60.createElement(import_ui50.Grid, { container: true, gap: 2, flexWrap: "nowrap" }, /* @__PURE__ */ React60.createElement(import_ui50.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React60.createElement(
3128
3411
  SizeField,
3129
3412
  {
3130
3413
  bind: "min-width",
3131
- label: (0, import_i18n31.__)("Min width", "elementor"),
3414
+ label: (0, import_i18n34.__)("Min width", "elementor"),
3132
3415
  extendedValues: ["auto"]
3133
3416
  }
3134
- )), /* @__PURE__ */ React55.createElement(import_ui45.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React55.createElement(
3417
+ )), /* @__PURE__ */ React60.createElement(import_ui50.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React60.createElement(
3135
3418
  SizeField,
3136
3419
  {
3137
3420
  bind: "min-height",
3138
- label: (0, import_i18n31.__)("Min height", "elementor"),
3421
+ label: (0, import_i18n34.__)("Min height", "elementor"),
3139
3422
  extendedValues: ["auto"]
3140
3423
  }
3141
- ))), /* @__PURE__ */ React55.createElement(import_ui45.Grid, { container: true, gap: 2, flexWrap: "nowrap" }, /* @__PURE__ */ React55.createElement(import_ui45.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React55.createElement(SizeField, { bind: "max-width", label: (0, import_i18n31.__)("Max width", "elementor") })), /* @__PURE__ */ React55.createElement(import_ui45.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React55.createElement(SizeField, { bind: "max-height", label: (0, import_i18n31.__)("Max height", "elementor") }))), /* @__PURE__ */ React55.createElement(PanelDivider, null), /* @__PURE__ */ React55.createElement(import_ui45.Stack, null, /* @__PURE__ */ React55.createElement(OverflowField, null)), isVersion330Active && /* @__PURE__ */ React55.createElement(import_ui45.Stack, null, /* @__PURE__ */ React55.createElement(StylesField, { bind: "aspect-ratio" }, /* @__PURE__ */ React55.createElement(import_editor_controls32.AspectRatioControl, { label: (0, import_i18n31.__)("Aspect Ratio", "elementor") }))), isVersion330Active && /* @__PURE__ */ React55.createElement(CollapsibleContent, null, /* @__PURE__ */ React55.createElement(ObjectFitField, { onChange: onFitChange }), /* @__PURE__ */ React55.createElement(import_ui45.Grid, { item: true, xs: 6 }, isNotFill && /* @__PURE__ */ React55.createElement(ObjectPositionField, null))));
3424
+ ))), /* @__PURE__ */ React60.createElement(import_ui50.Grid, { container: true, gap: 2, flexWrap: "nowrap" }, /* @__PURE__ */ React60.createElement(import_ui50.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React60.createElement(SizeField, { bind: "max-width", label: (0, import_i18n34.__)("Max width", "elementor") })), /* @__PURE__ */ React60.createElement(import_ui50.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React60.createElement(SizeField, { bind: "max-height", label: (0, import_i18n34.__)("Max height", "elementor") }))), /* @__PURE__ */ React60.createElement(PanelDivider, null), /* @__PURE__ */ React60.createElement(import_ui50.Stack, null, /* @__PURE__ */ React60.createElement(OverflowField, null)), isVersion330Active && /* @__PURE__ */ React60.createElement(CollapsibleContent, null, /* @__PURE__ */ React60.createElement(import_ui50.Stack, { gap: 2 }, /* @__PURE__ */ React60.createElement(StylesField, { bind: "aspect-ratio" }, /* @__PURE__ */ React60.createElement(import_editor_controls32.AspectRatioControl, { label: (0, import_i18n34.__)("Aspect Ratio", "elementor") })), /* @__PURE__ */ React60.createElement(PanelDivider, null), /* @__PURE__ */ React60.createElement(ObjectFitField, { onChange: onFitChange }), isNotFill && /* @__PURE__ */ React60.createElement(import_ui50.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React60.createElement(ObjectPositionField, null)))));
3142
3425
  };
3143
3426
  var SizeField = ({ label, bind, extendedValues }) => {
3144
- return /* @__PURE__ */ React55.createElement(StylesField, { bind }, /* @__PURE__ */ React55.createElement(import_ui45.Grid, { container: true, gap: 0.75, alignItems: "center" }, /* @__PURE__ */ React55.createElement(import_ui45.Grid, { item: true, xs: 12 }, /* @__PURE__ */ React55.createElement(ControlLabel, null, label)), /* @__PURE__ */ React55.createElement(import_ui45.Grid, { item: true, xs: 12 }, /* @__PURE__ */ React55.createElement(import_editor_controls32.SizeControl, { extendedValues }))));
3427
+ return /* @__PURE__ */ React60.createElement(StylesField, { bind }, /* @__PURE__ */ React60.createElement(import_ui50.Grid, { container: true, gap: 0.75, alignItems: "center" }, /* @__PURE__ */ React60.createElement(import_ui50.Grid, { item: true, xs: 12 }, /* @__PURE__ */ React60.createElement(ControlLabel, null, label)), /* @__PURE__ */ React60.createElement(import_ui50.Grid, { item: true, xs: 12 }, /* @__PURE__ */ React60.createElement(import_editor_controls32.SizeControl, { extendedValues }))));
3145
3428
  };
3146
3429
 
3147
3430
  // src/components/style-sections/spacing-section/spacing-section.tsx
3148
- var React56 = __toESM(require("react"));
3431
+ var React61 = __toESM(require("react"));
3149
3432
  var import_editor_controls33 = require("@elementor/editor-controls");
3150
- var import_i18n32 = require("@wordpress/i18n");
3433
+ var import_i18n35 = require("@wordpress/i18n");
3151
3434
  var SpacingSection = () => {
3152
3435
  const { isSiteRtl } = useDirection();
3153
- return /* @__PURE__ */ React56.createElement(SectionContent, null, /* @__PURE__ */ React56.createElement(StylesField, { bind: "margin" }, /* @__PURE__ */ React56.createElement(
3436
+ return /* @__PURE__ */ React61.createElement(SectionContent, null, /* @__PURE__ */ React61.createElement(StylesField, { bind: "margin" }, /* @__PURE__ */ React61.createElement(
3154
3437
  import_editor_controls33.LinkedDimensionsControl,
3155
3438
  {
3156
- label: (0, import_i18n32.__)("Margin", "elementor"),
3439
+ label: (0, import_i18n35.__)("Margin", "elementor"),
3157
3440
  isSiteRtl,
3158
3441
  extendedValues: ["auto"]
3159
3442
  }
3160
- )), /* @__PURE__ */ React56.createElement(PanelDivider, null), /* @__PURE__ */ React56.createElement(StylesField, { bind: "padding" }, /* @__PURE__ */ React56.createElement(import_editor_controls33.LinkedDimensionsControl, { label: (0, import_i18n32.__)("Padding", "elementor"), isSiteRtl })));
3443
+ )), /* @__PURE__ */ React61.createElement(PanelDivider, null), /* @__PURE__ */ React61.createElement(StylesField, { bind: "padding" }, /* @__PURE__ */ React61.createElement(import_editor_controls33.LinkedDimensionsControl, { label: (0, import_i18n35.__)("Padding", "elementor"), isSiteRtl })));
3161
3444
  };
3162
3445
 
3163
3446
  // src/components/style-sections/typography-section/typography-section.tsx
3164
- var React72 = __toESM(require("react"));
3165
- var import_editor_v1_adapters10 = require("@elementor/editor-v1-adapters");
3447
+ var React77 = __toESM(require("react"));
3448
+ var import_editor_v1_adapters11 = require("@elementor/editor-v1-adapters");
3166
3449
 
3167
3450
  // src/components/style-sections/typography-section/column-count-field.tsx
3168
- var React57 = __toESM(require("react"));
3451
+ var React62 = __toESM(require("react"));
3169
3452
  var import_editor_controls34 = require("@elementor/editor-controls");
3170
- var import_ui46 = require("@elementor/ui");
3171
- var import_i18n33 = require("@wordpress/i18n");
3453
+ var import_ui51 = require("@elementor/ui");
3454
+ var import_i18n36 = require("@wordpress/i18n");
3172
3455
  var ColumnCountField = () => {
3173
- return /* @__PURE__ */ React57.createElement(StylesField, { bind: "column-count" }, /* @__PURE__ */ React57.createElement(import_ui46.Grid, { container: true, gap: 2, alignItems: "center", flexWrap: "nowrap" }, /* @__PURE__ */ React57.createElement(import_ui46.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React57.createElement(ControlLabel, null, (0, import_i18n33.__)("Columns", "elementor"))), /* @__PURE__ */ React57.createElement(import_ui46.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React57.createElement(import_editor_controls34.NumberControl, { shouldForceInt: true, min: 0, step: 1 }))));
3456
+ return /* @__PURE__ */ React62.createElement(StylesField, { bind: "column-count" }, /* @__PURE__ */ React62.createElement(import_ui51.Grid, { container: true, gap: 2, alignItems: "center", flexWrap: "nowrap" }, /* @__PURE__ */ React62.createElement(import_ui51.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React62.createElement(ControlLabel, null, (0, import_i18n36.__)("Columns", "elementor"))), /* @__PURE__ */ React62.createElement(import_ui51.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React62.createElement(import_editor_controls34.NumberControl, { shouldForceInt: true, min: 0, step: 1 }))));
3174
3457
  };
3175
3458
 
3176
3459
  // src/components/style-sections/typography-section/column-gap-field.tsx
3177
- var React58 = __toESM(require("react"));
3460
+ var React63 = __toESM(require("react"));
3178
3461
  var import_editor_controls35 = require("@elementor/editor-controls");
3179
- var import_ui47 = require("@elementor/ui");
3180
- var import_i18n34 = require("@wordpress/i18n");
3462
+ var import_ui52 = require("@elementor/ui");
3463
+ var import_i18n37 = require("@wordpress/i18n");
3181
3464
  var ColumnGapField = () => {
3182
- return /* @__PURE__ */ React58.createElement(StylesField, { bind: "column-gap" }, /* @__PURE__ */ React58.createElement(import_ui47.Grid, { container: true, gap: 2, alignItems: "center", flexWrap: "nowrap" }, /* @__PURE__ */ React58.createElement(import_ui47.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React58.createElement(ControlLabel, null, (0, import_i18n34.__)("Column gap", "elementor"))), /* @__PURE__ */ React58.createElement(import_ui47.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React58.createElement(import_editor_controls35.SizeControl, null))));
3465
+ return /* @__PURE__ */ React63.createElement(StylesField, { bind: "column-gap" }, /* @__PURE__ */ React63.createElement(import_ui52.Grid, { container: true, gap: 2, alignItems: "center", flexWrap: "nowrap" }, /* @__PURE__ */ React63.createElement(import_ui52.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React63.createElement(ControlLabel, null, (0, import_i18n37.__)("Column gap", "elementor"))), /* @__PURE__ */ React63.createElement(import_ui52.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React63.createElement(import_editor_controls35.SizeControl, null))));
3183
3466
  };
3184
3467
 
3185
3468
  // src/components/style-sections/typography-section/font-family-field.tsx
3186
- var React59 = __toESM(require("react"));
3469
+ var React64 = __toESM(require("react"));
3187
3470
  var import_editor_controls36 = require("@elementor/editor-controls");
3188
- var import_ui48 = require("@elementor/ui");
3189
- var import_i18n36 = require("@wordpress/i18n");
3471
+ var import_ui53 = require("@elementor/ui");
3472
+ var import_i18n39 = require("@wordpress/i18n");
3190
3473
 
3191
3474
  // src/components/style-sections/typography-section/hooks/use-font-families.ts
3192
3475
  var import_react26 = require("react");
3193
- var import_i18n35 = require("@wordpress/i18n");
3476
+ var import_i18n38 = require("@wordpress/i18n");
3194
3477
  var supportedCategories = {
3195
- system: (0, import_i18n35.__)("System", "elementor"),
3196
- custom: (0, import_i18n35.__)("Custom Fonts", "elementor"),
3197
- googlefonts: (0, import_i18n35.__)("Google Fonts", "elementor")
3478
+ system: (0, import_i18n38.__)("System", "elementor"),
3479
+ custom: (0, import_i18n38.__)("Custom Fonts", "elementor"),
3480
+ googlefonts: (0, import_i18n38.__)("Google Fonts", "elementor")
3198
3481
  };
3199
3482
  var getFontFamilies = () => {
3200
3483
  const { controls } = getElementorConfig();
@@ -3231,188 +3514,188 @@ var FontFamilyField = () => {
3231
3514
  if (fontFamilies.length === 0) {
3232
3515
  return null;
3233
3516
  }
3234
- return /* @__PURE__ */ React59.createElement(StylesField, { bind: "font-family" }, /* @__PURE__ */ React59.createElement(import_ui48.Grid, { container: true, gap: 2, alignItems: "center", flexWrap: "nowrap" }, /* @__PURE__ */ React59.createElement(import_ui48.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React59.createElement(ControlLabel, null, (0, import_i18n36.__)("Font family", "elementor"))), /* @__PURE__ */ React59.createElement(import_ui48.Grid, { item: true, xs: 6, sx: { minWidth: 0 } }, /* @__PURE__ */ React59.createElement(import_editor_controls36.FontFamilyControl, { fontFamilies }))));
3517
+ return /* @__PURE__ */ React64.createElement(StylesField, { bind: "font-family" }, /* @__PURE__ */ React64.createElement(import_ui53.Grid, { container: true, gap: 2, alignItems: "center", flexWrap: "nowrap" }, /* @__PURE__ */ React64.createElement(import_ui53.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React64.createElement(ControlLabel, null, (0, import_i18n39.__)("Font family", "elementor"))), /* @__PURE__ */ React64.createElement(import_ui53.Grid, { item: true, xs: 6, sx: { minWidth: 0 } }, /* @__PURE__ */ React64.createElement(import_editor_controls36.FontFamilyControl, { fontFamilies }))));
3235
3518
  };
3236
3519
 
3237
3520
  // src/components/style-sections/typography-section/font-size-field.tsx
3238
- var React60 = __toESM(require("react"));
3521
+ var React65 = __toESM(require("react"));
3239
3522
  var import_editor_controls37 = require("@elementor/editor-controls");
3240
- var import_ui49 = require("@elementor/ui");
3241
- var import_i18n37 = require("@wordpress/i18n");
3523
+ var import_ui54 = require("@elementor/ui");
3524
+ var import_i18n40 = require("@wordpress/i18n");
3242
3525
  var FontSizeField = () => {
3243
- return /* @__PURE__ */ React60.createElement(StylesField, { bind: "font-size" }, /* @__PURE__ */ React60.createElement(import_ui49.Grid, { container: true, gap: 2, alignItems: "center", flexWrap: "nowrap" }, /* @__PURE__ */ React60.createElement(import_ui49.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React60.createElement(ControlLabel, null, (0, import_i18n37.__)("Font size", "elementor"))), /* @__PURE__ */ React60.createElement(import_ui49.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React60.createElement(import_editor_controls37.SizeControl, null))));
3526
+ return /* @__PURE__ */ React65.createElement(StylesField, { bind: "font-size" }, /* @__PURE__ */ React65.createElement(import_ui54.Grid, { container: true, gap: 2, alignItems: "center", flexWrap: "nowrap" }, /* @__PURE__ */ React65.createElement(import_ui54.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React65.createElement(ControlLabel, null, (0, import_i18n40.__)("Font size", "elementor"))), /* @__PURE__ */ React65.createElement(import_ui54.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React65.createElement(import_editor_controls37.SizeControl, null))));
3244
3527
  };
3245
3528
 
3246
3529
  // src/components/style-sections/typography-section/font-style-field.tsx
3247
- var React61 = __toESM(require("react"));
3530
+ var React66 = __toESM(require("react"));
3248
3531
  var import_editor_controls38 = require("@elementor/editor-controls");
3249
- var import_icons18 = require("@elementor/icons");
3250
- var import_ui50 = require("@elementor/ui");
3251
- var import_i18n38 = require("@wordpress/i18n");
3532
+ var import_icons20 = require("@elementor/icons");
3533
+ var import_ui55 = require("@elementor/ui");
3534
+ var import_i18n41 = require("@wordpress/i18n");
3252
3535
  var options7 = [
3253
3536
  {
3254
3537
  value: "normal",
3255
- label: (0, import_i18n38.__)("Normal", "elementor"),
3256
- renderContent: ({ size }) => /* @__PURE__ */ React61.createElement(import_icons18.MinusIcon, { fontSize: size }),
3538
+ label: (0, import_i18n41.__)("Normal", "elementor"),
3539
+ renderContent: ({ size }) => /* @__PURE__ */ React66.createElement(import_icons20.MinusIcon, { fontSize: size }),
3257
3540
  showTooltip: true
3258
3541
  },
3259
3542
  {
3260
3543
  value: "italic",
3261
- label: (0, import_i18n38.__)("Italic", "elementor"),
3262
- renderContent: ({ size }) => /* @__PURE__ */ React61.createElement(import_icons18.ItalicIcon, { fontSize: size }),
3544
+ label: (0, import_i18n41.__)("Italic", "elementor"),
3545
+ renderContent: ({ size }) => /* @__PURE__ */ React66.createElement(import_icons20.ItalicIcon, { fontSize: size }),
3263
3546
  showTooltip: true
3264
3547
  }
3265
3548
  ];
3266
- var FontStyleField = () => /* @__PURE__ */ React61.createElement(StylesField, { bind: "font-style" }, /* @__PURE__ */ React61.createElement(import_ui50.Grid, { container: true, gap: 2, alignItems: "center", flexWrap: "nowrap" }, /* @__PURE__ */ React61.createElement(import_ui50.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React61.createElement(import_editor_controls38.ControlFormLabel, null, (0, import_i18n38.__)("Font style", "elementor"))), /* @__PURE__ */ React61.createElement(import_ui50.Grid, { item: true, xs: 6, display: "flex", justifyContent: "end" }, /* @__PURE__ */ React61.createElement(import_editor_controls38.ToggleControl, { options: options7 }))));
3549
+ var FontStyleField = () => /* @__PURE__ */ React66.createElement(StylesField, { bind: "font-style" }, /* @__PURE__ */ React66.createElement(import_ui55.Grid, { container: true, gap: 2, alignItems: "center", flexWrap: "nowrap" }, /* @__PURE__ */ React66.createElement(import_ui55.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React66.createElement(import_editor_controls38.ControlFormLabel, null, (0, import_i18n41.__)("Font style", "elementor"))), /* @__PURE__ */ React66.createElement(import_ui55.Grid, { item: true, xs: 6, display: "flex", justifyContent: "end" }, /* @__PURE__ */ React66.createElement(import_editor_controls38.ToggleControl, { options: options7 }))));
3267
3550
 
3268
3551
  // src/components/style-sections/typography-section/font-weight-field.tsx
3269
- var React62 = __toESM(require("react"));
3552
+ var React67 = __toESM(require("react"));
3270
3553
  var import_editor_controls39 = require("@elementor/editor-controls");
3271
- var import_ui51 = require("@elementor/ui");
3272
- var import_i18n39 = require("@wordpress/i18n");
3554
+ var import_ui56 = require("@elementor/ui");
3555
+ var import_i18n42 = require("@wordpress/i18n");
3273
3556
  var fontWeightOptions = [
3274
- { value: "100", label: (0, import_i18n39.__)("100 - Thin", "elementor") },
3275
- { value: "200", label: (0, import_i18n39.__)("200 - Extra light", "elementor") },
3276
- { value: "300", label: (0, import_i18n39.__)("300 - Light", "elementor") },
3277
- { value: "400", label: (0, import_i18n39.__)("400 - Normal", "elementor") },
3278
- { value: "500", label: (0, import_i18n39.__)("500 - Medium", "elementor") },
3279
- { value: "600", label: (0, import_i18n39.__)("600 - Semi bold", "elementor") },
3280
- { value: "700", label: (0, import_i18n39.__)("700 - Bold", "elementor") },
3281
- { value: "800", label: (0, import_i18n39.__)("800 - Extra bold", "elementor") },
3282
- { value: "900", label: (0, import_i18n39.__)("900 - Black", "elementor") }
3557
+ { value: "100", label: (0, import_i18n42.__)("100 - Thin", "elementor") },
3558
+ { value: "200", label: (0, import_i18n42.__)("200 - Extra light", "elementor") },
3559
+ { value: "300", label: (0, import_i18n42.__)("300 - Light", "elementor") },
3560
+ { value: "400", label: (0, import_i18n42.__)("400 - Normal", "elementor") },
3561
+ { value: "500", label: (0, import_i18n42.__)("500 - Medium", "elementor") },
3562
+ { value: "600", label: (0, import_i18n42.__)("600 - Semi bold", "elementor") },
3563
+ { value: "700", label: (0, import_i18n42.__)("700 - Bold", "elementor") },
3564
+ { value: "800", label: (0, import_i18n42.__)("800 - Extra bold", "elementor") },
3565
+ { value: "900", label: (0, import_i18n42.__)("900 - Black", "elementor") }
3283
3566
  ];
3284
3567
  var FontWeightField = () => {
3285
- return /* @__PURE__ */ React62.createElement(StylesField, { bind: "font-weight" }, /* @__PURE__ */ React62.createElement(import_ui51.Grid, { container: true, gap: 2, alignItems: "center", flexWrap: "nowrap" }, /* @__PURE__ */ React62.createElement(import_ui51.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React62.createElement(ControlLabel, null, (0, import_i18n39.__)("Font weight", "elementor"))), /* @__PURE__ */ React62.createElement(import_ui51.Grid, { item: true, xs: 6, sx: { overflow: "hidden" } }, /* @__PURE__ */ React62.createElement(import_editor_controls39.SelectControl, { options: fontWeightOptions }))));
3568
+ return /* @__PURE__ */ React67.createElement(StylesField, { bind: "font-weight" }, /* @__PURE__ */ React67.createElement(import_ui56.Grid, { container: true, gap: 2, alignItems: "center", flexWrap: "nowrap" }, /* @__PURE__ */ React67.createElement(import_ui56.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React67.createElement(ControlLabel, null, (0, import_i18n42.__)("Font weight", "elementor"))), /* @__PURE__ */ React67.createElement(import_ui56.Grid, { item: true, xs: 6, sx: { overflow: "hidden" } }, /* @__PURE__ */ React67.createElement(import_editor_controls39.SelectControl, { options: fontWeightOptions }))));
3286
3569
  };
3287
3570
 
3288
3571
  // src/components/style-sections/typography-section/letter-spacing-field.tsx
3289
- var React63 = __toESM(require("react"));
3572
+ var React68 = __toESM(require("react"));
3290
3573
  var import_editor_controls40 = require("@elementor/editor-controls");
3291
- var import_ui52 = require("@elementor/ui");
3292
- var import_i18n40 = require("@wordpress/i18n");
3574
+ var import_ui57 = require("@elementor/ui");
3575
+ var import_i18n43 = require("@wordpress/i18n");
3293
3576
  var LetterSpacingField = () => {
3294
- return /* @__PURE__ */ React63.createElement(StylesField, { bind: "letter-spacing" }, /* @__PURE__ */ React63.createElement(import_ui52.Grid, { container: true, gap: 2, alignItems: "center", flexWrap: "nowrap" }, /* @__PURE__ */ React63.createElement(import_ui52.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React63.createElement(ControlLabel, null, (0, import_i18n40.__)("Letter spacing", "elementor"))), /* @__PURE__ */ React63.createElement(import_ui52.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React63.createElement(import_editor_controls40.SizeControl, null))));
3577
+ return /* @__PURE__ */ React68.createElement(StylesField, { bind: "letter-spacing" }, /* @__PURE__ */ React68.createElement(import_ui57.Grid, { container: true, gap: 2, alignItems: "center", flexWrap: "nowrap" }, /* @__PURE__ */ React68.createElement(import_ui57.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React68.createElement(ControlLabel, null, (0, import_i18n43.__)("Letter spacing", "elementor"))), /* @__PURE__ */ React68.createElement(import_ui57.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React68.createElement(import_editor_controls40.SizeControl, null))));
3295
3578
  };
3296
3579
 
3297
3580
  // src/components/style-sections/typography-section/line-height-field.tsx
3298
- var React64 = __toESM(require("react"));
3581
+ var React69 = __toESM(require("react"));
3299
3582
  var import_editor_controls41 = require("@elementor/editor-controls");
3300
- var import_ui53 = require("@elementor/ui");
3301
- var import_i18n41 = require("@wordpress/i18n");
3583
+ var import_ui58 = require("@elementor/ui");
3584
+ var import_i18n44 = require("@wordpress/i18n");
3302
3585
  var LineHeightField = () => {
3303
- return /* @__PURE__ */ React64.createElement(StylesField, { bind: "line-height" }, /* @__PURE__ */ React64.createElement(import_ui53.Grid, { container: true, gap: 2, alignItems: "center", flexWrap: "nowrap" }, /* @__PURE__ */ React64.createElement(import_ui53.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React64.createElement(ControlLabel, null, (0, import_i18n41.__)("Line height", "elementor"))), /* @__PURE__ */ React64.createElement(import_ui53.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React64.createElement(import_editor_controls41.SizeControl, null))));
3586
+ return /* @__PURE__ */ React69.createElement(StylesField, { bind: "line-height" }, /* @__PURE__ */ React69.createElement(import_ui58.Grid, { container: true, gap: 2, alignItems: "center", flexWrap: "nowrap" }, /* @__PURE__ */ React69.createElement(import_ui58.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React69.createElement(ControlLabel, null, (0, import_i18n44.__)("Line height", "elementor"))), /* @__PURE__ */ React69.createElement(import_ui58.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React69.createElement(import_editor_controls41.SizeControl, null))));
3304
3587
  };
3305
3588
 
3306
3589
  // src/components/style-sections/typography-section/text-alignment-field.tsx
3307
- var React65 = __toESM(require("react"));
3590
+ var React70 = __toESM(require("react"));
3308
3591
  var import_editor_controls42 = require("@elementor/editor-controls");
3309
- var import_icons19 = require("@elementor/icons");
3310
- var import_ui54 = require("@elementor/ui");
3311
- var import_i18n42 = require("@wordpress/i18n");
3312
- var AlignStartIcon = (0, import_ui54.withDirection)(import_icons19.AlignLeftIcon);
3313
- var AlignEndIcon = (0, import_ui54.withDirection)(import_icons19.AlignRightIcon);
3592
+ var import_icons21 = require("@elementor/icons");
3593
+ var import_ui59 = require("@elementor/ui");
3594
+ var import_i18n45 = require("@wordpress/i18n");
3595
+ var AlignStartIcon = (0, import_ui59.withDirection)(import_icons21.AlignLeftIcon);
3596
+ var AlignEndIcon = (0, import_ui59.withDirection)(import_icons21.AlignRightIcon);
3314
3597
  var options8 = [
3315
3598
  {
3316
3599
  value: "start",
3317
- label: (0, import_i18n42.__)("Start", "elementor"),
3318
- renderContent: ({ size }) => /* @__PURE__ */ React65.createElement(AlignStartIcon, { fontSize: size }),
3600
+ label: (0, import_i18n45.__)("Start", "elementor"),
3601
+ renderContent: ({ size }) => /* @__PURE__ */ React70.createElement(AlignStartIcon, { fontSize: size }),
3319
3602
  showTooltip: true
3320
3603
  },
3321
3604
  {
3322
3605
  value: "center",
3323
- label: (0, import_i18n42.__)("Center", "elementor"),
3324
- renderContent: ({ size }) => /* @__PURE__ */ React65.createElement(import_icons19.AlignCenterIcon, { fontSize: size }),
3606
+ label: (0, import_i18n45.__)("Center", "elementor"),
3607
+ renderContent: ({ size }) => /* @__PURE__ */ React70.createElement(import_icons21.AlignCenterIcon, { fontSize: size }),
3325
3608
  showTooltip: true
3326
3609
  },
3327
3610
  {
3328
3611
  value: "end",
3329
- label: (0, import_i18n42.__)("End", "elementor"),
3330
- renderContent: ({ size }) => /* @__PURE__ */ React65.createElement(AlignEndIcon, { fontSize: size }),
3612
+ label: (0, import_i18n45.__)("End", "elementor"),
3613
+ renderContent: ({ size }) => /* @__PURE__ */ React70.createElement(AlignEndIcon, { fontSize: size }),
3331
3614
  showTooltip: true
3332
3615
  },
3333
3616
  {
3334
3617
  value: "justify",
3335
- label: (0, import_i18n42.__)("Justify", "elementor"),
3336
- renderContent: ({ size }) => /* @__PURE__ */ React65.createElement(import_icons19.AlignJustifiedIcon, { fontSize: size }),
3618
+ label: (0, import_i18n45.__)("Justify", "elementor"),
3619
+ renderContent: ({ size }) => /* @__PURE__ */ React70.createElement(import_icons21.AlignJustifiedIcon, { fontSize: size }),
3337
3620
  showTooltip: true
3338
3621
  }
3339
3622
  ];
3340
3623
  var TextAlignmentField = () => {
3341
- return /* @__PURE__ */ React65.createElement(StylesField, { bind: "text-align" }, /* @__PURE__ */ React65.createElement(import_ui54.Grid, { container: true, gap: 2, alignItems: "center", flexWrap: "nowrap" }, /* @__PURE__ */ React65.createElement(import_ui54.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React65.createElement(ControlLabel, null, (0, import_i18n42.__)("Text align", "elementor"))), /* @__PURE__ */ React65.createElement(import_ui54.Grid, { item: true, xs: 6, display: "flex", justifyContent: "end" }, /* @__PURE__ */ React65.createElement(import_editor_controls42.ToggleControl, { options: options8 }))));
3624
+ return /* @__PURE__ */ React70.createElement(StylesField, { bind: "text-align" }, /* @__PURE__ */ React70.createElement(import_ui59.Grid, { container: true, gap: 2, alignItems: "center", flexWrap: "nowrap" }, /* @__PURE__ */ React70.createElement(import_ui59.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React70.createElement(ControlLabel, null, (0, import_i18n45.__)("Text align", "elementor"))), /* @__PURE__ */ React70.createElement(import_ui59.Grid, { item: true, xs: 6, display: "flex", justifyContent: "end" }, /* @__PURE__ */ React70.createElement(import_editor_controls42.ToggleControl, { options: options8 }))));
3342
3625
  };
3343
3626
 
3344
3627
  // src/components/style-sections/typography-section/text-color-field.tsx
3345
- var React66 = __toESM(require("react"));
3628
+ var React71 = __toESM(require("react"));
3346
3629
  var import_editor_controls43 = require("@elementor/editor-controls");
3347
- var import_ui55 = require("@elementor/ui");
3348
- var import_i18n43 = require("@wordpress/i18n");
3630
+ var import_ui60 = require("@elementor/ui");
3631
+ var import_i18n46 = require("@wordpress/i18n");
3349
3632
  var TextColorField = () => {
3350
- return /* @__PURE__ */ React66.createElement(StylesField, { bind: "color" }, /* @__PURE__ */ React66.createElement(import_ui55.Grid, { container: true, gap: 2, alignItems: "center", flexWrap: "nowrap" }, /* @__PURE__ */ React66.createElement(import_ui55.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React66.createElement(ControlLabel, null, (0, import_i18n43.__)("Text color", "elementor"))), /* @__PURE__ */ React66.createElement(import_ui55.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React66.createElement(import_editor_controls43.ColorControl, null))));
3633
+ return /* @__PURE__ */ React71.createElement(StylesField, { bind: "color" }, /* @__PURE__ */ React71.createElement(import_ui60.Grid, { container: true, gap: 2, alignItems: "center", flexWrap: "nowrap" }, /* @__PURE__ */ React71.createElement(import_ui60.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React71.createElement(ControlLabel, null, (0, import_i18n46.__)("Text color", "elementor"))), /* @__PURE__ */ React71.createElement(import_ui60.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React71.createElement(import_editor_controls43.ColorControl, null))));
3351
3634
  };
3352
3635
 
3353
3636
  // src/components/style-sections/typography-section/text-decoration-field.tsx
3354
- var React67 = __toESM(require("react"));
3637
+ var React72 = __toESM(require("react"));
3355
3638
  var import_editor_controls44 = require("@elementor/editor-controls");
3356
- var import_icons20 = require("@elementor/icons");
3357
- var import_ui56 = require("@elementor/ui");
3358
- var import_i18n44 = require("@wordpress/i18n");
3639
+ var import_icons22 = require("@elementor/icons");
3640
+ var import_ui61 = require("@elementor/ui");
3641
+ var import_i18n47 = require("@wordpress/i18n");
3359
3642
  var options9 = [
3360
3643
  {
3361
3644
  value: "none",
3362
- label: (0, import_i18n44.__)("None", "elementor"),
3363
- renderContent: ({ size }) => /* @__PURE__ */ React67.createElement(import_icons20.MinusIcon, { fontSize: size }),
3645
+ label: (0, import_i18n47.__)("None", "elementor"),
3646
+ renderContent: ({ size }) => /* @__PURE__ */ React72.createElement(import_icons22.MinusIcon, { fontSize: size }),
3364
3647
  showTooltip: true,
3365
3648
  exclusive: true
3366
3649
  },
3367
3650
  {
3368
3651
  value: "underline",
3369
- label: (0, import_i18n44.__)("Underline", "elementor"),
3370
- renderContent: ({ size }) => /* @__PURE__ */ React67.createElement(import_icons20.UnderlineIcon, { fontSize: size }),
3652
+ label: (0, import_i18n47.__)("Underline", "elementor"),
3653
+ renderContent: ({ size }) => /* @__PURE__ */ React72.createElement(import_icons22.UnderlineIcon, { fontSize: size }),
3371
3654
  showTooltip: true
3372
3655
  },
3373
3656
  {
3374
3657
  value: "line-through",
3375
- label: (0, import_i18n44.__)("Line-through", "elementor"),
3376
- renderContent: ({ size }) => /* @__PURE__ */ React67.createElement(import_icons20.StrikethroughIcon, { fontSize: size }),
3658
+ label: (0, import_i18n47.__)("Line-through", "elementor"),
3659
+ renderContent: ({ size }) => /* @__PURE__ */ React72.createElement(import_icons22.StrikethroughIcon, { fontSize: size }),
3377
3660
  showTooltip: true
3378
3661
  },
3379
3662
  {
3380
3663
  value: "overline",
3381
- label: (0, import_i18n44.__)("Overline", "elementor"),
3382
- renderContent: ({ size }) => /* @__PURE__ */ React67.createElement(import_icons20.OverlineIcon, { fontSize: size }),
3664
+ label: (0, import_i18n47.__)("Overline", "elementor"),
3665
+ renderContent: ({ size }) => /* @__PURE__ */ React72.createElement(import_icons22.OverlineIcon, { fontSize: size }),
3383
3666
  showTooltip: true
3384
3667
  }
3385
3668
  ];
3386
- var TextDecorationField = () => /* @__PURE__ */ React67.createElement(StylesField, { bind: "text-decoration" }, /* @__PURE__ */ React67.createElement(import_ui56.Grid, { container: true, gap: 2, alignItems: "center", flexWrap: "nowrap" }, /* @__PURE__ */ React67.createElement(import_ui56.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React67.createElement(ControlLabel, null, (0, import_i18n44.__)("Line decoration", "elementor"))), /* @__PURE__ */ React67.createElement(import_ui56.Grid, { item: true, xs: 6, display: "flex", justifyContent: "end" }, /* @__PURE__ */ React67.createElement(import_editor_controls44.ToggleControl, { options: options9, exclusive: false }))));
3669
+ var TextDecorationField = () => /* @__PURE__ */ React72.createElement(StylesField, { bind: "text-decoration" }, /* @__PURE__ */ React72.createElement(import_ui61.Grid, { container: true, gap: 2, alignItems: "center", flexWrap: "nowrap" }, /* @__PURE__ */ React72.createElement(import_ui61.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React72.createElement(ControlLabel, null, (0, import_i18n47.__)("Line decoration", "elementor"))), /* @__PURE__ */ React72.createElement(import_ui61.Grid, { item: true, xs: 6, display: "flex", justifyContent: "end" }, /* @__PURE__ */ React72.createElement(import_editor_controls44.ToggleControl, { options: options9, exclusive: false }))));
3387
3670
 
3388
3671
  // src/components/style-sections/typography-section/text-direction-field.tsx
3389
- var React68 = __toESM(require("react"));
3672
+ var React73 = __toESM(require("react"));
3390
3673
  var import_editor_controls45 = require("@elementor/editor-controls");
3391
- var import_icons21 = require("@elementor/icons");
3392
- var import_ui57 = require("@elementor/ui");
3393
- var import_i18n45 = require("@wordpress/i18n");
3674
+ var import_icons23 = require("@elementor/icons");
3675
+ var import_ui62 = require("@elementor/ui");
3676
+ var import_i18n48 = require("@wordpress/i18n");
3394
3677
  var options10 = [
3395
3678
  {
3396
3679
  value: "ltr",
3397
- label: (0, import_i18n45.__)("Left to right", "elementor"),
3398
- renderContent: ({ size }) => /* @__PURE__ */ React68.createElement(import_icons21.TextDirectionLtrIcon, { fontSize: size }),
3680
+ label: (0, import_i18n48.__)("Left to right", "elementor"),
3681
+ renderContent: ({ size }) => /* @__PURE__ */ React73.createElement(import_icons23.TextDirectionLtrIcon, { fontSize: size }),
3399
3682
  showTooltip: true
3400
3683
  },
3401
3684
  {
3402
3685
  value: "rtl",
3403
- label: (0, import_i18n45.__)("Right to left", "elementor"),
3404
- renderContent: ({ size }) => /* @__PURE__ */ React68.createElement(import_icons21.TextDirectionRtlIcon, { fontSize: size }),
3686
+ label: (0, import_i18n48.__)("Right to left", "elementor"),
3687
+ renderContent: ({ size }) => /* @__PURE__ */ React73.createElement(import_icons23.TextDirectionRtlIcon, { fontSize: size }),
3405
3688
  showTooltip: true
3406
3689
  }
3407
3690
  ];
3408
3691
  var TextDirectionField = () => {
3409
- return /* @__PURE__ */ React68.createElement(StylesField, { bind: "direction" }, /* @__PURE__ */ React68.createElement(import_ui57.Grid, { container: true, gap: 2, alignItems: "center", flexWrap: "nowrap" }, /* @__PURE__ */ React68.createElement(import_ui57.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React68.createElement(ControlLabel, null, (0, import_i18n45.__)("Direction", "elementor"))), /* @__PURE__ */ React68.createElement(import_ui57.Grid, { item: true, xs: 6, display: "flex", justifyContent: "end" }, /* @__PURE__ */ React68.createElement(import_editor_controls45.ToggleControl, { options: options10 }))));
3692
+ return /* @__PURE__ */ React73.createElement(StylesField, { bind: "direction" }, /* @__PURE__ */ React73.createElement(import_ui62.Grid, { container: true, gap: 2, alignItems: "center", flexWrap: "nowrap" }, /* @__PURE__ */ React73.createElement(import_ui62.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React73.createElement(ControlLabel, null, (0, import_i18n48.__)("Direction", "elementor"))), /* @__PURE__ */ React73.createElement(import_ui62.Grid, { item: true, xs: 6, display: "flex", justifyContent: "end" }, /* @__PURE__ */ React73.createElement(import_editor_controls45.ToggleControl, { options: options10 }))));
3410
3693
  };
3411
3694
 
3412
3695
  // src/components/style-sections/typography-section/text-stroke-field.tsx
3413
- var React69 = __toESM(require("react"));
3696
+ var React74 = __toESM(require("react"));
3414
3697
  var import_editor_controls46 = require("@elementor/editor-controls");
3415
- var import_i18n46 = require("@wordpress/i18n");
3698
+ var import_i18n49 = require("@wordpress/i18n");
3416
3699
  var initTextStroke = {
3417
3700
  $$type: "stroke",
3418
3701
  value: {
@@ -3430,6 +3713,7 @@ var initTextStroke = {
3430
3713
  }
3431
3714
  };
3432
3715
  var TextStrokeField = () => {
3716
+ const { canEdit } = useStyle();
3433
3717
  const [textStroke, setTextStroke] = useStylesField("stroke");
3434
3718
  const addTextStroke = () => {
3435
3719
  setTextStroke(initTextStroke);
@@ -3438,67 +3722,68 @@ var TextStrokeField = () => {
3438
3722
  setTextStroke(null);
3439
3723
  };
3440
3724
  const hasTextStroke = Boolean(textStroke);
3441
- return /* @__PURE__ */ React69.createElement(StylesField, { bind: "stroke" }, /* @__PURE__ */ React69.createElement(
3725
+ return /* @__PURE__ */ React74.createElement(StylesField, { bind: "stroke" }, /* @__PURE__ */ React74.createElement(
3442
3726
  AddOrRemoveContent,
3443
3727
  {
3444
- label: (0, import_i18n46.__)("Text stroke", "elementor"),
3728
+ label: (0, import_i18n49.__)("Text stroke", "elementor"),
3445
3729
  isAdded: hasTextStroke,
3446
3730
  onAdd: addTextStroke,
3447
- onRemove: removeTextStroke
3731
+ onRemove: removeTextStroke,
3732
+ disabled: !canEdit
3448
3733
  },
3449
- /* @__PURE__ */ React69.createElement(import_editor_controls46.StrokeControl, null)
3734
+ /* @__PURE__ */ React74.createElement(import_editor_controls46.StrokeControl, null)
3450
3735
  ));
3451
3736
  };
3452
3737
 
3453
3738
  // src/components/style-sections/typography-section/transform-field.tsx
3454
- var React70 = __toESM(require("react"));
3739
+ var React75 = __toESM(require("react"));
3455
3740
  var import_editor_controls47 = require("@elementor/editor-controls");
3456
- var import_icons22 = require("@elementor/icons");
3457
- var import_ui58 = require("@elementor/ui");
3458
- var import_i18n47 = require("@wordpress/i18n");
3741
+ var import_icons24 = require("@elementor/icons");
3742
+ var import_ui63 = require("@elementor/ui");
3743
+ var import_i18n50 = require("@wordpress/i18n");
3459
3744
  var options11 = [
3460
3745
  {
3461
3746
  value: "none",
3462
- label: (0, import_i18n47.__)("None", "elementor"),
3463
- renderContent: ({ size }) => /* @__PURE__ */ React70.createElement(import_icons22.MinusIcon, { fontSize: size }),
3747
+ label: (0, import_i18n50.__)("None", "elementor"),
3748
+ renderContent: ({ size }) => /* @__PURE__ */ React75.createElement(import_icons24.MinusIcon, { fontSize: size }),
3464
3749
  showTooltip: true
3465
3750
  },
3466
3751
  {
3467
3752
  value: "capitalize",
3468
- label: (0, import_i18n47.__)("Capitalize", "elementor"),
3469
- renderContent: ({ size }) => /* @__PURE__ */ React70.createElement(import_icons22.LetterCaseIcon, { fontSize: size }),
3753
+ label: (0, import_i18n50.__)("Capitalize", "elementor"),
3754
+ renderContent: ({ size }) => /* @__PURE__ */ React75.createElement(import_icons24.LetterCaseIcon, { fontSize: size }),
3470
3755
  showTooltip: true
3471
3756
  },
3472
3757
  {
3473
3758
  value: "uppercase",
3474
- label: (0, import_i18n47.__)("Uppercase", "elementor"),
3475
- renderContent: ({ size }) => /* @__PURE__ */ React70.createElement(import_icons22.LetterCaseUpperIcon, { fontSize: size }),
3759
+ label: (0, import_i18n50.__)("Uppercase", "elementor"),
3760
+ renderContent: ({ size }) => /* @__PURE__ */ React75.createElement(import_icons24.LetterCaseUpperIcon, { fontSize: size }),
3476
3761
  showTooltip: true
3477
3762
  },
3478
3763
  {
3479
3764
  value: "lowercase",
3480
- label: (0, import_i18n47.__)("Lowercase", "elementor"),
3481
- renderContent: ({ size }) => /* @__PURE__ */ React70.createElement(import_icons22.LetterCaseLowerIcon, { fontSize: size }),
3765
+ label: (0, import_i18n50.__)("Lowercase", "elementor"),
3766
+ renderContent: ({ size }) => /* @__PURE__ */ React75.createElement(import_icons24.LetterCaseLowerIcon, { fontSize: size }),
3482
3767
  showTooltip: true
3483
3768
  }
3484
3769
  ];
3485
- var TransformField = () => /* @__PURE__ */ React70.createElement(StylesField, { bind: "text-transform" }, /* @__PURE__ */ React70.createElement(import_ui58.Grid, { container: true, gap: 2, alignItems: "center", flexWrap: "nowrap" }, /* @__PURE__ */ React70.createElement(import_ui58.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React70.createElement(ControlLabel, null, (0, import_i18n47.__)("Text transform", "elementor"))), /* @__PURE__ */ React70.createElement(import_ui58.Grid, { item: true, xs: 6, display: "flex", justifyContent: "end" }, /* @__PURE__ */ React70.createElement(import_editor_controls47.ToggleControl, { options: options11 }))));
3770
+ var TransformField = () => /* @__PURE__ */ React75.createElement(StylesField, { bind: "text-transform" }, /* @__PURE__ */ React75.createElement(import_ui63.Grid, { container: true, gap: 2, alignItems: "center", flexWrap: "nowrap" }, /* @__PURE__ */ React75.createElement(import_ui63.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React75.createElement(ControlLabel, null, (0, import_i18n50.__)("Text transform", "elementor"))), /* @__PURE__ */ React75.createElement(import_ui63.Grid, { item: true, xs: 6, display: "flex", justifyContent: "end" }, /* @__PURE__ */ React75.createElement(import_editor_controls47.ToggleControl, { options: options11 }))));
3486
3771
 
3487
3772
  // src/components/style-sections/typography-section/word-spacing-field.tsx
3488
- var React71 = __toESM(require("react"));
3773
+ var React76 = __toESM(require("react"));
3489
3774
  var import_editor_controls48 = require("@elementor/editor-controls");
3490
- var import_ui59 = require("@elementor/ui");
3491
- var import_i18n48 = require("@wordpress/i18n");
3775
+ var import_ui64 = require("@elementor/ui");
3776
+ var import_i18n51 = require("@wordpress/i18n");
3492
3777
  var WordSpacingField = () => {
3493
- return /* @__PURE__ */ React71.createElement(StylesField, { bind: "word-spacing" }, /* @__PURE__ */ React71.createElement(import_ui59.Grid, { container: true, gap: 2, alignItems: "center", flexWrap: "nowrap" }, /* @__PURE__ */ React71.createElement(import_ui59.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React71.createElement(ControlLabel, null, (0, import_i18n48.__)("Word spacing", "elementor"))), /* @__PURE__ */ React71.createElement(import_ui59.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React71.createElement(import_editor_controls48.SizeControl, null))));
3778
+ return /* @__PURE__ */ React76.createElement(StylesField, { bind: "word-spacing" }, /* @__PURE__ */ React76.createElement(import_ui64.Grid, { container: true, gap: 2, alignItems: "center", flexWrap: "nowrap" }, /* @__PURE__ */ React76.createElement(import_ui64.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React76.createElement(ControlLabel, null, (0, import_i18n51.__)("Word spacing", "elementor"))), /* @__PURE__ */ React76.createElement(import_ui64.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React76.createElement(import_editor_controls48.SizeControl, null))));
3494
3779
  };
3495
3780
 
3496
3781
  // src/components/style-sections/typography-section/typography-section.tsx
3497
3782
  var TypographySection = () => {
3498
3783
  const [columnCount] = useStylesField("column-count");
3499
- const isVersion330Active = (0, import_editor_v1_adapters10.isExperimentActive)("e_v_3_30");
3784
+ const isVersion330Active = (0, import_editor_v1_adapters11.isExperimentActive)("e_v_3_30");
3500
3785
  const hasMultiColumns = !!(columnCount?.value && columnCount?.value > 1);
3501
- return /* @__PURE__ */ React72.createElement(SectionContent, null, /* @__PURE__ */ React72.createElement(FontFamilyField, null), /* @__PURE__ */ React72.createElement(FontWeightField, null), /* @__PURE__ */ React72.createElement(FontSizeField, null), /* @__PURE__ */ React72.createElement(PanelDivider, null), /* @__PURE__ */ React72.createElement(TextAlignmentField, null), /* @__PURE__ */ React72.createElement(TextColorField, null), /* @__PURE__ */ React72.createElement(CollapsibleContent, null, /* @__PURE__ */ React72.createElement(SectionContent, { sx: { pt: 2 } }, /* @__PURE__ */ React72.createElement(LineHeightField, null), /* @__PURE__ */ React72.createElement(LetterSpacingField, null), /* @__PURE__ */ React72.createElement(WordSpacingField, null), isVersion330Active && /* @__PURE__ */ React72.createElement(React72.Fragment, null, /* @__PURE__ */ React72.createElement(ColumnCountField, null), hasMultiColumns && /* @__PURE__ */ React72.createElement(ColumnGapField, null)), /* @__PURE__ */ React72.createElement(PanelDivider, null), /* @__PURE__ */ React72.createElement(TextDecorationField, null), /* @__PURE__ */ React72.createElement(TransformField, null), /* @__PURE__ */ React72.createElement(TextDirectionField, null), /* @__PURE__ */ React72.createElement(FontStyleField, null), /* @__PURE__ */ React72.createElement(TextStrokeField, null))));
3786
+ return /* @__PURE__ */ React77.createElement(SectionContent, null, /* @__PURE__ */ React77.createElement(FontFamilyField, null), /* @__PURE__ */ React77.createElement(FontWeightField, null), /* @__PURE__ */ React77.createElement(FontSizeField, null), /* @__PURE__ */ React77.createElement(PanelDivider, null), /* @__PURE__ */ React77.createElement(TextAlignmentField, null), /* @__PURE__ */ React77.createElement(TextColorField, null), /* @__PURE__ */ React77.createElement(CollapsibleContent, null, /* @__PURE__ */ React77.createElement(SectionContent, { sx: { pt: 2 } }, /* @__PURE__ */ React77.createElement(LineHeightField, null), /* @__PURE__ */ React77.createElement(LetterSpacingField, null), /* @__PURE__ */ React77.createElement(WordSpacingField, null), isVersion330Active && /* @__PURE__ */ React77.createElement(React77.Fragment, null, /* @__PURE__ */ React77.createElement(ColumnCountField, null), hasMultiColumns && /* @__PURE__ */ React77.createElement(ColumnGapField, null)), /* @__PURE__ */ React77.createElement(PanelDivider, null), /* @__PURE__ */ React77.createElement(TextDecorationField, null), /* @__PURE__ */ React77.createElement(TransformField, null), /* @__PURE__ */ React77.createElement(TextDirectionField, null), /* @__PURE__ */ React77.createElement(FontStyleField, null), /* @__PURE__ */ React77.createElement(TextStrokeField, null))));
3502
3787
  };
3503
3788
 
3504
3789
  // src/components/style-tab.tsx
@@ -3514,15 +3799,15 @@ var PanelSection = ({ section }) => {
3514
3799
  const { component, name, title } = section;
3515
3800
  const tabDefaults = useDefaultPanelSettings();
3516
3801
  const SectionComponent = component;
3517
- const isExpanded = (0, import_editor_v1_adapters11.isExperimentActive)(EXPERIMENTAL_FEATURES.V_3_30) ? tabDefaults.defaultSectionsExpanded.style?.includes(name) : true;
3518
- return /* @__PURE__ */ React73.createElement(Section, { title, defaultExpanded: isExpanded }, /* @__PURE__ */ React73.createElement(SectionComponent, null));
3802
+ const isExpanded = (0, import_editor_v1_adapters12.isExperimentActive)(EXPERIMENTAL_FEATURES.V_3_30) ? tabDefaults.defaultSectionsExpanded.style?.includes(name) : false;
3803
+ return /* @__PURE__ */ React78.createElement(Section, { title, defaultExpanded: isExpanded }, /* @__PURE__ */ React78.createElement(SectionComponent, null));
3519
3804
  };
3520
3805
  var StyleTab = () => {
3521
3806
  const currentClassesProp = useCurrentClassesProp();
3522
3807
  const [activeStyleDefId, setActiveStyleDefId] = useActiveStyleDefId(currentClassesProp);
3523
3808
  const [activeStyleState, setActiveStyleState] = (0, import_react27.useState)(null);
3524
- const breakpoint = (0, import_editor_responsive2.useActiveBreakpoint)();
3525
- return /* @__PURE__ */ React73.createElement(ClassesPropProvider, { prop: currentClassesProp }, /* @__PURE__ */ React73.createElement(
3809
+ const breakpoint = (0, import_editor_responsive3.useActiveBreakpoint)();
3810
+ return /* @__PURE__ */ React78.createElement(ClassesPropProvider, { prop: currentClassesProp }, /* @__PURE__ */ React78.createElement(
3526
3811
  StyleProvider,
3527
3812
  {
3528
3813
  meta: { breakpoint, state: activeStyleState },
@@ -3533,76 +3818,76 @@ var StyleTab = () => {
3533
3818
  },
3534
3819
  setMetaState: setActiveStyleState
3535
3820
  },
3536
- /* @__PURE__ */ React73.createElement(import_session4.SessionStorageProvider, { prefix: activeStyleDefId ?? "" }, /* @__PURE__ */ React73.createElement(StyleInheritanceProvider, null, /* @__PURE__ */ React73.createElement(ClassesHeader, null, /* @__PURE__ */ React73.createElement(CssClassSelector, null), /* @__PURE__ */ React73.createElement(import_ui60.Divider, null)), /* @__PURE__ */ React73.createElement(SectionsList, null, /* @__PURE__ */ React73.createElement(
3821
+ /* @__PURE__ */ React78.createElement(import_session4.SessionStorageProvider, { prefix: activeStyleDefId ?? "" }, /* @__PURE__ */ React78.createElement(StyleInheritanceProvider, null, /* @__PURE__ */ React78.createElement(ClassesHeader, null, /* @__PURE__ */ React78.createElement(CssClassSelector, null), /* @__PURE__ */ React78.createElement(import_ui65.Divider, null)), /* @__PURE__ */ React78.createElement(SectionsList, null, /* @__PURE__ */ React78.createElement(
3537
3822
  PanelSection,
3538
3823
  {
3539
3824
  section: {
3540
3825
  component: LayoutSection,
3541
3826
  name: "Layout",
3542
- title: (0, import_i18n49.__)("Layout", "elementor")
3827
+ title: (0, import_i18n52.__)("Layout", "elementor")
3543
3828
  }
3544
3829
  }
3545
- ), /* @__PURE__ */ React73.createElement(
3830
+ ), /* @__PURE__ */ React78.createElement(
3546
3831
  PanelSection,
3547
3832
  {
3548
3833
  section: {
3549
3834
  component: SpacingSection,
3550
3835
  name: "Spacing",
3551
- title: (0, import_i18n49.__)("Spacing", "elementor")
3836
+ title: (0, import_i18n52.__)("Spacing", "elementor")
3552
3837
  }
3553
3838
  }
3554
- ), /* @__PURE__ */ React73.createElement(
3839
+ ), /* @__PURE__ */ React78.createElement(
3555
3840
  PanelSection,
3556
3841
  {
3557
3842
  section: {
3558
3843
  component: SizeSection,
3559
3844
  name: "Size",
3560
- title: (0, import_i18n49.__)("Size", "elementor")
3845
+ title: (0, import_i18n52.__)("Size", "elementor")
3561
3846
  }
3562
3847
  }
3563
- ), /* @__PURE__ */ React73.createElement(
3848
+ ), /* @__PURE__ */ React78.createElement(
3564
3849
  PanelSection,
3565
3850
  {
3566
3851
  section: {
3567
3852
  component: PositionSection,
3568
3853
  name: "Position",
3569
- title: (0, import_i18n49.__)("Position", "elementor")
3854
+ title: (0, import_i18n52.__)("Position", "elementor")
3570
3855
  }
3571
3856
  }
3572
- ), /* @__PURE__ */ React73.createElement(
3857
+ ), /* @__PURE__ */ React78.createElement(
3573
3858
  PanelSection,
3574
3859
  {
3575
3860
  section: {
3576
3861
  component: TypographySection,
3577
3862
  name: "Typography",
3578
- title: (0, import_i18n49.__)("Typography", "elementor")
3863
+ title: (0, import_i18n52.__)("Typography", "elementor")
3579
3864
  }
3580
3865
  }
3581
- ), /* @__PURE__ */ React73.createElement(
3866
+ ), /* @__PURE__ */ React78.createElement(
3582
3867
  PanelSection,
3583
3868
  {
3584
3869
  section: {
3585
3870
  component: BackgroundSection,
3586
3871
  name: "Background",
3587
- title: (0, import_i18n49.__)("Background", "elementor")
3872
+ title: (0, import_i18n52.__)("Background", "elementor")
3588
3873
  }
3589
3874
  }
3590
- ), /* @__PURE__ */ React73.createElement(
3875
+ ), /* @__PURE__ */ React78.createElement(
3591
3876
  PanelSection,
3592
3877
  {
3593
3878
  section: {
3594
3879
  component: BorderSection,
3595
3880
  name: "Border",
3596
- title: (0, import_i18n49.__)("Border", "elementor")
3881
+ title: (0, import_i18n52.__)("Border", "elementor")
3597
3882
  }
3598
3883
  }
3599
- ), /* @__PURE__ */ React73.createElement(
3884
+ ), /* @__PURE__ */ React78.createElement(
3600
3885
  PanelSection,
3601
3886
  {
3602
3887
  section: {
3603
3888
  component: EffectsSection,
3604
3889
  name: "Effects",
3605
- title: (0, import_i18n49.__)("Effects", "elementor")
3890
+ title: (0, import_i18n52.__)("Effects", "elementor")
3606
3891
  }
3607
3892
  }
3608
3893
  ))))
@@ -3610,7 +3895,7 @@ var StyleTab = () => {
3610
3895
  };
3611
3896
  function ClassesHeader({ children }) {
3612
3897
  const scrollDirection = useScrollDirection();
3613
- return /* @__PURE__ */ React73.createElement(import_ui60.Stack, { sx: { ...stickyHeaderStyles, top: scrollDirection === "up" ? TABS_HEADER_HEIGHT : 0 } }, children);
3898
+ return /* @__PURE__ */ React78.createElement(import_ui65.Stack, { sx: { ...stickyHeaderStyles, top: scrollDirection === "up" ? TABS_HEADER_HEIGHT : 0 } }, children);
3614
3899
  }
3615
3900
  function useCurrentClassesProp() {
3616
3901
  const { elementType } = useElement();
@@ -3629,16 +3914,16 @@ var EditingPanelTabs = () => {
3629
3914
  return (
3630
3915
  // When switching between elements, the local states should be reset. We are using key to rerender the tabs.
3631
3916
  // Reference: https://react.dev/learn/preserving-and-resetting-state#resetting-a-form-with-a-key
3632
- /* @__PURE__ */ React74.createElement(import_react28.Fragment, { key: element.id }, /* @__PURE__ */ React74.createElement(PanelTabContent, null))
3917
+ /* @__PURE__ */ React79.createElement(import_react28.Fragment, { key: element.id }, /* @__PURE__ */ React79.createElement(PanelTabContent, null))
3633
3918
  );
3634
3919
  };
3635
3920
  var PanelTabContent = () => {
3636
3921
  const editorDefaults = useDefaultPanelSettings();
3637
- const defaultComponentTab = (0, import_editor_v1_adapters12.isExperimentActive)(EXPERIMENTAL_FEATURES.V_3_30) ? editorDefaults.defaultTab : "settings";
3922
+ const defaultComponentTab = (0, import_editor_v1_adapters13.isExperimentActive)(EXPERIMENTAL_FEATURES.V_3_30) ? editorDefaults.defaultTab : "settings";
3638
3923
  const [currentTab, setCurrentTab] = useStateByElement("tab", defaultComponentTab);
3639
- const { getTabProps, getTabPanelProps, getTabsProps } = (0, import_ui61.useTabs)(currentTab);
3640
- return /* @__PURE__ */ React74.createElement(ScrollProvider, null, /* @__PURE__ */ React74.createElement(import_ui61.Stack, { direction: "column", sx: { width: "100%" } }, /* @__PURE__ */ React74.createElement(import_ui61.Stack, { sx: { ...stickyHeaderStyles, top: 0 } }, /* @__PURE__ */ React74.createElement(
3641
- import_ui61.Tabs,
3924
+ const { getTabProps, getTabPanelProps, getTabsProps } = (0, import_ui66.useTabs)(currentTab);
3925
+ return /* @__PURE__ */ React79.createElement(ScrollProvider, null, /* @__PURE__ */ React79.createElement(import_ui66.Stack, { direction: "column", sx: { width: "100%" } }, /* @__PURE__ */ React79.createElement(import_ui66.Stack, { sx: { ...stickyHeaderStyles, top: 0 } }, /* @__PURE__ */ React79.createElement(
3926
+ import_ui66.Tabs,
3642
3927
  {
3643
3928
  variant: "fullWidth",
3644
3929
  size: "small",
@@ -3649,9 +3934,9 @@ var PanelTabContent = () => {
3649
3934
  setCurrentTab(newValue);
3650
3935
  }
3651
3936
  },
3652
- /* @__PURE__ */ React74.createElement(import_ui61.Tab, { label: (0, import_i18n50.__)("General", "elementor"), ...getTabProps("settings") }),
3653
- /* @__PURE__ */ React74.createElement(import_ui61.Tab, { label: (0, import_i18n50.__)("Style", "elementor"), ...getTabProps("style") })
3654
- ), /* @__PURE__ */ React74.createElement(import_ui61.Divider, null)), /* @__PURE__ */ React74.createElement(import_ui61.TabPanel, { ...getTabPanelProps("settings"), disablePadding: true }, /* @__PURE__ */ React74.createElement(SettingsTab, null)), /* @__PURE__ */ React74.createElement(import_ui61.TabPanel, { ...getTabPanelProps("style"), disablePadding: true }, /* @__PURE__ */ React74.createElement(StyleTab, null))));
3937
+ /* @__PURE__ */ React79.createElement(import_ui66.Tab, { label: (0, import_i18n53.__)("General", "elementor"), ...getTabProps("settings") }),
3938
+ /* @__PURE__ */ React79.createElement(import_ui66.Tab, { label: (0, import_i18n53.__)("Style", "elementor"), ...getTabProps("style") })
3939
+ ), /* @__PURE__ */ React79.createElement(import_ui66.Divider, null)), /* @__PURE__ */ React79.createElement(import_ui66.TabPanel, { ...getTabPanelProps("settings"), disablePadding: true }, /* @__PURE__ */ React79.createElement(SettingsTab, null)), /* @__PURE__ */ React79.createElement(import_ui66.TabPanel, { ...getTabPanelProps("style"), disablePadding: true }, /* @__PURE__ */ React79.createElement(StyleTab, null))));
3655
3940
  };
3656
3941
 
3657
3942
  // src/components/editing-panel.tsx
@@ -3663,8 +3948,8 @@ var EditingPanel = () => {
3663
3948
  if (!element || !elementType) {
3664
3949
  return null;
3665
3950
  }
3666
- const panelTitle = (0, import_i18n51.__)("Edit %s", "elementor").replace("%s", elementType.title);
3667
- return /* @__PURE__ */ React75.createElement(import_ui62.ErrorBoundary, { fallback: /* @__PURE__ */ React75.createElement(EditorPanelErrorFallback, null) }, /* @__PURE__ */ React75.createElement(import_session5.SessionStorageProvider, { prefix: "elementor" }, /* @__PURE__ */ React75.createElement(import_editor_ui4.ThemeProvider, null, /* @__PURE__ */ React75.createElement(import_editor_panels.Panel, null, /* @__PURE__ */ React75.createElement(import_editor_panels.PanelHeader, null, /* @__PURE__ */ React75.createElement(import_editor_panels.PanelHeaderTitle, null, panelTitle), /* @__PURE__ */ React75.createElement(import_icons23.AtomIcon, { fontSize: "small", sx: { color: "text.tertiary" } })), /* @__PURE__ */ React75.createElement(import_editor_panels.PanelBody, null, /* @__PURE__ */ React75.createElement(import_editor_controls49.ControlActionsProvider, { items: menuItems }, /* @__PURE__ */ React75.createElement(import_editor_controls49.ControlReplacementsProvider, { replacements: controlReplacements }, /* @__PURE__ */ React75.createElement(ElementProvider, { element, elementType }, /* @__PURE__ */ React75.createElement(EditingPanelTabs, null)))))))));
3951
+ const panelTitle = (0, import_i18n54.__)("Edit %s", "elementor").replace("%s", elementType.title);
3952
+ return /* @__PURE__ */ React80.createElement(import_ui67.ErrorBoundary, { fallback: /* @__PURE__ */ React80.createElement(EditorPanelErrorFallback, null) }, /* @__PURE__ */ React80.createElement(import_session5.SessionStorageProvider, { prefix: "elementor" }, /* @__PURE__ */ React80.createElement(import_editor_ui4.ThemeProvider, null, /* @__PURE__ */ React80.createElement(import_editor_panels.Panel, null, /* @__PURE__ */ React80.createElement(import_editor_panels.PanelHeader, null, /* @__PURE__ */ React80.createElement(import_editor_panels.PanelHeaderTitle, null, panelTitle), /* @__PURE__ */ React80.createElement(import_icons25.AtomIcon, { fontSize: "small", sx: { color: "text.tertiary" } })), /* @__PURE__ */ React80.createElement(import_editor_panels.PanelBody, null, /* @__PURE__ */ React80.createElement(import_editor_controls49.ControlActionsProvider, { items: menuItems }, /* @__PURE__ */ React80.createElement(import_editor_controls49.ControlReplacementsProvider, { replacements: controlReplacements }, /* @__PURE__ */ React80.createElement(ElementProvider, { element, elementType }, /* @__PURE__ */ React80.createElement(EditingPanelTabs, null)))))))));
3668
3953
  };
3669
3954
 
3670
3955
  // src/panel.ts
@@ -3677,11 +3962,11 @@ var { panel, usePanelActions, usePanelStatus } = (0, import_editor_panels2.__cre
3677
3962
  var import_editor = require("@elementor/editor");
3678
3963
  var import_editor_current_user = require("@elementor/editor-current-user");
3679
3964
  var import_editor_panels3 = require("@elementor/editor-panels");
3680
- var import_editor_v1_adapters14 = require("@elementor/editor-v1-adapters");
3965
+ var import_editor_v1_adapters15 = require("@elementor/editor-v1-adapters");
3681
3966
 
3682
3967
  // src/hooks/use-open-editor-panel.ts
3683
3968
  var import_react29 = require("react");
3684
- var import_editor_v1_adapters13 = require("@elementor/editor-v1-adapters");
3969
+ var import_editor_v1_adapters14 = require("@elementor/editor-v1-adapters");
3685
3970
 
3686
3971
  // src/sync/is-atomic-widget-selected.ts
3687
3972
  var import_editor_elements9 = require("@elementor/editor-elements");
@@ -3698,7 +3983,7 @@ var isAtomicWidgetSelected = () => {
3698
3983
  var useOpenEditorPanel = () => {
3699
3984
  const { open } = usePanelActions();
3700
3985
  (0, import_react29.useEffect)(() => {
3701
- return (0, import_editor_v1_adapters13.__privateListenTo)((0, import_editor_v1_adapters13.commandStartEvent)("panel/editor/open"), () => {
3986
+ return (0, import_editor_v1_adapters14.__privateListenTo)((0, import_editor_v1_adapters14.commandStartEvent)("panel/editor/open"), () => {
3702
3987
  if (isAtomicWidgetSelected()) {
3703
3988
  open();
3704
3989
  }
@@ -3713,19 +3998,19 @@ var EditingPanelHooks = () => {
3713
3998
  };
3714
3999
 
3715
4000
  // src/dynamics/init.ts
3716
- var import_editor_canvas3 = require("@elementor/editor-canvas");
4001
+ var import_editor_canvas4 = require("@elementor/editor-canvas");
3717
4002
 
3718
4003
  // src/dynamics/components/dynamic-selection-control.tsx
3719
- var React79 = __toESM(require("react"));
4004
+ var React84 = __toESM(require("react"));
3720
4005
  var import_editor_controls53 = require("@elementor/editor-controls");
3721
- var import_icons25 = require("@elementor/icons");
3722
- var import_ui65 = require("@elementor/ui");
3723
- var import_i18n53 = require("@wordpress/i18n");
4006
+ var import_icons27 = require("@elementor/icons");
4007
+ var import_ui70 = require("@elementor/ui");
4008
+ var import_i18n56 = require("@wordpress/i18n");
3724
4009
 
3725
4010
  // src/components/popover-content.tsx
3726
- var React76 = __toESM(require("react"));
3727
- var import_ui63 = require("@elementor/ui");
3728
- var PopoverContent = ({ alignItems, gap = 1.5, p, children }) => /* @__PURE__ */ React76.createElement(import_ui63.Stack, { alignItems, gap, p }, children);
4011
+ var React81 = __toESM(require("react"));
4012
+ var import_ui68 = require("@elementor/ui");
4013
+ var PopoverContent = ({ alignItems, gap = 1.5, p, children }) => /* @__PURE__ */ React81.createElement(import_ui68.Stack, { alignItems, gap, p }, children);
3729
4014
 
3730
4015
  // src/hooks/use-persist-dynamic-value.ts
3731
4016
  var import_session6 = require("@elementor/session");
@@ -3736,7 +4021,7 @@ var usePersistDynamicValue = (propKey) => {
3736
4021
  };
3737
4022
 
3738
4023
  // src/dynamics/dynamic-control.tsx
3739
- var React77 = __toESM(require("react"));
4024
+ var React82 = __toESM(require("react"));
3740
4025
  var import_editor_controls51 = require("@elementor/editor-controls");
3741
4026
 
3742
4027
  // src/dynamics/hooks/use-dynamic-tag.ts
@@ -3835,17 +4120,17 @@ var DynamicControl = ({ bind, children }) => {
3835
4120
  });
3836
4121
  };
3837
4122
  const propType = createTopLevelOjectType({ schema: dynamicTag.props_schema });
3838
- return /* @__PURE__ */ React77.createElement(import_editor_controls51.PropProvider, { propType, setValue: setDynamicValue, value: { [bind]: dynamicValue } }, /* @__PURE__ */ React77.createElement(import_editor_controls51.PropKeyProvider, { bind }, children));
4123
+ return /* @__PURE__ */ React82.createElement(import_editor_controls51.PropProvider, { propType, setValue: setDynamicValue, value: { [bind]: dynamicValue } }, /* @__PURE__ */ React82.createElement(import_editor_controls51.PropKeyProvider, { bind }, children));
3839
4124
  };
3840
4125
 
3841
4126
  // src/dynamics/components/dynamic-selection.tsx
3842
- var React78 = __toESM(require("react"));
4127
+ var React83 = __toESM(require("react"));
3843
4128
  var import_react32 = require("react");
3844
4129
  var import_editor_controls52 = require("@elementor/editor-controls");
3845
- var import_icons24 = require("@elementor/icons");
3846
- var import_ui64 = require("@elementor/ui");
3847
- var import_i18n52 = require("@wordpress/i18n");
3848
- var SIZE3 = "tiny";
4130
+ var import_icons26 = require("@elementor/icons");
4131
+ var import_ui69 = require("@elementor/ui");
4132
+ var import_i18n55 = require("@wordpress/i18n");
4133
+ var SIZE7 = "tiny";
3849
4134
  var DynamicSelection = ({ onSelect }) => {
3850
4135
  const [searchValue, setSearchValue] = (0, import_react32.useState)("");
3851
4136
  const { groups: dynamicGroups } = getAtomicDynamicTags() || {};
@@ -3865,28 +4150,28 @@ var DynamicSelection = ({ onSelect }) => {
3865
4150
  setValue({ name: value, settings: { label } });
3866
4151
  onSelect?.();
3867
4152
  };
3868
- return /* @__PURE__ */ React78.createElement(import_ui64.Stack, null, hasNoDynamicTags ? /* @__PURE__ */ React78.createElement(NoDynamicTags, null) : /* @__PURE__ */ React78.createElement(import_react32.Fragment, null, /* @__PURE__ */ React78.createElement(import_ui64.Box, { px: 1.5, pb: 1 }, /* @__PURE__ */ React78.createElement(
3869
- import_ui64.TextField,
4153
+ return /* @__PURE__ */ React83.createElement(import_ui69.Stack, null, hasNoDynamicTags ? /* @__PURE__ */ React83.createElement(NoDynamicTags, null) : /* @__PURE__ */ React83.createElement(import_react32.Fragment, null, /* @__PURE__ */ React83.createElement(import_ui69.Box, { px: 1.5, pb: 1 }, /* @__PURE__ */ React83.createElement(
4154
+ import_ui69.TextField,
3870
4155
  {
3871
4156
  fullWidth: true,
3872
- size: SIZE3,
4157
+ size: SIZE7,
3873
4158
  value: searchValue,
3874
4159
  onChange: handleSearch,
3875
- placeholder: (0, import_i18n52.__)("Search dynamic tags\u2026", "elementor"),
4160
+ placeholder: (0, import_i18n55.__)("Search dynamic tags\u2026", "elementor"),
3876
4161
  InputProps: {
3877
- startAdornment: /* @__PURE__ */ React78.createElement(import_ui64.InputAdornment, { position: "start" }, /* @__PURE__ */ React78.createElement(import_icons24.SearchIcon, { fontSize: SIZE3 }))
4162
+ startAdornment: /* @__PURE__ */ React83.createElement(import_ui69.InputAdornment, { position: "start" }, /* @__PURE__ */ React83.createElement(import_icons26.SearchIcon, { fontSize: SIZE7 }))
3878
4163
  }
3879
4164
  }
3880
- )), /* @__PURE__ */ React78.createElement(import_ui64.Divider, null), /* @__PURE__ */ React78.createElement(import_ui64.Box, { sx: { overflowY: "auto", height: 260, width: 220 } }, options12.length > 0 ? /* @__PURE__ */ React78.createElement(import_ui64.MenuList, { role: "listbox", tabIndex: 0 }, options12.map(([category, items3], index) => /* @__PURE__ */ React78.createElement(import_react32.Fragment, { key: index }, /* @__PURE__ */ React78.createElement(
3881
- import_ui64.MenuSubheader,
4165
+ )), /* @__PURE__ */ React83.createElement(import_ui69.Divider, null), /* @__PURE__ */ React83.createElement(import_ui69.Box, { sx: { overflowY: "auto", height: 260, width: 220 } }, options12.length > 0 ? /* @__PURE__ */ React83.createElement(import_ui69.MenuList, { role: "listbox", tabIndex: 0 }, options12.map(([category, items3], index) => /* @__PURE__ */ React83.createElement(import_react32.Fragment, { key: index }, /* @__PURE__ */ React83.createElement(
4166
+ import_ui69.MenuSubheader,
3882
4167
  {
3883
4168
  sx: { px: 1.5, typography: "caption", color: "text.tertiary" }
3884
4169
  },
3885
4170
  dynamicGroups?.[category]?.title || category
3886
4171
  ), items3.map(({ value, label: tagLabel }) => {
3887
4172
  const isSelected = isCurrentValueDynamic && value === dynamicValue?.name;
3888
- return /* @__PURE__ */ React78.createElement(
3889
- import_ui64.MenuItem,
4173
+ return /* @__PURE__ */ React83.createElement(
4174
+ import_ui69.MenuItem,
3890
4175
  {
3891
4176
  key: value,
3892
4177
  selected: isSelected,
@@ -3896,10 +4181,10 @@ var DynamicSelection = ({ onSelect }) => {
3896
4181
  },
3897
4182
  tagLabel
3898
4183
  );
3899
- })))) : /* @__PURE__ */ React78.createElement(NoResults, { searchValue, onClear: () => setSearchValue("") }))));
4184
+ })))) : /* @__PURE__ */ React83.createElement(NoResults, { searchValue, onClear: () => setSearchValue("") }))));
3900
4185
  };
3901
- var NoResults = ({ searchValue, onClear }) => /* @__PURE__ */ React78.createElement(
3902
- import_ui64.Stack,
4186
+ var NoResults = ({ searchValue, onClear }) => /* @__PURE__ */ React83.createElement(
4187
+ import_ui69.Stack,
3903
4188
  {
3904
4189
  gap: 1,
3905
4190
  alignItems: "center",
@@ -3909,12 +4194,12 @@ var NoResults = ({ searchValue, onClear }) => /* @__PURE__ */ React78.createElem
3909
4194
  color: "text.secondary",
3910
4195
  sx: { pb: 3.5 }
3911
4196
  },
3912
- /* @__PURE__ */ React78.createElement(import_icons24.DatabaseIcon, { fontSize: "large" }),
3913
- /* @__PURE__ */ React78.createElement(import_ui64.Typography, { align: "center", variant: "subtitle2" }, (0, import_i18n52.__)("Sorry, nothing matched", "elementor"), /* @__PURE__ */ React78.createElement("br", null), "\u201C", searchValue, "\u201D."),
3914
- /* @__PURE__ */ React78.createElement(import_ui64.Typography, { align: "center", variant: "caption" }, (0, import_i18n52.__)("Try something else.", "elementor"), "\xA0", /* @__PURE__ */ React78.createElement(import_ui64.Link, { color: "text.secondary", variant: "caption", component: "button", onClick: onClear }, (0, import_i18n52.__)("Clear & try again", "elementor")))
4197
+ /* @__PURE__ */ React83.createElement(import_icons26.DatabaseIcon, { fontSize: "large" }),
4198
+ /* @__PURE__ */ React83.createElement(import_ui69.Typography, { align: "center", variant: "subtitle2" }, (0, import_i18n55.__)("Sorry, nothing matched", "elementor"), /* @__PURE__ */ React83.createElement("br", null), "\u201C", searchValue, "\u201D."),
4199
+ /* @__PURE__ */ React83.createElement(import_ui69.Typography, { align: "center", variant: "caption" }, (0, import_i18n55.__)("Try something else.", "elementor"), "\xA0", /* @__PURE__ */ React83.createElement(import_ui69.Link, { color: "text.secondary", variant: "caption", component: "button", onClick: onClear }, (0, import_i18n55.__)("Clear & try again", "elementor")))
3915
4200
  );
3916
- var NoDynamicTags = () => /* @__PURE__ */ React78.createElement(import_ui64.Box, { sx: { overflowY: "hidden", height: 297, width: 220 } }, /* @__PURE__ */ React78.createElement(import_ui64.Divider, null), /* @__PURE__ */ React78.createElement(
3917
- import_ui64.Stack,
4201
+ var NoDynamicTags = () => /* @__PURE__ */ React83.createElement(import_ui69.Box, { sx: { overflowY: "hidden", height: 297, width: 220 } }, /* @__PURE__ */ React83.createElement(import_ui69.Divider, null), /* @__PURE__ */ React83.createElement(
4202
+ import_ui69.Stack,
3918
4203
  {
3919
4204
  gap: 1,
3920
4205
  alignItems: "center",
@@ -3924,9 +4209,9 @@ var NoDynamicTags = () => /* @__PURE__ */ React78.createElement(import_ui64.Box,
3924
4209
  color: "text.secondary",
3925
4210
  sx: { pb: 3.5 }
3926
4211
  },
3927
- /* @__PURE__ */ React78.createElement(import_icons24.DatabaseIcon, { fontSize: "large" }),
3928
- /* @__PURE__ */ React78.createElement(import_ui64.Typography, { align: "center", variant: "subtitle2" }, (0, import_i18n52.__)("Streamline your workflow with dynamic tags", "elementor")),
3929
- /* @__PURE__ */ React78.createElement(import_ui64.Typography, { align: "center", variant: "caption" }, (0, import_i18n52.__)("You\u2019ll need Elementor Pro to use this feature.", "elementor"))
4212
+ /* @__PURE__ */ React83.createElement(import_icons26.DatabaseIcon, { fontSize: "large" }),
4213
+ /* @__PURE__ */ React83.createElement(import_ui69.Typography, { align: "center", variant: "subtitle2" }, (0, import_i18n55.__)("Streamline your workflow with dynamic tags", "elementor")),
4214
+ /* @__PURE__ */ React83.createElement(import_ui69.Typography, { align: "center", variant: "caption" }, (0, import_i18n55.__)("You\u2019ll need Elementor Pro to use this feature.", "elementor"))
3930
4215
  ));
3931
4216
  var useFilteredOptions = (searchValue) => {
3932
4217
  const dynamicTags = usePropDynamicTags();
@@ -3945,12 +4230,12 @@ var useFilteredOptions = (searchValue) => {
3945
4230
  };
3946
4231
 
3947
4232
  // src/dynamics/components/dynamic-selection-control.tsx
3948
- var SIZE4 = "tiny";
4233
+ var SIZE8 = "tiny";
3949
4234
  var DynamicSelectionControl = () => {
3950
4235
  const { setValue: setAnyValue } = (0, import_editor_controls53.useBoundProp)();
3951
4236
  const { bind, value } = (0, import_editor_controls53.useBoundProp)(dynamicPropTypeUtil);
3952
4237
  const [propValueFromHistory] = usePersistDynamicValue(bind);
3953
- const selectionPopoverState = (0, import_ui65.usePopupState)({ variant: "popover" });
4238
+ const selectionPopoverState = (0, import_ui70.usePopupState)({ variant: "popover" });
3954
4239
  const { name: tagName = "" } = value;
3955
4240
  const dynamicTag = useDynamicTag(tagName);
3956
4241
  const removeDynamicTag = () => {
@@ -3959,62 +4244,62 @@ var DynamicSelectionControl = () => {
3959
4244
  if (!dynamicTag) {
3960
4245
  throw new Error(`Dynamic tag ${tagName} not found`);
3961
4246
  }
3962
- return /* @__PURE__ */ React79.createElement(import_ui65.Box, null, /* @__PURE__ */ React79.createElement(
3963
- import_ui65.UnstableTag,
4247
+ return /* @__PURE__ */ React84.createElement(import_ui70.Box, null, /* @__PURE__ */ React84.createElement(
4248
+ import_ui70.UnstableTag,
3964
4249
  {
3965
4250
  fullWidth: true,
3966
4251
  showActionsOnHover: true,
3967
4252
  label: dynamicTag.label,
3968
- startIcon: /* @__PURE__ */ React79.createElement(import_icons25.DatabaseIcon, { fontSize: SIZE4 }),
3969
- ...(0, import_ui65.bindTrigger)(selectionPopoverState),
3970
- actions: /* @__PURE__ */ React79.createElement(React79.Fragment, null, /* @__PURE__ */ React79.createElement(DynamicSettingsPopover, { dynamicTag }), /* @__PURE__ */ React79.createElement(
3971
- import_ui65.IconButton,
4253
+ startIcon: /* @__PURE__ */ React84.createElement(import_icons27.DatabaseIcon, { fontSize: SIZE8 }),
4254
+ ...(0, import_ui70.bindTrigger)(selectionPopoverState),
4255
+ actions: /* @__PURE__ */ React84.createElement(React84.Fragment, null, /* @__PURE__ */ React84.createElement(DynamicSettingsPopover, { dynamicTag }), /* @__PURE__ */ React84.createElement(
4256
+ import_ui70.IconButton,
3972
4257
  {
3973
- size: SIZE4,
4258
+ size: SIZE8,
3974
4259
  onClick: removeDynamicTag,
3975
- "aria-label": (0, import_i18n53.__)("Remove dynamic value", "elementor")
4260
+ "aria-label": (0, import_i18n56.__)("Remove dynamic value", "elementor")
3976
4261
  },
3977
- /* @__PURE__ */ React79.createElement(import_icons25.XIcon, { fontSize: SIZE4 })
4262
+ /* @__PURE__ */ React84.createElement(import_icons27.XIcon, { fontSize: SIZE8 })
3978
4263
  ))
3979
4264
  }
3980
- ), /* @__PURE__ */ React79.createElement(
3981
- import_ui65.Popover,
4265
+ ), /* @__PURE__ */ React84.createElement(
4266
+ import_ui70.Popover,
3982
4267
  {
3983
4268
  disablePortal: true,
3984
4269
  disableScrollLock: true,
3985
4270
  anchorOrigin: { vertical: "bottom", horizontal: "left" },
3986
- ...(0, import_ui65.bindPopover)(selectionPopoverState)
4271
+ ...(0, import_ui70.bindPopover)(selectionPopoverState)
3987
4272
  },
3988
- /* @__PURE__ */ React79.createElement(import_ui65.Stack, null, /* @__PURE__ */ React79.createElement(import_ui65.Stack, { direction: "row", alignItems: "center", pl: 1.5, pr: 0.5, py: 1.5 }, /* @__PURE__ */ React79.createElement(import_icons25.DatabaseIcon, { fontSize: SIZE4, sx: { mr: 0.5 } }), /* @__PURE__ */ React79.createElement(import_ui65.Typography, { variant: "subtitle2" }, (0, import_i18n53.__)("Dynamic tags", "elementor")), /* @__PURE__ */ React79.createElement(import_ui65.IconButton, { size: SIZE4, sx: { ml: "auto" }, onClick: selectionPopoverState.close }, /* @__PURE__ */ React79.createElement(import_icons25.XIcon, { fontSize: SIZE4 }))), /* @__PURE__ */ React79.createElement(DynamicSelection, { onSelect: selectionPopoverState.close }))
4273
+ /* @__PURE__ */ React84.createElement(import_ui70.Stack, null, /* @__PURE__ */ React84.createElement(import_ui70.Stack, { direction: "row", alignItems: "center", pl: 1.5, pr: 0.5, py: 1.5 }, /* @__PURE__ */ React84.createElement(import_icons27.DatabaseIcon, { fontSize: SIZE8, sx: { mr: 0.5 } }), /* @__PURE__ */ React84.createElement(import_ui70.Typography, { variant: "subtitle2" }, (0, import_i18n56.__)("Dynamic tags", "elementor")), /* @__PURE__ */ React84.createElement(import_ui70.IconButton, { size: SIZE8, sx: { ml: "auto" }, onClick: selectionPopoverState.close }, /* @__PURE__ */ React84.createElement(import_icons27.XIcon, { fontSize: SIZE8 }))), /* @__PURE__ */ React84.createElement(DynamicSelection, { onSelect: selectionPopoverState.close }))
3989
4274
  ));
3990
4275
  };
3991
4276
  var DynamicSettingsPopover = ({ dynamicTag }) => {
3992
- const popupState = (0, import_ui65.usePopupState)({ variant: "popover" });
4277
+ const popupState = (0, import_ui70.usePopupState)({ variant: "popover" });
3993
4278
  const hasDynamicSettings = !!dynamicTag.atomic_controls.length;
3994
4279
  if (!hasDynamicSettings) {
3995
4280
  return null;
3996
4281
  }
3997
- return /* @__PURE__ */ React79.createElement(React79.Fragment, null, /* @__PURE__ */ React79.createElement(import_ui65.IconButton, { size: SIZE4, ...(0, import_ui65.bindTrigger)(popupState), "aria-label": (0, import_i18n53.__)("Settings", "elementor") }, /* @__PURE__ */ React79.createElement(import_icons25.SettingsIcon, { fontSize: SIZE4 })), /* @__PURE__ */ React79.createElement(
3998
- import_ui65.Popover,
4282
+ return /* @__PURE__ */ React84.createElement(React84.Fragment, null, /* @__PURE__ */ React84.createElement(import_ui70.IconButton, { size: SIZE8, ...(0, import_ui70.bindTrigger)(popupState), "aria-label": (0, import_i18n56.__)("Settings", "elementor") }, /* @__PURE__ */ React84.createElement(import_icons27.SettingsIcon, { fontSize: SIZE8 })), /* @__PURE__ */ React84.createElement(
4283
+ import_ui70.Popover,
3999
4284
  {
4000
4285
  disablePortal: true,
4001
4286
  disableScrollLock: true,
4002
4287
  anchorOrigin: { vertical: "bottom", horizontal: "center" },
4003
- ...(0, import_ui65.bindPopover)(popupState)
4288
+ ...(0, import_ui70.bindPopover)(popupState)
4004
4289
  },
4005
- /* @__PURE__ */ React79.createElement(import_ui65.Paper, { component: import_ui65.Stack, sx: { minHeight: "300px", width: "220px" } }, /* @__PURE__ */ React79.createElement(import_ui65.Stack, { direction: "row", alignItems: "center", px: 1.5, pt: 2, pb: 1 }, /* @__PURE__ */ React79.createElement(import_icons25.DatabaseIcon, { fontSize: SIZE4, sx: { mr: 0.5 } }), /* @__PURE__ */ React79.createElement(import_ui65.Typography, { variant: "subtitle2" }, dynamicTag.label), /* @__PURE__ */ React79.createElement(import_ui65.IconButton, { sx: { ml: "auto" }, size: SIZE4, onClick: popupState.close }, /* @__PURE__ */ React79.createElement(import_icons25.XIcon, { fontSize: SIZE4 }))), /* @__PURE__ */ React79.createElement(DynamicSettings, { controls: dynamicTag.atomic_controls }))
4290
+ /* @__PURE__ */ React84.createElement(import_ui70.Paper, { component: import_ui70.Stack, sx: { minHeight: "300px", width: "220px" } }, /* @__PURE__ */ React84.createElement(import_ui70.Stack, { direction: "row", alignItems: "center", px: 1.5, pt: 2, pb: 1 }, /* @__PURE__ */ React84.createElement(import_icons27.DatabaseIcon, { fontSize: SIZE8, sx: { mr: 0.5 } }), /* @__PURE__ */ React84.createElement(import_ui70.Typography, { variant: "subtitle2" }, dynamicTag.label), /* @__PURE__ */ React84.createElement(import_ui70.IconButton, { sx: { ml: "auto" }, size: SIZE8, onClick: popupState.close }, /* @__PURE__ */ React84.createElement(import_icons27.XIcon, { fontSize: SIZE8 }))), /* @__PURE__ */ React84.createElement(DynamicSettings, { controls: dynamicTag.atomic_controls }))
4006
4291
  ));
4007
4292
  };
4008
4293
  var DynamicSettings = ({ controls }) => {
4009
4294
  const tabs = controls.filter(({ type }) => type === "section");
4010
- const { getTabsProps, getTabProps, getTabPanelProps } = (0, import_ui65.useTabs)(0);
4295
+ const { getTabsProps, getTabProps, getTabPanelProps } = (0, import_ui70.useTabs)(0);
4011
4296
  if (!tabs.length) {
4012
4297
  return null;
4013
4298
  }
4014
- return /* @__PURE__ */ React79.createElement(React79.Fragment, null, /* @__PURE__ */ React79.createElement(import_ui65.Tabs, { size: "small", variant: "fullWidth", ...getTabsProps() }, tabs.map(({ value }, index) => /* @__PURE__ */ React79.createElement(import_ui65.Tab, { key: index, label: value.label, sx: { px: 1, py: 0.5 }, ...getTabProps(index) }))), /* @__PURE__ */ React79.createElement(import_ui65.Divider, null), tabs.map(({ value }, index) => {
4015
- return /* @__PURE__ */ React79.createElement(import_ui65.TabPanel, { key: index, sx: { flexGrow: 1, py: 0 }, ...getTabPanelProps(index) }, /* @__PURE__ */ React79.createElement(PopoverContent, { p: 2, gap: 2 }, value.items.map((item) => {
4299
+ return /* @__PURE__ */ React84.createElement(React84.Fragment, null, /* @__PURE__ */ React84.createElement(import_ui70.Tabs, { size: "small", variant: "fullWidth", ...getTabsProps() }, tabs.map(({ value }, index) => /* @__PURE__ */ React84.createElement(import_ui70.Tab, { key: index, label: value.label, sx: { px: 1, py: 0.5 }, ...getTabProps(index) }))), /* @__PURE__ */ React84.createElement(import_ui70.Divider, null), tabs.map(({ value }, index) => {
4300
+ return /* @__PURE__ */ React84.createElement(import_ui70.TabPanel, { key: index, sx: { flexGrow: 1, py: 0 }, ...getTabPanelProps(index) }, /* @__PURE__ */ React84.createElement(PopoverContent, { p: 2, gap: 2 }, value.items.map((item) => {
4016
4301
  if (item.type === "control") {
4017
- return /* @__PURE__ */ React79.createElement(Control3, { key: item.value.bind, control: item.value });
4302
+ return /* @__PURE__ */ React84.createElement(Control3, { key: item.value.bind, control: item.value });
4018
4303
  }
4019
4304
  return null;
4020
4305
  })));
@@ -4024,11 +4309,11 @@ var Control3 = ({ control }) => {
4024
4309
  if (!getControl(control.type)) {
4025
4310
  return null;
4026
4311
  }
4027
- return /* @__PURE__ */ React79.createElement(DynamicControl, { bind: control.bind }, /* @__PURE__ */ React79.createElement(import_ui65.Grid, { container: true, gap: 0.75 }, control.label ? /* @__PURE__ */ React79.createElement(import_ui65.Grid, { item: true, xs: 12 }, /* @__PURE__ */ React79.createElement(import_editor_controls53.ControlFormLabel, null, control.label)) : null, /* @__PURE__ */ React79.createElement(import_ui65.Grid, { item: true, xs: 12 }, /* @__PURE__ */ React79.createElement(Control, { type: control.type, props: control.props }))));
4312
+ return /* @__PURE__ */ React84.createElement(DynamicControl, { bind: control.bind }, /* @__PURE__ */ React84.createElement(import_ui70.Grid, { container: true, gap: 0.75 }, control.label ? /* @__PURE__ */ React84.createElement(import_ui70.Grid, { item: true, xs: 12 }, /* @__PURE__ */ React84.createElement(import_editor_controls53.ControlFormLabel, null, control.label)) : null, /* @__PURE__ */ React84.createElement(import_ui70.Grid, { item: true, xs: 12 }, /* @__PURE__ */ React84.createElement(Control, { type: control.type, props: control.props }))));
4028
4313
  };
4029
4314
 
4030
4315
  // src/dynamics/dynamic-transformer.ts
4031
- var import_editor_canvas2 = require("@elementor/editor-canvas");
4316
+ var import_editor_canvas3 = require("@elementor/editor-canvas");
4032
4317
  var import_editor_props12 = require("@elementor/editor-props");
4033
4318
 
4034
4319
  // src/dynamics/errors.ts
@@ -4039,7 +4324,7 @@ var DynamicTagsManagerNotFoundError = (0, import_utils8.createError)({
4039
4324
  });
4040
4325
 
4041
4326
  // src/dynamics/dynamic-transformer.ts
4042
- var dynamicTransformer = (0, import_editor_canvas2.createTransformer)((value) => {
4327
+ var dynamicTransformer = (0, import_editor_canvas3.createTransformer)((value) => {
4043
4328
  if (!value.name) {
4044
4329
  return null;
4045
4330
  }
@@ -4077,18 +4362,18 @@ function getDynamicValue(name, settings) {
4077
4362
  }
4078
4363
 
4079
4364
  // src/dynamics/hooks/use-prop-dynamic-action.tsx
4080
- var React80 = __toESM(require("react"));
4365
+ var React85 = __toESM(require("react"));
4081
4366
  var import_editor_controls54 = require("@elementor/editor-controls");
4082
- var import_icons26 = require("@elementor/icons");
4083
- var import_i18n54 = require("@wordpress/i18n");
4367
+ var import_icons28 = require("@elementor/icons");
4368
+ var import_i18n57 = require("@wordpress/i18n");
4084
4369
  var usePropDynamicAction = () => {
4085
4370
  const { propType } = (0, import_editor_controls54.useBoundProp)();
4086
4371
  const visible = !!propType && supportsDynamic(propType);
4087
4372
  return {
4088
4373
  visible,
4089
- icon: import_icons26.DatabaseIcon,
4090
- title: (0, import_i18n54.__)("Dynamic tags", "elementor"),
4091
- popoverContent: ({ closePopover }) => /* @__PURE__ */ React80.createElement(DynamicSelection, { onSelect: closePopover })
4374
+ icon: import_icons28.DatabaseIcon,
4375
+ title: (0, import_i18n57.__)("Dynamic tags", "elementor"),
4376
+ popoverContent: ({ closePopover }) => /* @__PURE__ */ React85.createElement(DynamicSelection, { onSelect: closePopover })
4092
4377
  };
4093
4378
  };
4094
4379
 
@@ -4103,12 +4388,170 @@ var init = () => {
4103
4388
  id: "dynamic-tags",
4104
4389
  useProps: usePropDynamicAction
4105
4390
  });
4106
- import_editor_canvas3.styleTransformersRegistry.register("dynamic", dynamicTransformer);
4107
- import_editor_canvas3.settingsTransformersRegistry.register("dynamic", dynamicTransformer);
4391
+ import_editor_canvas4.styleTransformersRegistry.register("dynamic", dynamicTransformer);
4392
+ import_editor_canvas4.settingsTransformersRegistry.register("dynamic", dynamicTransformer);
4393
+ };
4394
+
4395
+ // src/reset-style-props.tsx
4396
+ var import_editor_controls55 = require("@elementor/editor-controls");
4397
+ var import_icons29 = require("@elementor/icons");
4398
+ var import_i18n58 = require("@wordpress/i18n");
4399
+ var { registerAction } = controlActionsMenu;
4400
+ function initResetStyleProps() {
4401
+ registerAction({
4402
+ id: "reset-style-value",
4403
+ useProps: useResetStyleValueProps
4404
+ });
4405
+ }
4406
+ var EXCLUDED_BINDS = ["order", "flex-grow", "flex-shrink", "flex-basis"];
4407
+ function useResetStyleValueProps() {
4408
+ const isStyle = useIsStyle();
4409
+ const { value, setValue, path, bind } = (0, import_editor_controls55.useBoundProp)();
4410
+ return {
4411
+ visible: isStyle && value !== null && value !== void 0 && path.length <= 2 && !EXCLUDED_BINDS.includes(bind),
4412
+ title: (0, import_i18n58.__)("Clear", "elementor"),
4413
+ icon: import_icons29.BrushBigIcon,
4414
+ onClick: () => setValue(null)
4415
+ };
4416
+ }
4417
+
4418
+ // src/styles-inheritance/init-styles-inheritance-transformers.ts
4419
+ var import_editor_canvas9 = require("@elementor/editor-canvas");
4420
+
4421
+ // src/styles-inheritance/transformers/background-color-overlay-transformer.tsx
4422
+ var React86 = __toESM(require("react"));
4423
+ var import_editor_canvas5 = require("@elementor/editor-canvas");
4424
+ var import_ui71 = require("@elementor/ui");
4425
+ var backgroundColorOverlayTransformer = (0, import_editor_canvas5.createTransformer)((value) => /* @__PURE__ */ React86.createElement(import_ui71.Stack, { direction: "row", gap: 10 }, /* @__PURE__ */ React86.createElement(ItemIconColor, { value }), /* @__PURE__ */ React86.createElement(ItemLabelColor, { value })));
4426
+ var ItemIconColor = ({ value }) => {
4427
+ const { color } = value;
4428
+ return /* @__PURE__ */ React86.createElement(StyledUnstableColorIndicator, { size: "inherit", component: "span", value: color });
4429
+ };
4430
+ var ItemLabelColor = ({ value: { color } }) => {
4431
+ return /* @__PURE__ */ React86.createElement("span", null, color);
4432
+ };
4433
+ var StyledUnstableColorIndicator = (0, import_ui71.styled)(import_ui71.UnstableColorIndicator)(({ theme }) => ({
4434
+ borderRadius: `${theme.shape.borderRadius / 2}px`
4435
+ }));
4436
+
4437
+ // src/styles-inheritance/transformers/background-gradient-overlay-transformer.tsx
4438
+ var React87 = __toESM(require("react"));
4439
+ var import_editor_canvas6 = require("@elementor/editor-canvas");
4440
+ var import_ui72 = require("@elementor/ui");
4441
+ var import_i18n59 = require("@wordpress/i18n");
4442
+ var backgroundGradientOverlayTransformer = (0, import_editor_canvas6.createTransformer)((value) => /* @__PURE__ */ React87.createElement(import_ui72.Stack, { direction: "row", gap: 10 }, /* @__PURE__ */ React87.createElement(ItemIconGradient, { value }), /* @__PURE__ */ React87.createElement(ItemLabelGradient, { value })));
4443
+ var ItemIconGradient = ({ value }) => {
4444
+ const gradient = getGradientValue(value);
4445
+ return /* @__PURE__ */ React87.createElement(StyledUnstableColorIndicator, { size: "inherit", component: "span", value: gradient });
4446
+ };
4447
+ var ItemLabelGradient = ({ value }) => {
4448
+ if (value.type === "linear") {
4449
+ return /* @__PURE__ */ React87.createElement("span", null, (0, import_i18n59.__)("Linear Gradient", "elementor"));
4450
+ }
4451
+ return /* @__PURE__ */ React87.createElement("span", null, (0, import_i18n59.__)("Radial Gradient", "elementor"));
4452
+ };
4453
+ var getGradientValue = (gradient) => {
4454
+ const stops = gradient.stops?.map(({ color, offset }) => `${color} ${offset ?? 0}%`)?.join(",");
4455
+ if (gradient.type === "linear") {
4456
+ return `linear-gradient(${gradient.angle}deg, ${stops})`;
4457
+ }
4458
+ return `radial-gradient(circle at ${gradient.positions}, ${stops})`;
4459
+ };
4460
+
4461
+ // src/styles-inheritance/transformers/background-image-overlay-transformer.tsx
4462
+ var React88 = __toESM(require("react"));
4463
+ var import_editor_canvas7 = require("@elementor/editor-canvas");
4464
+ var import_editor_ui5 = require("@elementor/editor-ui");
4465
+ var import_ui73 = require("@elementor/ui");
4466
+ var import_wp_media = require("@elementor/wp-media");
4467
+ var backgroundImageOverlayTransformer = (0, import_editor_canvas7.createTransformer)((value) => /* @__PURE__ */ React88.createElement(import_ui73.Stack, { direction: "row", gap: 10 }, /* @__PURE__ */ React88.createElement(ItemIconImage, { value }), /* @__PURE__ */ React88.createElement(ItemLabelImage, { value })));
4468
+ var ItemIconImage = ({ value }) => {
4469
+ const { imageUrl } = useImage(value);
4470
+ return /* @__PURE__ */ React88.createElement(
4471
+ import_ui73.CardMedia,
4472
+ {
4473
+ image: imageUrl,
4474
+ sx: (theme) => ({
4475
+ height: "1em",
4476
+ width: "1em",
4477
+ borderRadius: `${theme.shape.borderRadius / 2}px`,
4478
+ outline: `1px solid ${theme.palette.action.disabled}`
4479
+ })
4480
+ }
4481
+ );
4482
+ };
4483
+ var ItemLabelImage = ({ value }) => {
4484
+ const { imageTitle } = useImage(value);
4485
+ return /* @__PURE__ */ React88.createElement(import_editor_ui5.EllipsisWithTooltip, { title: imageTitle }, /* @__PURE__ */ React88.createElement("span", null, imageTitle));
4486
+ };
4487
+ var useImage = (image) => {
4488
+ let imageTitle, imageUrl = null;
4489
+ const imageSrc = image?.image.src;
4490
+ const { data: attachment } = (0, import_wp_media.useWpMediaAttachment)(imageSrc.id || null);
4491
+ if (imageSrc.id) {
4492
+ const imageFileTypeExtension = getFileExtensionFromFilename(attachment?.filename);
4493
+ imageTitle = `${attachment?.title}${imageFileTypeExtension}` || null;
4494
+ imageUrl = attachment?.url || null;
4495
+ } else if (imageSrc.url) {
4496
+ imageUrl = imageSrc.url;
4497
+ imageTitle = imageUrl?.substring(imageUrl.lastIndexOf("/") + 1) || null;
4498
+ }
4499
+ return { imageTitle, imageUrl };
4500
+ };
4501
+ var getFileExtensionFromFilename = (filename) => {
4502
+ if (!filename) {
4503
+ return "";
4504
+ }
4505
+ const extension = filename.substring(filename.lastIndexOf(".") + 1);
4506
+ return `.${extension}`;
4507
+ };
4508
+
4509
+ // src/styles-inheritance/transformers/background-overlay-transformer.tsx
4510
+ var React89 = __toESM(require("react"));
4511
+ var import_editor_canvas8 = require("@elementor/editor-canvas");
4512
+ var import_ui74 = require("@elementor/ui");
4513
+ var backgroundOverlayTransformer = (0, import_editor_canvas8.createTransformer)((values) => {
4514
+ if (!values || values.length === 0) {
4515
+ return null;
4516
+ }
4517
+ return /* @__PURE__ */ React89.createElement(import_ui74.Stack, { direction: "column" }, values.map((item, index) => /* @__PURE__ */ React89.createElement(import_ui74.Stack, { key: index }, item)));
4518
+ });
4519
+
4520
+ // src/styles-inheritance/init-styles-inheritance-transformers.ts
4521
+ function initStylesInheritanceTransformers() {
4522
+ const originalStyleTransformers = import_editor_canvas9.styleTransformersRegistry.all();
4523
+ Object.entries(originalStyleTransformers).forEach(([propType, transformer]) => {
4524
+ if (excludePropTypeTransformers.has(propType)) {
4525
+ return;
4526
+ }
4527
+ stylesInheritanceTransformersRegistry.register(propType, transformer);
4528
+ });
4529
+ stylesInheritanceTransformersRegistry.registerFallback(
4530
+ (0, import_editor_canvas9.createTransformer)((value) => {
4531
+ return value;
4532
+ })
4533
+ );
4534
+ registerCustomTransformers();
4535
+ }
4536
+ function registerCustomTransformers() {
4537
+ stylesInheritanceTransformersRegistry.register("background-color-overlay", backgroundColorOverlayTransformer);
4538
+ stylesInheritanceTransformersRegistry.register(
4539
+ "background-gradient-overlay",
4540
+ backgroundGradientOverlayTransformer
4541
+ );
4542
+ stylesInheritanceTransformersRegistry.register("background-image-overlay", backgroundImageOverlayTransformer);
4543
+ stylesInheritanceTransformersRegistry.register("background-overlay", backgroundOverlayTransformer);
4544
+ }
4545
+
4546
+ // src/styles-inheritance/init.ts
4547
+ var init2 = () => {
4548
+ if (isUsingIndicatorPopover()) {
4549
+ initStylesInheritanceTransformers();
4550
+ }
4108
4551
  };
4109
4552
 
4110
4553
  // src/init.ts
4111
- function init2() {
4554
+ function init3() {
4112
4555
  (0, import_editor_panels3.__registerPanel)(panel);
4113
4556
  blockV1Panel();
4114
4557
  (0, import_editor.injectIntoLogic)({
@@ -4120,9 +4563,13 @@ function init2() {
4120
4563
  component: import_editor_current_user.PrefetchUserData
4121
4564
  });
4122
4565
  init();
4566
+ init2();
4567
+ if ((0, import_editor_v1_adapters15.isExperimentActive)(EXPERIMENTAL_FEATURES.V_3_30)) {
4568
+ initResetStyleProps();
4569
+ }
4123
4570
  }
4124
4571
  var blockV1Panel = () => {
4125
- (0, import_editor_v1_adapters14.blockCommand)({
4572
+ (0, import_editor_v1_adapters15.blockCommand)({
4126
4573
  command: "panel/editor/open",
4127
4574
  condition: isAtomicWidgetSelected
4128
4575
  });