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