@elementor/editor-editing-panel 1.40.0 → 1.41.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (46) hide show
  1. package/CHANGELOG.md +32 -0
  2. package/dist/index.d.mts +9 -0
  3. package/dist/index.d.ts +9 -0
  4. package/dist/index.js +1177 -732
  5. package/dist/index.js.map +1 -1
  6. package/dist/index.mjs +1070 -614
  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/typography-section/text-stroke-field.tsx +3 -0
  22. package/src/components/style-tab.tsx +1 -1
  23. package/src/contexts/style-context.tsx +11 -2
  24. package/src/contexts/styles-inheritance-context.tsx +9 -7
  25. package/src/controls-actions.ts +2 -0
  26. package/src/controls-registry/styles-field.tsx +3 -0
  27. package/src/init.ts +11 -1
  28. package/src/reset-style-props.tsx +31 -0
  29. package/src/styles-inheritance/components/action-icons.tsx +8 -0
  30. package/src/styles-inheritance/components/breakpoint-icon.tsx +47 -0
  31. package/src/styles-inheritance/components/index.ts +4 -0
  32. package/src/styles-inheritance/components/label-chip.tsx +43 -0
  33. package/src/styles-inheritance/components/value-component.tsx +25 -0
  34. package/src/styles-inheritance/consts.ts +17 -0
  35. package/src/styles-inheritance/create-styles-inheritance.ts +50 -12
  36. package/src/{hooks → styles-inheritance/hooks}/use-normalized-inheritance-chain-items.tsx +41 -11
  37. package/src/styles-inheritance/init-styles-inheritance-transformers.ts +38 -0
  38. package/src/styles-inheritance/init.ts +8 -0
  39. package/src/styles-inheritance/styles-inheritance-indicator.tsx +35 -32
  40. package/src/styles-inheritance/styles-inheritance-infotip.tsx +113 -19
  41. package/src/styles-inheritance/styles-inheritance-transformers-registry.tsx +3 -0
  42. package/src/styles-inheritance/transformers/background-color-overlay-transformer.tsx +27 -0
  43. package/src/styles-inheritance/transformers/background-gradient-overlay-transformer.tsx +50 -0
  44. package/src/styles-inheritance/transformers/background-image-overlay-transformer.tsx +79 -0
  45. package/src/styles-inheritance/transformers/background-overlay-transformer.tsx +20 -0
  46. package/src/styles-inheritance/types.ts +6 -2
package/dist/index.js CHANGED
@@ -31,15 +31,15 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
31
31
  var index_exports = {};
32
32
  __export(index_exports, {
33
33
  controlActionsMenu: () => controlActionsMenu,
34
- init: () => init2,
34
+ init: () => init3,
35
35
  injectIntoClassSelectorActions: () => injectIntoClassSelectorActions,
36
36
  registerControlReplacement: () => registerControlReplacement,
37
- useBoundProp: () => import_editor_controls55.useBoundProp,
37
+ useBoundProp: () => import_editor_controls56.useBoundProp,
38
38
  usePanelActions: () => usePanelActions,
39
39
  usePanelStatus: () => usePanelStatus
40
40
  });
41
41
  module.exports = __toCommonJS(index_exports);
42
- var import_editor_controls55 = require("@elementor/editor-controls");
42
+ var import_editor_controls56 = require("@elementor/editor-controls");
43
43
 
44
44
  // src/control-replacement.tsx
45
45
  var import_editor_controls = require("@elementor/editor-controls");
@@ -115,10 +115,12 @@ var StyleNotFoundUnderProviderError = (0, import_utils.createError)({
115
115
  var Context3 = (0, import_react3.createContext)(null);
116
116
  function StyleProvider({ children, ...props }) {
117
117
  const provider = props.id === null ? null : getProviderByStyleId(props.id);
118
+ const { userCan } = (0, import_editor_styles_repository.useUserStylesCapability)();
118
119
  if (props.id && !provider) {
119
120
  throw new StylesProviderNotFoundError({ context: { styleId: props.id } });
120
121
  }
121
- return /* @__PURE__ */ React3.createElement(Context3.Provider, { value: { ...props, provider } }, children);
122
+ const canEdit = userCan(provider?.getKey() ?? "").updateProps;
123
+ return /* @__PURE__ */ React3.createElement(Context3.Provider, { value: { ...props, provider, canEdit } }, children);
122
124
  }
123
125
  function useStyle() {
124
126
  const context = (0, import_react3.useContext)(Context3);
@@ -133,6 +135,9 @@ function getProviderByStyleId(styleId) {
133
135
  });
134
136
  return styleProvider ?? null;
135
137
  }
138
+ function useIsStyle() {
139
+ return !!(0, import_react3.useContext)(Context3);
140
+ }
136
141
 
137
142
  // src/components/creatable-autocomplete/creatable-autocomplete.tsx
138
143
  var React4 = __toESM(require("react"));
@@ -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,44 +1926,188 @@ 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_indications_popover");
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 }) => {
2026
+ return /* @__PURE__ */ React22.createElement(
2027
+ import_ui19.Chip,
2028
+ {
2029
+ label: displayLabel,
2030
+ size: SIZE4,
2031
+ color: "global",
2032
+ variant: "standard",
2033
+ state: "enabled",
2034
+ icon: provider === import_editor_styles_repository7.ELEMENTS_BASE_STYLES_PROVIDER_KEY ? /* @__PURE__ */ React22.createElement(import_ui19.Tooltip, { title: (0, import_i18n6.__)("Inherited from base styles", "elementor"), placement: "top" }, /* @__PURE__ */ React22.createElement(import_icons6.InfoCircleIcon, { fontSize: SIZE4 })) : void 0,
2035
+ sx: (theme) => ({
2036
+ lineHeight: 1,
2037
+ flexWrap: "nowrap",
2038
+ alignItems: "center",
2039
+ borderRadius: `${theme.shape.borderRadius * 0.75}px`,
2040
+ flexDirection: "row-reverse",
2041
+ ".MuiChip-label": {
2042
+ overflow: "hidden",
2043
+ textOverflow: "ellipsis",
2044
+ whiteSpace: "nowrap"
2045
+ }
2046
+ })
2047
+ }
2048
+ );
2049
+ };
2050
+
2051
+ // src/styles-inheritance/components/value-component.tsx
2052
+ var React23 = __toESM(require("react"));
2053
+ var import_ui20 = require("@elementor/ui");
2054
+ var ValueComponent = ({ index, value }) => {
2055
+ return /* @__PURE__ */ React23.createElement(
2056
+ import_ui20.Typography,
2057
+ {
2058
+ variant: "caption",
2059
+ color: "text.tertiary",
2060
+ sx: {
2061
+ mt: "1px",
2062
+ textDecoration: index === 0 ? "none" : "line-through",
2063
+ overflow: "hidden",
2064
+ textOverflow: "ellipsis",
2065
+ whiteSpace: "nowrap"
2066
+ }
2067
+ },
2068
+ value
2069
+ );
2070
+ };
2071
+
2072
+ // src/styles-inheritance/components/action-icons.tsx
2073
+ var React24 = __toESM(require("react"));
2074
+ var import_ui21 = require("@elementor/ui");
2075
+ var ActionIcons = () => /* @__PURE__ */ React24.createElement(import_ui21.Box, { display: "flex", gap: 0.5, alignItems: "center" });
2076
+
2077
+ // src/styles-inheritance/hooks/use-normalized-inheritance-chain-items.tsx
2078
+ var import_react20 = require("react");
2079
+ var import_editor_styles_repository8 = require("@elementor/editor-styles-repository");
2080
+ var import_i18n7 = require("@wordpress/i18n");
1894
2081
  var MAXIMUM_ITEMS = 2;
1895
2082
  var useNormalizedInheritanceChainItems = (inheritanceChain, bind, resolve) => {
1896
- const [items3, setItems] = (0, import_react19.useState)([]);
1897
- (0, import_react19.useEffect)(() => {
2083
+ const [items3, setItems] = (0, import_react20.useState)([]);
2084
+ (0, import_react20.useEffect)(() => {
1898
2085
  (async () => {
1899
2086
  const normalizedItems = await Promise.all(
1900
- inheritanceChain.filter((item) => item.style?.label).map((item, index) => normalizeInheritanceItem(item, index, bind, resolve))
2087
+ inheritanceChain.filter(({ style }) => style).map((item, index) => normalizeInheritanceItem(item, index, bind, resolve))
1901
2088
  );
1902
- const validItems = normalizedItems.filter((item) => item.value !== "").slice(0, MAXIMUM_ITEMS);
2089
+ const validItems = normalizedItems.map((item) => ({
2090
+ ...item,
2091
+ displayLabel: import_editor_styles_repository8.ELEMENTS_BASE_STYLES_PROVIDER_KEY !== item.provider ? item.displayLabel : (0, import_i18n7.__)("Base", "elementor")
2092
+ })).filter((item) => !item.value || item.displayLabel !== "").slice(0, MAXIMUM_ITEMS);
1903
2093
  setItems(validItems);
1904
2094
  })();
1905
2095
  }, [inheritanceChain, bind, resolve]);
1906
2096
  return items3;
1907
2097
  };
2098
+ var DEFAULT_BREAKPOINT3 = "desktop";
1908
2099
  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;
2100
+ const {
2101
+ variant: {
2102
+ meta: { state, breakpoint }
2103
+ },
2104
+ style: { label, id }
2105
+ } = item;
2106
+ const displayLabel = `${label}${state ? ":" + state : ""}`;
1912
2107
  return {
1913
- id: item.style?.id ? item.style?.id + state : index,
1914
- breakpoint: item.variant?.meta?.breakpoint,
2108
+ id: id ? id + (state ?? "") : index,
2109
+ provider: item.provider || "",
2110
+ breakpoint: breakpoint ?? DEFAULT_BREAKPOINT3,
1915
2111
  displayLabel,
1916
2112
  value: await getTransformedValue(item, bind, resolve)
1917
2113
  };
@@ -1923,75 +2119,171 @@ var getTransformedValue = async (item, bind, resolve) => {
1923
2119
  [bind]: item.value
1924
2120
  }
1925
2121
  });
1926
- return Object.values(result).join(" ");
2122
+ const value = result?.[bind] ?? result;
2123
+ if ((0, import_react20.isValidElement)(value)) {
2124
+ return value;
2125
+ }
2126
+ if (typeof value === "object") {
2127
+ return JSON.stringify(value);
2128
+ }
2129
+ return String(value);
1927
2130
  } catch {
1928
2131
  return "";
1929
2132
  }
1930
2133
  };
1931
2134
 
2135
+ // src/styles-inheritance/styles-inheritance-transformers-registry.tsx
2136
+ var import_editor_canvas = require("@elementor/editor-canvas");
2137
+ var stylesInheritanceTransformersRegistry = (0, import_editor_canvas.createTransformersRegistry)();
2138
+
1932
2139
  // src/styles-inheritance/styles-inheritance-infotip.tsx
1933
- var StyleIndicatorInfotip = ({ inheritanceChain, propType, path }) => {
2140
+ var SIZE5 = "tiny";
2141
+ var StyleIndicatorInfotip = ({ inheritanceChain, propType, path, label, children }) => {
2142
+ const [open, setOpen] = (0, import_react21.useState)(false);
2143
+ const { isSiteRtl } = useDirection();
1934
2144
  const key = path.join(".");
1935
- const resolve = (0, import_react20.useMemo)(() => {
1936
- return (0, import_editor_canvas.createPropsResolver)({
1937
- transformers: import_editor_canvas.styleTransformersRegistry,
2145
+ const sectionContentRef = useSectionContentRef();
2146
+ const sectionContentWidth = sectionContentRef?.current?.offsetWidth ?? 320;
2147
+ const resolve = (0, import_react21.useMemo)(() => {
2148
+ return (0, import_editor_canvas2.createPropsResolver)({
2149
+ transformers: stylesInheritanceTransformersRegistry,
1938
2150
  schema: { [key]: propType }
1939
2151
  });
1940
2152
  }, [key, propType]);
1941
2153
  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,
2154
+ const toggleOpen = () => setOpen((prev) => !prev);
2155
+ const closeInfotip = () => {
2156
+ setOpen(false);
2157
+ };
2158
+ const forceInfotipAlignLeft = isSiteRtl ? 9999999 : -9999999;
2159
+ const infotipContent = /* @__PURE__ */ React25.createElement(
2160
+ import_ui22.Card,
1944
2161
  {
1945
- primary: `${item.breakpoint} | ${item.displayLabel}. ${item.value}`
1946
- }
1947
- ))))));
2162
+ elevation: 0,
2163
+ sx: {
2164
+ width: `${sectionContentWidth}px`,
2165
+ maxWidth: 500,
2166
+ overflowX: "hidden"
2167
+ }
2168
+ },
2169
+ /* @__PURE__ */ React25.createElement(
2170
+ import_ui22.CardContent,
2171
+ {
2172
+ sx: {
2173
+ display: "flex",
2174
+ gap: 0.5,
2175
+ flexDirection: "column",
2176
+ p: 0,
2177
+ "&:last-child": {
2178
+ pb: 0
2179
+ }
2180
+ }
2181
+ },
2182
+ /* @__PURE__ */ React25.createElement(import_ui22.Stack, { direction: "row", alignItems: "center", sx: { pl: 1.5, pr: 0.5, minHeight: 36, py: 0.5 } }, /* @__PURE__ */ React25.createElement(import_ui22.Typography, { variant: "subtitle2", color: "secondary", sx: { fontSize: 12, fontWeight: "500" } }, (0, import_i18n8.__)("Style origin", "elementor")), /* @__PURE__ */ React25.createElement(
2183
+ import_ui22.CloseButton,
2184
+ {
2185
+ slotProps: { icon: { fontSize: SIZE5 } },
2186
+ sx: { ml: "auto" },
2187
+ onClick: closeInfotip
2188
+ }
2189
+ )),
2190
+ /* @__PURE__ */ React25.createElement(import_ui22.Stack, { gap: 1.5, sx: { pl: 2, pr: 1, pb: 2, overflowX: "hidden", overflowY: "auto" }, role: "list" }, items3.map((item, index) => {
2191
+ return /* @__PURE__ */ React25.createElement(
2192
+ import_ui22.Box,
2193
+ {
2194
+ key: item.id,
2195
+ display: "flex",
2196
+ gap: 0.5,
2197
+ role: "listitem",
2198
+ "aria-label": (0, import_i18n8.__)("Inheritance item: %s", "elementor").replace(
2199
+ "%s",
2200
+ item.displayLabel
2201
+ )
2202
+ },
2203
+ /* @__PURE__ */ React25.createElement(import_ui22.Box, { display: "flex", gap: 0.5, sx: { flexWrap: "wrap", width: "100%" } }, /* @__PURE__ */ React25.createElement(BreakpointIcon, { breakpoint: item.breakpoint }), /* @__PURE__ */ React25.createElement(LabelChip, { displayLabel: item.displayLabel, provider: item.provider }), /* @__PURE__ */ React25.createElement(ValueComponent, { index, value: item.value })),
2204
+ /* @__PURE__ */ React25.createElement(ActionIcons, null)
2205
+ );
2206
+ }))
2207
+ )
2208
+ );
2209
+ return /* @__PURE__ */ React25.createElement(
2210
+ import_ui22.Infotip,
2211
+ {
2212
+ placement: "top",
2213
+ content: infotipContent,
2214
+ open,
2215
+ onClose: closeInfotip,
2216
+ disableHoverListener: true,
2217
+ componentsProps: {
2218
+ tooltip: {
2219
+ sx: {
2220
+ mx: 2
2221
+ }
2222
+ }
2223
+ },
2224
+ slotProps: {
2225
+ popper: {
2226
+ modifiers: [
2227
+ {
2228
+ name: "offset",
2229
+ options: { offset: [forceInfotipAlignLeft, 0] }
2230
+ }
2231
+ ]
2232
+ }
2233
+ }
2234
+ },
2235
+ /* @__PURE__ */ React25.createElement(import_ui22.IconButton, { onClick: toggleOpen, "aria-label": label, sx: { my: "-1px" } }, children)
2236
+ );
1948
2237
  };
1949
2238
 
1950
2239
  // src/styles-inheritance/styles-inheritance-indicator.tsx
1951
2240
  var StylesInheritanceIndicator = () => {
1952
- const [open, setOpen] = (0, import_react21.useState)(false);
1953
- const { value, path, propType } = (0, import_editor_controls5.useBoundProp)();
2241
+ const { path, propType } = (0, import_editor_controls5.useBoundProp)();
1954
2242
  const { id: currentStyleId, provider: currentStyleProvider, meta: currentStyleMeta } = useStyle();
1955
- const isUsingNestedProps = (0, import_editor_v1_adapters5.isExperimentActive)("e_v_3_30");
2243
+ const isUsingNestedProps = (0, import_editor_v1_adapters6.isExperimentActive)(EXPERIMENTAL_FEATURES.V_3_30);
1956
2244
  const finalPath = isUsingNestedProps ? path : path.slice(0, 1);
1957
2245
  const inheritanceChain = useStylesInheritanceChain(finalPath);
1958
2246
  if (!inheritanceChain.length) {
1959
2247
  return null;
1960
2248
  }
1961
- const [{ style, variant, provider }] = inheritanceChain;
1962
- if (provider === import_editor_styles_repository7.ELEMENTS_BASE_STYLES_PROVIDER_KEY) {
2249
+ const currentItem = inheritanceChain.find(
2250
+ ({
2251
+ style,
2252
+ variant: {
2253
+ meta: { breakpoint, state }
2254
+ }
2255
+ }) => style.id === currentStyleId && breakpoint === currentStyleMeta.breakpoint && state === currentStyleMeta.state
2256
+ );
2257
+ const hasValue = !(0, import_editor_props6.isEmpty)(currentItem?.value);
2258
+ const [actualStyle] = inheritanceChain;
2259
+ if (actualStyle.provider === import_editor_styles_repository9.ELEMENTS_BASE_STYLES_PROVIDER_KEY) {
1963
2260
  return null;
1964
2261
  }
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);
2262
+ const isFinalValue = currentItem === actualStyle;
1968
2263
  const label = getLabel({ isFinalValue, hasValue });
1969
2264
  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 });
2265
+ if (!isUsingIndicatorPopover()) {
2266
+ return /* @__PURE__ */ React26.createElement(import_ui23.Tooltip, { title: (0, import_i18n9.__)("Style origin", "elementor"), placement: "top" }, /* @__PURE__ */ React26.createElement(StyleIndicator, { variant: variantType, "aria-label": label }));
1973
2267
  }
1974
- const toggleOpen = () => setOpen((prev) => !prev);
1975
- return /* @__PURE__ */ React20.createElement(
1976
- import_ui16.Infotip,
2268
+ return /* @__PURE__ */ React26.createElement(
2269
+ StyleIndicatorInfotip,
1977
2270
  {
1978
- placement: "top",
1979
- content: /* @__PURE__ */ React20.createElement(StyleIndicatorInfotip, { inheritanceChain, path: finalPath, propType }),
1980
- open,
1981
- onClose: () => setOpen(false),
1982
- trigger: "manual"
2271
+ inheritanceChain,
2272
+ path: finalPath,
2273
+ propType,
2274
+ label
1983
2275
  },
1984
- /* @__PURE__ */ React20.createElement(import_ui16.IconButton, { onClick: toggleOpen, "aria-label": label }, /* @__PURE__ */ React20.createElement(StyleIndicator, { variant: variantType }))
2276
+ /* @__PURE__ */ React26.createElement(StyleIndicator, { variant: variantType })
1985
2277
  );
1986
2278
  };
1987
2279
  var getLabel = ({ isFinalValue, hasValue }) => {
1988
2280
  if (isFinalValue) {
1989
- return (0, import_i18n6.__)("This is the final value", "elementor");
2281
+ return (0, import_i18n9.__)("This is the final value", "elementor");
1990
2282
  }
1991
2283
  if (hasValue) {
1992
- return (0, import_i18n6.__)("This value is overridden by another style", "elementor");
2284
+ return (0, import_i18n9.__)("This value is overridden by another style", "elementor");
1993
2285
  }
1994
- return (0, import_i18n6.__)("This has value from another style", "elementor");
2286
+ return (0, import_i18n9.__)("This has value from another style", "elementor");
1995
2287
  };
1996
2288
  var getVariant = ({
1997
2289
  isFinalValue,
@@ -1999,7 +2291,7 @@ var getVariant = ({
1999
2291
  currentStyleProvider
2000
2292
  }) => {
2001
2293
  if (isFinalValue) {
2002
- return (0, import_editor_styles_repository7.isElementsStylesProvider)(currentStyleProvider?.getKey?.()) ? "local" : "global";
2294
+ return (0, import_editor_styles_repository9.isElementsStylesProvider)(currentStyleProvider?.getKey?.()) ? "local" : "global";
2003
2295
  }
2004
2296
  if (hasValue) {
2005
2297
  return "overridden";
@@ -2010,14 +2302,15 @@ var getVariant = ({
2010
2302
  // src/controls-registry/styles-field.tsx
2011
2303
  var StylesField = ({ bind, placeholder, children }) => {
2012
2304
  const [value, setValue] = useStylesField(bind);
2013
- const stylesSchema = (0, import_editor_styles2.getStylesSchema)();
2305
+ const { canEdit } = useStyle();
2306
+ const stylesSchema = (0, import_editor_styles3.getStylesSchema)();
2014
2307
  const propType = createTopLevelOjectType({ schema: stylesSchema });
2015
2308
  const values = { [bind]: value };
2016
2309
  const placeholderValues = { [bind]: placeholder };
2017
2310
  const setValues = (newValue) => {
2018
2311
  setValue(newValue[bind]);
2019
2312
  };
2020
- return /* @__PURE__ */ React21.createElement(
2313
+ return /* @__PURE__ */ React27.createElement(
2021
2314
  import_editor_controls6.ControlAdornmentsProvider,
2022
2315
  {
2023
2316
  items: [
@@ -2027,59 +2320,62 @@ var StylesField = ({ bind, placeholder, children }) => {
2027
2320
  }
2028
2321
  ]
2029
2322
  },
2030
- /* @__PURE__ */ React21.createElement(
2323
+ /* @__PURE__ */ React27.createElement(
2031
2324
  import_editor_controls6.PropProvider,
2032
2325
  {
2033
2326
  propType,
2034
2327
  value: values,
2035
2328
  setValue: setValues,
2036
- placeholder: placeholderValues
2329
+ placeholder: placeholderValues,
2330
+ disabled: !canEdit
2037
2331
  },
2038
- /* @__PURE__ */ React21.createElement(import_editor_controls6.PropKeyProvider, { bind }, children)
2332
+ /* @__PURE__ */ React27.createElement(import_editor_controls6.PropKeyProvider, { bind }, children)
2039
2333
  )
2040
2334
  );
2041
2335
  };
2042
2336
 
2043
2337
  // src/components/style-sections/background-section/background-section.tsx
2044
2338
  var BackgroundSection = () => {
2045
- return /* @__PURE__ */ React22.createElement(StylesField, { bind: "background" }, /* @__PURE__ */ React22.createElement(import_editor_controls7.BackgroundControl, null));
2339
+ return /* @__PURE__ */ React28.createElement(SectionContent, null, /* @__PURE__ */ React28.createElement(StylesField, { bind: "background" }, /* @__PURE__ */ React28.createElement(import_editor_controls7.BackgroundControl, null)));
2046
2340
  };
2047
2341
 
2048
2342
  // src/components/style-sections/border-section/border-section.tsx
2049
- var React32 = __toESM(require("react"));
2343
+ var React37 = __toESM(require("react"));
2050
2344
 
2051
2345
  // 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);
2346
+ var React29 = __toESM(require("react"));
2347
+ var import_ui24 = require("@elementor/ui");
2348
+ var PanelDivider = () => /* @__PURE__ */ React29.createElement(import_ui24.Divider, { sx: { my: 0.5 } });
2060
2349
 
2061
2350
  // src/components/style-sections/border-section/border-field.tsx
2062
- var React30 = __toESM(require("react"));
2063
- var import_i18n10 = require("@wordpress/i18n");
2351
+ var React35 = __toESM(require("react"));
2352
+ var import_i18n13 = require("@wordpress/i18n");
2064
2353
 
2065
2354
  // 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");
2355
+ var React31 = __toESM(require("react"));
2356
+ var import_icons7 = require("@elementor/icons");
2357
+ var import_ui26 = require("@elementor/ui");
2069
2358
 
2070
2359
  // src/components/control-label.tsx
2071
- var React25 = __toESM(require("react"));
2360
+ var React30 = __toESM(require("react"));
2072
2361
  var import_editor_controls8 = require("@elementor/editor-controls");
2073
- var import_ui19 = require("@elementor/ui");
2362
+ var import_ui25 = require("@elementor/ui");
2074
2363
  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));
2364
+ return /* @__PURE__ */ React30.createElement(import_ui25.Stack, { direction: "row", alignItems: "center", justifyItems: "start", gap: 1 }, /* @__PURE__ */ React30.createElement(import_editor_controls8.ControlFormLabel, null, children), /* @__PURE__ */ React30.createElement(import_editor_controls8.ControlAdornments, null));
2076
2365
  };
2077
2366
 
2078
2367
  // 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,
2368
+ var SIZE6 = "tiny";
2369
+ var AddOrRemoveContent = ({
2370
+ isAdded,
2371
+ label,
2372
+ onAdd,
2373
+ onRemove,
2374
+ children,
2375
+ disabled
2376
+ }) => {
2377
+ return /* @__PURE__ */ React31.createElement(SectionContent, null, /* @__PURE__ */ React31.createElement(
2378
+ import_ui26.Stack,
2083
2379
  {
2084
2380
  direction: "row",
2085
2381
  sx: {
@@ -2088,102 +2384,80 @@ var AddOrRemoveContent = ({ isAdded, label, onAdd, onRemove, children }) => {
2088
2384
  marginInlineEnd: -0.75
2089
2385
  }
2090
2386
  },
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)));
2387
+ /* @__PURE__ */ React31.createElement(ControlLabel, null, label),
2388
+ isAdded ? /* @__PURE__ */ React31.createElement(import_ui26.IconButton, { size: SIZE6, onClick: onRemove, "aria-label": "Remove", disabled }, /* @__PURE__ */ React31.createElement(import_icons7.MinusIcon, { fontSize: SIZE6 })) : /* @__PURE__ */ React31.createElement(import_ui26.IconButton, { size: SIZE6, onClick: onAdd, "aria-label": "Add", disabled }, /* @__PURE__ */ React31.createElement(import_icons7.PlusIcon, { fontSize: SIZE6 }))
2389
+ ), /* @__PURE__ */ React31.createElement(import_ui26.Collapse, { in: isAdded, unmountOnExit: true }, /* @__PURE__ */ React31.createElement(SectionContent, null, children)));
2094
2390
  };
2095
2391
 
2096
2392
  // src/components/style-sections/border-section/border-color-field.tsx
2097
- var React27 = __toESM(require("react"));
2393
+ var React32 = __toESM(require("react"));
2098
2394
  var import_editor_controls9 = require("@elementor/editor-controls");
2099
- var import_ui21 = require("@elementor/ui");
2100
- var import_i18n7 = require("@wordpress/i18n");
2395
+ var import_ui27 = require("@elementor/ui");
2396
+ var import_i18n10 = require("@wordpress/i18n");
2101
2397
  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))));
2398
+ return /* @__PURE__ */ React32.createElement(StylesField, { bind: "border-color" }, /* @__PURE__ */ React32.createElement(import_ui27.Grid, { container: true, gap: 2, alignItems: "center", flexWrap: "nowrap" }, /* @__PURE__ */ React32.createElement(import_ui27.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React32.createElement(ControlLabel, null, (0, import_i18n10.__)("Border color", "elementor"))), /* @__PURE__ */ React32.createElement(import_ui27.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React32.createElement(import_editor_controls9.ColorControl, null))));
2103
2399
  };
2104
2400
 
2105
2401
  // src/components/style-sections/border-section/border-style-field.tsx
2106
- var React28 = __toESM(require("react"));
2402
+ var React33 = __toESM(require("react"));
2107
2403
  var import_editor_controls10 = require("@elementor/editor-controls");
2108
- var import_ui22 = require("@elementor/ui");
2109
- var import_i18n8 = require("@wordpress/i18n");
2404
+ var import_ui28 = require("@elementor/ui");
2405
+ var import_i18n11 = require("@wordpress/i18n");
2110
2406
  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") }
2407
+ { value: "none", label: (0, import_i18n11.__)("None", "elementor") },
2408
+ { value: "solid", label: (0, import_i18n11.__)("Solid", "elementor") },
2409
+ { value: "dashed", label: (0, import_i18n11.__)("Dashed", "elementor") },
2410
+ { value: "dotted", label: (0, import_i18n11.__)("Dotted", "elementor") },
2411
+ { value: "double", label: (0, import_i18n11.__)("Double", "elementor") },
2412
+ { value: "groove", label: (0, import_i18n11.__)("Groove", "elementor") },
2413
+ { value: "ridge", label: (0, import_i18n11.__)("Ridge", "elementor") },
2414
+ { value: "inset", label: (0, import_i18n11.__)("Inset", "elementor") },
2415
+ { value: "outset", label: (0, import_i18n11.__)("Outset", "elementor") }
2120
2416
  ];
2121
2417
  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 }))));
2418
+ return /* @__PURE__ */ React33.createElement(StylesField, { bind: "border-style" }, /* @__PURE__ */ React33.createElement(import_ui28.Grid, { container: true, gap: 2, alignItems: "center", flexWrap: "nowrap" }, /* @__PURE__ */ React33.createElement(import_ui28.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React33.createElement(ControlLabel, null, (0, import_i18n11.__)("Border type", "elementor"))), /* @__PURE__ */ React33.createElement(import_ui28.Grid, { item: true, xs: 6, sx: { overflow: "hidden" } }, /* @__PURE__ */ React33.createElement(import_editor_controls10.SelectControl, { options: borderStyles }))));
2123
2419
  };
2124
2420
 
2125
2421
  // src/components/style-sections/border-section/border-width-field.tsx
2126
- var React29 = __toESM(require("react"));
2422
+ var React34 = __toESM(require("react"));
2127
2423
  var import_editor_controls11 = require("@elementor/editor-controls");
2128
2424
  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);
2425
+ var import_icons8 = require("@elementor/icons");
2426
+ var import_ui29 = require("@elementor/ui");
2427
+ var import_i18n12 = require("@wordpress/i18n");
2428
+ var InlineStartIcon = (0, import_ui29.withDirection)(import_icons8.SideRightIcon);
2429
+ var InlineEndIcon = (0, import_ui29.withDirection)(import_icons8.SideLeftIcon);
2156
2430
  var getEdges = (isSiteRtl) => [
2157
2431
  {
2158
- label: (0, import_i18n9.__)("Top", "elementor"),
2159
- icon: /* @__PURE__ */ React29.createElement(import_icons6.SideTopIcon, { fontSize: "tiny" }),
2432
+ label: (0, import_i18n12.__)("Top", "elementor"),
2433
+ icon: /* @__PURE__ */ React34.createElement(import_icons8.SideTopIcon, { fontSize: "tiny" }),
2160
2434
  bind: "block-start"
2161
2435
  },
2162
2436
  {
2163
- label: isSiteRtl ? (0, import_i18n9.__)("Left", "elementor") : (0, import_i18n9.__)("Right", "elementor"),
2164
- icon: /* @__PURE__ */ React29.createElement(InlineStartIcon, { fontSize: "tiny" }),
2437
+ label: isSiteRtl ? (0, import_i18n12.__)("Left", "elementor") : (0, import_i18n12.__)("Right", "elementor"),
2438
+ icon: /* @__PURE__ */ React34.createElement(InlineStartIcon, { fontSize: "tiny" }),
2165
2439
  bind: "inline-end"
2166
2440
  },
2167
2441
  {
2168
- label: (0, import_i18n9.__)("Bottom", "elementor"),
2169
- icon: /* @__PURE__ */ React29.createElement(import_icons6.SideBottomIcon, { fontSize: "tiny" }),
2442
+ label: (0, import_i18n12.__)("Bottom", "elementor"),
2443
+ icon: /* @__PURE__ */ React34.createElement(import_icons8.SideBottomIcon, { fontSize: "tiny" }),
2170
2444
  bind: "block-end"
2171
2445
  },
2172
2446
  {
2173
- label: isSiteRtl ? (0, import_i18n9.__)("Right", "elementor") : (0, import_i18n9.__)("Left", "elementor"),
2174
- icon: /* @__PURE__ */ React29.createElement(InlineEndIcon, { fontSize: "tiny" }),
2447
+ label: isSiteRtl ? (0, import_i18n12.__)("Right", "elementor") : (0, import_i18n12.__)("Left", "elementor"),
2448
+ icon: /* @__PURE__ */ React34.createElement(InlineEndIcon, { fontSize: "tiny" }),
2175
2449
  bind: "inline-start"
2176
2450
  }
2177
2451
  ];
2178
2452
  var BorderWidthField = () => {
2179
2453
  const { isSiteRtl } = useDirection();
2180
- return /* @__PURE__ */ React29.createElement(StylesField, { bind: "border-width" }, /* @__PURE__ */ React29.createElement(
2454
+ return /* @__PURE__ */ React34.createElement(StylesField, { bind: "border-width" }, /* @__PURE__ */ React34.createElement(
2181
2455
  import_editor_controls11.EqualUnequalSizesControl,
2182
2456
  {
2183
2457
  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"),
2458
+ label: (0, import_i18n12.__)("Border width", "elementor"),
2459
+ icon: /* @__PURE__ */ React34.createElement(import_icons8.SideAllIcon, { fontSize: "tiny" }),
2460
+ tooltipLabel: (0, import_i18n12.__)("Adjust borders", "elementor"),
2187
2461
  multiSizePropTypeUtil: import_editor_props7.borderWidthPropTypeUtil
2188
2462
  }
2189
2463
  ));
@@ -2196,6 +2470,7 @@ var initialBorder = {
2196
2470
  "border-style": { $$type: "string", value: "solid" }
2197
2471
  };
2198
2472
  var BorderField = () => {
2473
+ const { canEdit } = useStyle();
2199
2474
  const [border, setBorder] = useStylesFields(Object.keys(initialBorder));
2200
2475
  const addBorder = () => {
2201
2476
  setBorder(initialBorder);
@@ -2208,96 +2483,97 @@ var BorderField = () => {
2208
2483
  });
2209
2484
  };
2210
2485
  const hasBorder = Object.values(border ?? {}).some(Boolean);
2211
- return /* @__PURE__ */ React30.createElement(
2486
+ return /* @__PURE__ */ React35.createElement(
2212
2487
  AddOrRemoveContent,
2213
2488
  {
2214
- label: (0, import_i18n10.__)("Border", "elementor"),
2489
+ label: (0, import_i18n13.__)("Border", "elementor"),
2215
2490
  isAdded: hasBorder,
2216
2491
  onAdd: addBorder,
2217
- onRemove: removeBorder
2492
+ onRemove: removeBorder,
2493
+ disabled: !canEdit
2218
2494
  },
2219
- /* @__PURE__ */ React30.createElement(BorderWidthField, null),
2220
- /* @__PURE__ */ React30.createElement(BorderColorField, null),
2221
- /* @__PURE__ */ React30.createElement(BorderStyleField, null)
2495
+ /* @__PURE__ */ React35.createElement(BorderWidthField, null),
2496
+ /* @__PURE__ */ React35.createElement(BorderColorField, null),
2497
+ /* @__PURE__ */ React35.createElement(BorderStyleField, null)
2222
2498
  );
2223
2499
  };
2224
2500
 
2225
2501
  // src/components/style-sections/border-section/border-radius-field.tsx
2226
- var React31 = __toESM(require("react"));
2502
+ var React36 = __toESM(require("react"));
2227
2503
  var import_editor_controls12 = require("@elementor/editor-controls");
2228
2504
  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");
2505
+ var import_icons9 = require("@elementor/icons");
2506
+ var import_ui30 = require("@elementor/ui");
2507
+ var import_i18n14 = require("@wordpress/i18n");
2508
+ var StartStartIcon = (0, import_ui30.withDirection)(import_icons9.RadiusTopLeftIcon);
2509
+ var StartEndIcon = (0, import_ui30.withDirection)(import_icons9.RadiusTopRightIcon);
2510
+ var EndStartIcon = (0, import_ui30.withDirection)(import_icons9.RadiusBottomLeftIcon);
2511
+ var EndEndIcon = (0, import_ui30.withDirection)(import_icons9.RadiusBottomRightIcon);
2512
+ var getStartStartLabel = (isSiteRtl) => isSiteRtl ? (0, import_i18n14.__)("Top right", "elementor") : (0, import_i18n14.__)("Top left", "elementor");
2513
+ var getStartEndLabel = (isSiteRtl) => isSiteRtl ? (0, import_i18n14.__)("Top left", "elementor") : (0, import_i18n14.__)("Top right", "elementor");
2514
+ var getEndStartLabel = (isSiteRtl) => isSiteRtl ? (0, import_i18n14.__)("Bottom right", "elementor") : (0, import_i18n14.__)("Bottom left", "elementor");
2515
+ var getEndEndLabel = (isSiteRtl) => isSiteRtl ? (0, import_i18n14.__)("Bottom left", "elementor") : (0, import_i18n14.__)("Bottom right", "elementor");
2240
2516
  var getCorners = (isSiteRtl) => [
2241
2517
  {
2242
2518
  label: getStartStartLabel(isSiteRtl),
2243
- icon: /* @__PURE__ */ React31.createElement(StartStartIcon, { fontSize: "tiny" }),
2519
+ icon: /* @__PURE__ */ React36.createElement(StartStartIcon, { fontSize: "tiny" }),
2244
2520
  bind: "start-start"
2245
2521
  },
2246
2522
  {
2247
2523
  label: getStartEndLabel(isSiteRtl),
2248
- icon: /* @__PURE__ */ React31.createElement(StartEndIcon, { fontSize: "tiny" }),
2524
+ icon: /* @__PURE__ */ React36.createElement(StartEndIcon, { fontSize: "tiny" }),
2249
2525
  bind: "start-end"
2250
2526
  },
2251
2527
  {
2252
2528
  label: getEndStartLabel(isSiteRtl),
2253
- icon: /* @__PURE__ */ React31.createElement(EndStartIcon, { fontSize: "tiny" }),
2529
+ icon: /* @__PURE__ */ React36.createElement(EndStartIcon, { fontSize: "tiny" }),
2254
2530
  bind: "end-start"
2255
2531
  },
2256
2532
  {
2257
2533
  label: getEndEndLabel(isSiteRtl),
2258
- icon: /* @__PURE__ */ React31.createElement(EndEndIcon, { fontSize: "tiny" }),
2534
+ icon: /* @__PURE__ */ React36.createElement(EndEndIcon, { fontSize: "tiny" }),
2259
2535
  bind: "end-end"
2260
2536
  }
2261
2537
  ];
2262
2538
  var BorderRadiusField = () => {
2263
2539
  const { isSiteRtl } = useDirection();
2264
- return /* @__PURE__ */ React31.createElement(StylesField, { bind: "border-radius" }, /* @__PURE__ */ React31.createElement(
2540
+ return /* @__PURE__ */ React36.createElement(StylesField, { bind: "border-radius" }, /* @__PURE__ */ React36.createElement(
2265
2541
  import_editor_controls12.EqualUnequalSizesControl,
2266
2542
  {
2267
2543
  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"),
2544
+ label: (0, import_i18n14.__)("Border radius", "elementor"),
2545
+ icon: /* @__PURE__ */ React36.createElement(import_icons9.BorderCornersIcon, { fontSize: "tiny" }),
2546
+ tooltipLabel: (0, import_i18n14.__)("Adjust corners", "elementor"),
2271
2547
  multiSizePropTypeUtil: import_editor_props8.borderRadiusPropTypeUtil
2272
2548
  }
2273
2549
  ));
2274
2550
  };
2275
2551
 
2276
2552
  // 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));
2553
+ var BorderSection = () => /* @__PURE__ */ React37.createElement(SectionContent, null, /* @__PURE__ */ React37.createElement(BorderRadiusField, null), /* @__PURE__ */ React37.createElement(PanelDivider, null), /* @__PURE__ */ React37.createElement(BorderField, null));
2278
2554
 
2279
2555
  // src/components/style-sections/effects-section/effects-section.tsx
2280
- var React33 = __toESM(require("react"));
2556
+ var React38 = __toESM(require("react"));
2281
2557
  var import_editor_controls13 = require("@elementor/editor-controls");
2282
2558
  var EffectsSection = () => {
2283
- return /* @__PURE__ */ React33.createElement(SectionContent, null, /* @__PURE__ */ React33.createElement(StylesField, { bind: "box-shadow" }, /* @__PURE__ */ React33.createElement(import_editor_controls13.BoxShadowRepeaterControl, null)));
2559
+ return /* @__PURE__ */ React38.createElement(SectionContent, null, /* @__PURE__ */ React38.createElement(StylesField, { bind: "box-shadow" }, /* @__PURE__ */ React38.createElement(import_editor_controls13.BoxShadowRepeaterControl, null)));
2284
2560
  };
2285
2561
 
2286
2562
  // src/components/style-sections/layout-section/layout-section.tsx
2287
- var React45 = __toESM(require("react"));
2563
+ var React50 = __toESM(require("react"));
2288
2564
  var import_editor_controls24 = require("@elementor/editor-controls");
2289
2565
  var import_editor_elements7 = require("@elementor/editor-elements");
2290
- var import_i18n22 = require("@wordpress/i18n");
2566
+ var import_i18n25 = require("@wordpress/i18n");
2291
2567
 
2292
2568
  // src/hooks/use-computed-style.ts
2293
- var import_editor_v1_adapters6 = require("@elementor/editor-v1-adapters");
2569
+ var import_editor_v1_adapters7 = require("@elementor/editor-v1-adapters");
2294
2570
  function useComputedStyle(elementId) {
2295
- return (0, import_editor_v1_adapters6.__privateUseListenTo)(
2571
+ return (0, import_editor_v1_adapters7.__privateUseListenTo)(
2296
2572
  [
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")
2573
+ (0, import_editor_v1_adapters7.windowEvent)("elementor/device-mode/change"),
2574
+ (0, import_editor_v1_adapters7.commandEndEvent)("document/elements/reset-style"),
2575
+ (0, import_editor_v1_adapters7.commandEndEvent)("document/elements/settings"),
2576
+ (0, import_editor_v1_adapters7.commandEndEvent)("document/elements/paste-style")
2301
2577
  ],
2302
2578
  () => {
2303
2579
  if (!elementId) {
@@ -2315,16 +2591,16 @@ function useComputedStyle(elementId) {
2315
2591
  }
2316
2592
 
2317
2593
  // src/components/style-sections/layout-section/align-content-field.tsx
2318
- var React35 = __toESM(require("react"));
2594
+ var React40 = __toESM(require("react"));
2319
2595
  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");
2596
+ var import_icons10 = require("@elementor/icons");
2597
+ var import_ui32 = require("@elementor/ui");
2598
+ var import_i18n15 = require("@wordpress/i18n");
2323
2599
 
2324
2600
  // src/components/style-sections/layout-section/utils/rotated-icon.tsx
2325
- var React34 = __toESM(require("react"));
2601
+ var React39 = __toESM(require("react"));
2326
2602
  var import_react22 = require("react");
2327
- var import_ui26 = require("@elementor/ui");
2603
+ var import_ui31 = require("@elementor/ui");
2328
2604
  var CLOCKWISE_ANGLES = {
2329
2605
  row: 0,
2330
2606
  column: 90,
@@ -2346,11 +2622,11 @@ var RotatedIcon = ({
2346
2622
  }) => {
2347
2623
  const rotate = (0, import_react22.useRef)(useGetTargetAngle(isClockwise, offset, disableRotationForReversed));
2348
2624
  rotate.current = useGetTargetAngle(isClockwise, offset, disableRotationForReversed, rotate);
2349
- return /* @__PURE__ */ React34.createElement(Icon, { fontSize: size, sx: { transition: ".3s", rotate: `${rotate.current}deg` } });
2625
+ return /* @__PURE__ */ React39.createElement(Icon, { fontSize: size, sx: { transition: ".3s", rotate: `${rotate.current}deg` } });
2350
2626
  };
2351
2627
  var useGetTargetAngle = (isClockwise, offset, disableRotationForReversed, existingRef) => {
2352
2628
  const [direction] = useStylesField("flex-direction");
2353
- const isRtl = "rtl" === (0, import_ui26.useTheme)().direction;
2629
+ const isRtl = "rtl" === (0, import_ui31.useTheme)().direction;
2354
2630
  const rotationMultiplier = isRtl ? -1 : 1;
2355
2631
  const angleMap = isClockwise ? CLOCKWISE_ANGLES : COUNTER_CLOCKWISE_ANGLES;
2356
2632
  const currentDirection = direction?.value || "row";
@@ -2365,8 +2641,8 @@ var useGetTargetAngle = (isClockwise, offset, disableRotationForReversed, existi
2365
2641
  };
2366
2642
 
2367
2643
  // 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);
2644
+ var StartIcon = (0, import_ui32.withDirection)(import_icons10.JustifyTopIcon);
2645
+ var EndIcon = (0, import_ui32.withDirection)(import_icons10.JustifyBottomIcon);
2370
2646
  var iconProps = {
2371
2647
  isClockwise: false,
2372
2648
  offset: 0,
@@ -2375,54 +2651,54 @@ var iconProps = {
2375
2651
  var options = [
2376
2652
  {
2377
2653
  value: "start",
2378
- label: (0, import_i18n12.__)("Start", "elementor"),
2379
- renderContent: ({ size }) => /* @__PURE__ */ React35.createElement(RotatedIcon, { icon: StartIcon, size, ...iconProps }),
2654
+ label: (0, import_i18n15.__)("Start", "elementor"),
2655
+ renderContent: ({ size }) => /* @__PURE__ */ React40.createElement(RotatedIcon, { icon: StartIcon, size, ...iconProps }),
2380
2656
  showTooltip: true
2381
2657
  },
2382
2658
  {
2383
2659
  value: "center",
2384
- label: (0, import_i18n12.__)("Center", "elementor"),
2385
- renderContent: ({ size }) => /* @__PURE__ */ React35.createElement(RotatedIcon, { icon: import_icons8.JustifyCenterIcon, size, ...iconProps }),
2660
+ label: (0, import_i18n15.__)("Center", "elementor"),
2661
+ renderContent: ({ size }) => /* @__PURE__ */ React40.createElement(RotatedIcon, { icon: import_icons10.JustifyCenterIcon, size, ...iconProps }),
2386
2662
  showTooltip: true
2387
2663
  },
2388
2664
  {
2389
2665
  value: "end",
2390
- label: (0, import_i18n12.__)("End", "elementor"),
2391
- renderContent: ({ size }) => /* @__PURE__ */ React35.createElement(RotatedIcon, { icon: EndIcon, size, ...iconProps }),
2666
+ label: (0, import_i18n15.__)("End", "elementor"),
2667
+ renderContent: ({ size }) => /* @__PURE__ */ React40.createElement(RotatedIcon, { icon: EndIcon, size, ...iconProps }),
2392
2668
  showTooltip: true
2393
2669
  },
2394
2670
  {
2395
2671
  value: "space-between",
2396
- label: (0, import_i18n12.__)("Space between", "elementor"),
2397
- renderContent: ({ size }) => /* @__PURE__ */ React35.createElement(RotatedIcon, { icon: import_icons8.JustifySpaceBetweenVerticalIcon, size, ...iconProps }),
2672
+ label: (0, import_i18n15.__)("Space between", "elementor"),
2673
+ renderContent: ({ size }) => /* @__PURE__ */ React40.createElement(RotatedIcon, { icon: import_icons10.JustifySpaceBetweenVerticalIcon, size, ...iconProps }),
2398
2674
  showTooltip: true
2399
2675
  },
2400
2676
  {
2401
2677
  value: "space-around",
2402
- label: (0, import_i18n12.__)("Space around", "elementor"),
2403
- renderContent: ({ size }) => /* @__PURE__ */ React35.createElement(RotatedIcon, { icon: import_icons8.JustifySpaceAroundVerticalIcon, size, ...iconProps }),
2678
+ label: (0, import_i18n15.__)("Space around", "elementor"),
2679
+ renderContent: ({ size }) => /* @__PURE__ */ React40.createElement(RotatedIcon, { icon: import_icons10.JustifySpaceAroundVerticalIcon, size, ...iconProps }),
2404
2680
  showTooltip: true
2405
2681
  },
2406
2682
  {
2407
2683
  value: "space-evenly",
2408
- label: (0, import_i18n12.__)("Space evenly", "elementor"),
2409
- renderContent: ({ size }) => /* @__PURE__ */ React35.createElement(RotatedIcon, { icon: import_icons8.JustifyDistributeVerticalIcon, size, ...iconProps }),
2684
+ label: (0, import_i18n15.__)("Space evenly", "elementor"),
2685
+ renderContent: ({ size }) => /* @__PURE__ */ React40.createElement(RotatedIcon, { icon: import_icons10.JustifyDistributeVerticalIcon, size, ...iconProps }),
2410
2686
  showTooltip: true
2411
2687
  }
2412
2688
  ];
2413
2689
  var AlignContentField = () => {
2414
2690
  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 })))));
2691
+ return /* @__PURE__ */ React40.createElement(import_ui32.DirectionProvider, { rtl: isSiteRtl }, /* @__PURE__ */ React40.createElement(import_ui32.ThemeProvider, null, /* @__PURE__ */ React40.createElement(StylesField, { bind: "align-content" }, /* @__PURE__ */ React40.createElement(import_ui32.Stack, { gap: 1 }, /* @__PURE__ */ React40.createElement(ControlLabel, null, (0, import_i18n15.__)("Align content", "elementor")), /* @__PURE__ */ React40.createElement(import_editor_controls14.ToggleControl, { options, fullWidth: true })))));
2416
2692
  };
2417
2693
 
2418
2694
  // src/components/style-sections/layout-section/align-items-field.tsx
2419
- var React36 = __toESM(require("react"));
2695
+ var React41 = __toESM(require("react"));
2420
2696
  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);
2697
+ var import_icons11 = require("@elementor/icons");
2698
+ var import_ui33 = require("@elementor/ui");
2699
+ var import_i18n16 = require("@wordpress/i18n");
2700
+ var StartIcon2 = (0, import_ui33.withDirection)(import_icons11.LayoutAlignLeftIcon);
2701
+ var EndIcon2 = (0, import_ui33.withDirection)(import_icons11.LayoutAlignRightIcon);
2426
2702
  var iconProps2 = {
2427
2703
  isClockwise: false,
2428
2704
  offset: 90
@@ -2430,56 +2706,56 @@ var iconProps2 = {
2430
2706
  var options2 = [
2431
2707
  {
2432
2708
  value: "start",
2433
- label: (0, import_i18n13.__)("Start", "elementor"),
2434
- renderContent: ({ size }) => /* @__PURE__ */ React36.createElement(RotatedIcon, { icon: StartIcon2, size, ...iconProps2 }),
2709
+ label: (0, import_i18n16.__)("Start", "elementor"),
2710
+ renderContent: ({ size }) => /* @__PURE__ */ React41.createElement(RotatedIcon, { icon: StartIcon2, size, ...iconProps2 }),
2435
2711
  showTooltip: true
2436
2712
  },
2437
2713
  {
2438
2714
  value: "center",
2439
- label: (0, import_i18n13.__)("Center", "elementor"),
2440
- renderContent: ({ size }) => /* @__PURE__ */ React36.createElement(RotatedIcon, { icon: import_icons9.LayoutAlignCenterIcon, size, ...iconProps2 }),
2715
+ label: (0, import_i18n16.__)("Center", "elementor"),
2716
+ renderContent: ({ size }) => /* @__PURE__ */ React41.createElement(RotatedIcon, { icon: import_icons11.LayoutAlignCenterIcon, size, ...iconProps2 }),
2441
2717
  showTooltip: true
2442
2718
  },
2443
2719
  {
2444
2720
  value: "end",
2445
- label: (0, import_i18n13.__)("End", "elementor"),
2446
- renderContent: ({ size }) => /* @__PURE__ */ React36.createElement(RotatedIcon, { icon: EndIcon2, size, ...iconProps2 }),
2721
+ label: (0, import_i18n16.__)("End", "elementor"),
2722
+ renderContent: ({ size }) => /* @__PURE__ */ React41.createElement(RotatedIcon, { icon: EndIcon2, size, ...iconProps2 }),
2447
2723
  showTooltip: true
2448
2724
  },
2449
2725
  {
2450
2726
  value: "stretch",
2451
- label: (0, import_i18n13.__)("Stretch", "elementor"),
2452
- renderContent: ({ size }) => /* @__PURE__ */ React36.createElement(RotatedIcon, { icon: import_icons9.LayoutDistributeVerticalIcon, size, ...iconProps2 }),
2727
+ label: (0, import_i18n16.__)("Stretch", "elementor"),
2728
+ renderContent: ({ size }) => /* @__PURE__ */ React41.createElement(RotatedIcon, { icon: import_icons11.LayoutDistributeVerticalIcon, size, ...iconProps2 }),
2453
2729
  showTooltip: true
2454
2730
  }
2455
2731
  ];
2456
2732
  var AlignItemsField = () => {
2457
2733
  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 }))))));
2734
+ return /* @__PURE__ */ React41.createElement(import_ui33.DirectionProvider, { rtl: isSiteRtl }, /* @__PURE__ */ React41.createElement(import_ui33.ThemeProvider, null, /* @__PURE__ */ React41.createElement(StylesField, { bind: "align-items" }, /* @__PURE__ */ React41.createElement(import_ui33.Grid, { container: true, gap: 2, alignItems: "center", flexWrap: "nowrap" }, /* @__PURE__ */ React41.createElement(import_ui33.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React41.createElement(ControlLabel, null, (0, import_i18n16.__)("Align items", "elementor"))), /* @__PURE__ */ React41.createElement(import_ui33.Grid, { item: true, xs: 6, sx: { display: "flex", justifyContent: "end" } }, /* @__PURE__ */ React41.createElement(import_editor_controls15.ToggleControl, { options: options2 }))))));
2459
2735
  };
2460
2736
 
2461
2737
  // src/components/style-sections/layout-section/align-self-child-field.tsx
2462
- var React37 = __toESM(require("react"));
2738
+ var React42 = __toESM(require("react"));
2463
2739
  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");
2740
+ var import_icons12 = require("@elementor/icons");
2741
+ var import_ui34 = require("@elementor/ui");
2742
+ var import_i18n17 = require("@wordpress/i18n");
2467
2743
  var ALIGN_SELF_CHILD_OFFSET_MAP = {
2468
2744
  row: 90,
2469
2745
  "row-reverse": 90,
2470
2746
  column: 0,
2471
2747
  "column-reverse": 0
2472
2748
  };
2473
- var StartIcon3 = (0, import_ui29.withDirection)(import_icons10.LayoutAlignLeftIcon);
2474
- var EndIcon3 = (0, import_ui29.withDirection)(import_icons10.LayoutAlignRightIcon);
2749
+ var StartIcon3 = (0, import_ui34.withDirection)(import_icons12.LayoutAlignLeftIcon);
2750
+ var EndIcon3 = (0, import_ui34.withDirection)(import_icons12.LayoutAlignRightIcon);
2475
2751
  var iconProps3 = {
2476
2752
  isClockwise: false
2477
2753
  };
2478
2754
  var getOptions = (parentStyleDirection) => [
2479
2755
  {
2480
2756
  value: "start",
2481
- label: (0, import_i18n14.__)("Start", "elementor"),
2482
- renderContent: ({ size }) => /* @__PURE__ */ React37.createElement(
2757
+ label: (0, import_i18n17.__)("Start", "elementor"),
2758
+ renderContent: ({ size }) => /* @__PURE__ */ React42.createElement(
2483
2759
  RotatedIcon,
2484
2760
  {
2485
2761
  icon: StartIcon3,
@@ -2492,11 +2768,11 @@ var getOptions = (parentStyleDirection) => [
2492
2768
  },
2493
2769
  {
2494
2770
  value: "center",
2495
- label: (0, import_i18n14.__)("Center", "elementor"),
2496
- renderContent: ({ size }) => /* @__PURE__ */ React37.createElement(
2771
+ label: (0, import_i18n17.__)("Center", "elementor"),
2772
+ renderContent: ({ size }) => /* @__PURE__ */ React42.createElement(
2497
2773
  RotatedIcon,
2498
2774
  {
2499
- icon: import_icons10.LayoutAlignCenterIcon,
2775
+ icon: import_icons12.LayoutAlignCenterIcon,
2500
2776
  size,
2501
2777
  offset: ALIGN_SELF_CHILD_OFFSET_MAP[parentStyleDirection],
2502
2778
  ...iconProps3
@@ -2506,8 +2782,8 @@ var getOptions = (parentStyleDirection) => [
2506
2782
  },
2507
2783
  {
2508
2784
  value: "end",
2509
- label: (0, import_i18n14.__)("End", "elementor"),
2510
- renderContent: ({ size }) => /* @__PURE__ */ React37.createElement(
2785
+ label: (0, import_i18n17.__)("End", "elementor"),
2786
+ renderContent: ({ size }) => /* @__PURE__ */ React42.createElement(
2511
2787
  RotatedIcon,
2512
2788
  {
2513
2789
  icon: EndIcon3,
@@ -2520,11 +2796,11 @@ var getOptions = (parentStyleDirection) => [
2520
2796
  },
2521
2797
  {
2522
2798
  value: "stretch",
2523
- label: (0, import_i18n14.__)("Stretch", "elementor"),
2524
- renderContent: ({ size }) => /* @__PURE__ */ React37.createElement(
2799
+ label: (0, import_i18n17.__)("Stretch", "elementor"),
2800
+ renderContent: ({ size }) => /* @__PURE__ */ React42.createElement(
2525
2801
  RotatedIcon,
2526
2802
  {
2527
- icon: import_icons10.LayoutDistributeVerticalIcon,
2803
+ icon: import_icons12.LayoutDistributeVerticalIcon,
2528
2804
  size,
2529
2805
  offset: ALIGN_SELF_CHILD_OFFSET_MAP[parentStyleDirection],
2530
2806
  ...iconProps3
@@ -2535,107 +2811,107 @@ var getOptions = (parentStyleDirection) => [
2535
2811
  ];
2536
2812
  var AlignSelfChild = ({ parentStyleDirection }) => {
2537
2813
  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) }))))));
2814
+ return /* @__PURE__ */ React42.createElement(import_ui34.DirectionProvider, { rtl: isSiteRtl }, /* @__PURE__ */ React42.createElement(import_ui34.ThemeProvider, null, /* @__PURE__ */ React42.createElement(StylesField, { bind: "align-self" }, /* @__PURE__ */ React42.createElement(import_ui34.Grid, { container: true, gap: 2, alignItems: "center", flexWrap: "nowrap" }, /* @__PURE__ */ React42.createElement(import_ui34.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React42.createElement(ControlLabel, null, (0, import_i18n17.__)("Align self", "elementor"))), /* @__PURE__ */ React42.createElement(import_ui34.Grid, { item: true, xs: 6, sx: { display: "flex", justifyContent: "flex-end" } }, /* @__PURE__ */ React42.createElement(import_editor_controls16.ToggleControl, { options: getOptions(parentStyleDirection) }))))));
2539
2815
  };
2540
2816
 
2541
2817
  // src/components/style-sections/layout-section/display-field.tsx
2542
- var React38 = __toESM(require("react"));
2818
+ var React43 = __toESM(require("react"));
2543
2819
  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");
2820
+ var import_editor_v1_adapters8 = require("@elementor/editor-v1-adapters");
2821
+ var import_ui35 = require("@elementor/ui");
2822
+ var import_i18n18 = require("@wordpress/i18n");
2547
2823
  var displayFieldItems = [
2548
2824
  {
2549
2825
  value: "block",
2550
- renderContent: () => (0, import_i18n15.__)("Block", "elementor"),
2551
- label: (0, import_i18n15.__)("Block", "elementor"),
2826
+ renderContent: () => (0, import_i18n18.__)("Block", "elementor"),
2827
+ label: (0, import_i18n18.__)("Block", "elementor"),
2552
2828
  showTooltip: true
2553
2829
  },
2554
2830
  {
2555
2831
  value: "flex",
2556
- renderContent: () => (0, import_i18n15.__)("Flex", "elementor"),
2557
- label: (0, import_i18n15.__)("Flex", "elementor"),
2832
+ renderContent: () => (0, import_i18n18.__)("Flex", "elementor"),
2833
+ label: (0, import_i18n18.__)("Flex", "elementor"),
2558
2834
  showTooltip: true
2559
2835
  },
2560
2836
  {
2561
2837
  value: "inline-block",
2562
- renderContent: () => (0, import_i18n15.__)("In-blk", "elementor"),
2563
- label: (0, import_i18n15.__)("Inline-block", "elementor"),
2838
+ renderContent: () => (0, import_i18n18.__)("In-blk", "elementor"),
2839
+ label: (0, import_i18n18.__)("Inline-block", "elementor"),
2564
2840
  showTooltip: true
2565
2841
  }
2566
2842
  ];
2567
2843
  var DisplayField = () => {
2568
- const isDisplayNoneFeatureActive = (0, import_editor_v1_adapters7.isExperimentActive)("e_v_3_30");
2844
+ const isDisplayNoneFeatureActive = (0, import_editor_v1_adapters8.isExperimentActive)(EXPERIMENTAL_FEATURES.V_3_30);
2569
2845
  const items3 = [...displayFieldItems];
2570
2846
  if (isDisplayNoneFeatureActive) {
2571
2847
  items3.push({
2572
2848
  value: "none",
2573
- renderContent: () => (0, import_i18n15.__)("None", "elementor"),
2574
- label: (0, import_i18n15.__)("None", "elementor"),
2849
+ renderContent: () => (0, import_i18n18.__)("None", "elementor"),
2850
+ label: (0, import_i18n18.__)("None", "elementor"),
2575
2851
  showTooltip: true
2576
2852
  });
2577
2853
  }
2578
2854
  items3.push({
2579
2855
  value: "inline-flex",
2580
- renderContent: () => (0, import_i18n15.__)("In-flx", "elementor"),
2581
- label: (0, import_i18n15.__)("Inline-flex", "elementor"),
2856
+ renderContent: () => (0, import_i18n18.__)("In-flx", "elementor"),
2857
+ label: (0, import_i18n18.__)("Inline-flex", "elementor"),
2582
2858
  showTooltip: true
2583
2859
  });
2584
2860
  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 })));
2861
+ return /* @__PURE__ */ React43.createElement(StylesField, { bind: "display", placeholder }, /* @__PURE__ */ React43.createElement(import_ui35.Stack, { gap: 0.75 }, /* @__PURE__ */ React43.createElement(ControlLabel, null, (0, import_i18n18.__)("Display", "elementor")), /* @__PURE__ */ React43.createElement(import_editor_controls17.ToggleControl, { options: items3, maxItems: 4, fullWidth: true })));
2586
2862
  };
2587
2863
  var useDisplayPlaceholderValue = () => useStylesInheritanceChain(["display"])[0]?.value ?? void 0;
2588
2864
 
2589
2865
  // src/components/style-sections/layout-section/flex-direction-field.tsx
2590
- var React39 = __toESM(require("react"));
2866
+ var React44 = __toESM(require("react"));
2591
2867
  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");
2868
+ var import_icons13 = require("@elementor/icons");
2869
+ var import_ui36 = require("@elementor/ui");
2870
+ var import_i18n19 = require("@wordpress/i18n");
2595
2871
  var options3 = [
2596
2872
  {
2597
2873
  value: "row",
2598
- label: (0, import_i18n16.__)("Row", "elementor"),
2874
+ label: (0, import_i18n19.__)("Row", "elementor"),
2599
2875
  renderContent: ({ size }) => {
2600
- const StartIcon5 = (0, import_ui31.withDirection)(import_icons11.ArrowRightIcon);
2601
- return /* @__PURE__ */ React39.createElement(StartIcon5, { fontSize: size });
2876
+ const StartIcon5 = (0, import_ui36.withDirection)(import_icons13.ArrowRightIcon);
2877
+ return /* @__PURE__ */ React44.createElement(StartIcon5, { fontSize: size });
2602
2878
  },
2603
2879
  showTooltip: true
2604
2880
  },
2605
2881
  {
2606
2882
  value: "column",
2607
- label: (0, import_i18n16.__)("Column", "elementor"),
2608
- renderContent: ({ size }) => /* @__PURE__ */ React39.createElement(import_icons11.ArrowDownSmallIcon, { fontSize: size }),
2883
+ label: (0, import_i18n19.__)("Column", "elementor"),
2884
+ renderContent: ({ size }) => /* @__PURE__ */ React44.createElement(import_icons13.ArrowDownSmallIcon, { fontSize: size }),
2609
2885
  showTooltip: true
2610
2886
  },
2611
2887
  {
2612
2888
  value: "row-reverse",
2613
- label: (0, import_i18n16.__)("Reversed row", "elementor"),
2889
+ label: (0, import_i18n19.__)("Reversed row", "elementor"),
2614
2890
  renderContent: ({ size }) => {
2615
- const EndIcon5 = (0, import_ui31.withDirection)(import_icons11.ArrowLeftIcon);
2616
- return /* @__PURE__ */ React39.createElement(EndIcon5, { fontSize: size });
2891
+ const EndIcon5 = (0, import_ui36.withDirection)(import_icons13.ArrowLeftIcon);
2892
+ return /* @__PURE__ */ React44.createElement(EndIcon5, { fontSize: size });
2617
2893
  },
2618
2894
  showTooltip: true
2619
2895
  },
2620
2896
  {
2621
2897
  value: "column-reverse",
2622
- label: (0, import_i18n16.__)("Reversed column", "elementor"),
2623
- renderContent: ({ size }) => /* @__PURE__ */ React39.createElement(import_icons11.ArrowUpSmallIcon, { fontSize: size }),
2898
+ label: (0, import_i18n19.__)("Reversed column", "elementor"),
2899
+ renderContent: ({ size }) => /* @__PURE__ */ React44.createElement(import_icons13.ArrowUpSmallIcon, { fontSize: size }),
2624
2900
  showTooltip: true
2625
2901
  }
2626
2902
  ];
2627
2903
  var FlexDirectionField = () => {
2628
2904
  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 }))))));
2905
+ return /* @__PURE__ */ React44.createElement(import_ui36.DirectionProvider, { rtl: isSiteRtl }, /* @__PURE__ */ React44.createElement(import_ui36.ThemeProvider, null, /* @__PURE__ */ React44.createElement(StylesField, { bind: "flex-direction" }, /* @__PURE__ */ React44.createElement(import_ui36.Grid, { container: true, gap: 2, alignItems: "center", flexWrap: "nowrap" }, /* @__PURE__ */ React44.createElement(import_ui36.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React44.createElement(ControlLabel, null, (0, import_i18n19.__)("Direction", "elementor"))), /* @__PURE__ */ React44.createElement(import_ui36.Grid, { item: true, xs: 6, sx: { display: "flex", justifyContent: "end" } }, /* @__PURE__ */ React44.createElement(import_editor_controls18.ToggleControl, { options: options3 }))))));
2630
2906
  };
2631
2907
 
2632
2908
  // src/components/style-sections/layout-section/flex-order-field.tsx
2633
- var React40 = __toESM(require("react"));
2909
+ var React45 = __toESM(require("react"));
2634
2910
  var import_react23 = require("react");
2635
2911
  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");
2912
+ var import_icons14 = require("@elementor/icons");
2913
+ var import_ui37 = require("@elementor/ui");
2914
+ var import_i18n20 = require("@wordpress/i18n");
2639
2915
  var FIRST_DEFAULT_VALUE = -99999;
2640
2916
  var LAST_DEFAULT_VALUE = 99999;
2641
2917
  var FIRST = "first";
@@ -2648,25 +2924,27 @@ var orderValueMap = {
2648
2924
  var items = [
2649
2925
  {
2650
2926
  value: FIRST,
2651
- label: (0, import_i18n17.__)("First", "elementor"),
2652
- renderContent: ({ size }) => /* @__PURE__ */ React40.createElement(import_icons12.ArrowUpSmallIcon, { fontSize: size }),
2927
+ label: (0, import_i18n20.__)("First", "elementor"),
2928
+ renderContent: ({ size }) => /* @__PURE__ */ React45.createElement(import_icons14.ArrowUpSmallIcon, { fontSize: size }),
2653
2929
  showTooltip: true
2654
2930
  },
2655
2931
  {
2656
2932
  value: LAST,
2657
- label: (0, import_i18n17.__)("Last", "elementor"),
2658
- renderContent: ({ size }) => /* @__PURE__ */ React40.createElement(import_icons12.ArrowDownSmallIcon, { fontSize: size }),
2933
+ label: (0, import_i18n20.__)("Last", "elementor"),
2934
+ renderContent: ({ size }) => /* @__PURE__ */ React45.createElement(import_icons14.ArrowDownSmallIcon, { fontSize: size }),
2659
2935
  showTooltip: true
2660
2936
  },
2661
2937
  {
2662
2938
  value: CUSTOM,
2663
- label: (0, import_i18n17.__)("Custom", "elementor"),
2664
- renderContent: ({ size }) => /* @__PURE__ */ React40.createElement(import_icons12.PencilIcon, { fontSize: size }),
2939
+ label: (0, import_i18n20.__)("Custom", "elementor"),
2940
+ renderContent: ({ size }) => /* @__PURE__ */ React45.createElement(import_icons14.PencilIcon, { fontSize: size }),
2665
2941
  showTooltip: true
2666
2942
  }
2667
2943
  ];
2668
2944
  var FlexOrderField = () => {
2669
- const { isSiteRtl } = useDirection(), [order, setOrder] = useStylesField("order");
2945
+ const { isSiteRtl } = useDirection();
2946
+ const [order, setOrder] = useStylesField("order");
2947
+ const { canEdit } = useStyle();
2670
2948
  const [groupControlValue, setGroupControlValue] = (0, import_react23.useState)(getGroupControlValue(order?.value || null));
2671
2949
  const handleToggleButtonChange = (group) => {
2672
2950
  setGroupControlValue(group);
@@ -2676,15 +2954,16 @@ var FlexOrderField = () => {
2676
2954
  }
2677
2955
  setOrder({ $$type: "number", value: orderValueMap[group] });
2678
2956
  };
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(
2957
+ return /* @__PURE__ */ React45.createElement(import_ui37.DirectionProvider, { rtl: isSiteRtl }, /* @__PURE__ */ React45.createElement(import_ui37.ThemeProvider, null, /* @__PURE__ */ React45.createElement(StylesField, { bind: "order" }, /* @__PURE__ */ React45.createElement(SectionContent, null, /* @__PURE__ */ React45.createElement(import_ui37.Grid, { container: true, gap: 2, alignItems: "center", flexWrap: "nowrap" }, /* @__PURE__ */ React45.createElement(import_ui37.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React45.createElement(ControlLabel, null, (0, import_i18n20.__)("Order", "elementor"))), /* @__PURE__ */ React45.createElement(import_ui37.Grid, { item: true, xs: 6, sx: { display: "flex", justifyContent: "end" } }, /* @__PURE__ */ React45.createElement(
2680
2958
  import_editor_controls19.ControlToggleButtonGroup,
2681
2959
  {
2682
2960
  items,
2683
2961
  value: groupControlValue,
2684
2962
  onChange: handleToggleButtonChange,
2685
- exclusive: true
2963
+ exclusive: true,
2964
+ disabled: !canEdit
2686
2965
  }
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(
2966
+ ))), CUSTOM === groupControlValue && /* @__PURE__ */ React45.createElement(import_ui37.Grid, { container: true, gap: 2, alignItems: "center", flexWrap: "nowrap" }, /* @__PURE__ */ React45.createElement(import_ui37.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React45.createElement(ControlLabel, null, (0, import_i18n20.__)("Custom order", "elementor"))), /* @__PURE__ */ React45.createElement(import_ui37.Grid, { item: true, xs: 6, sx: { display: "flex", justifyContent: "end" } }, /* @__PURE__ */ React45.createElement(
2688
2967
  import_editor_controls19.NumberControl,
2689
2968
  {
2690
2969
  min: FIRST_DEFAULT_VALUE + 1,
@@ -2704,36 +2983,37 @@ var getGroupControlValue = (order) => {
2704
2983
  };
2705
2984
 
2706
2985
  // src/components/style-sections/layout-section/flex-size-field.tsx
2707
- var React41 = __toESM(require("react"));
2986
+ var React46 = __toESM(require("react"));
2708
2987
  var import_react24 = require("react");
2709
2988
  var import_editor_controls20 = require("@elementor/editor-controls");
2710
2989
  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");
2990
+ var import_icons15 = require("@elementor/icons");
2991
+ var import_ui38 = require("@elementor/ui");
2992
+ var import_i18n21 = require("@wordpress/i18n");
2714
2993
  var DEFAULT = 1;
2715
2994
  var items2 = [
2716
2995
  {
2717
2996
  value: "flex-grow",
2718
- label: (0, import_i18n18.__)("Grow", "elementor"),
2719
- renderContent: ({ size }) => /* @__PURE__ */ React41.createElement(import_icons13.ExpandIcon, { fontSize: size }),
2997
+ label: (0, import_i18n21.__)("Grow", "elementor"),
2998
+ renderContent: ({ size }) => /* @__PURE__ */ React46.createElement(import_icons15.ExpandIcon, { fontSize: size }),
2720
2999
  showTooltip: true
2721
3000
  },
2722
3001
  {
2723
3002
  value: "flex-shrink",
2724
- label: (0, import_i18n18.__)("Shrink", "elementor"),
2725
- renderContent: ({ size }) => /* @__PURE__ */ React41.createElement(import_icons13.ShrinkIcon, { fontSize: size }),
3003
+ label: (0, import_i18n21.__)("Shrink", "elementor"),
3004
+ renderContent: ({ size }) => /* @__PURE__ */ React46.createElement(import_icons15.ShrinkIcon, { fontSize: size }),
2726
3005
  showTooltip: true
2727
3006
  },
2728
3007
  {
2729
3008
  value: "custom",
2730
- label: (0, import_i18n18.__)("Custom", "elementor"),
2731
- renderContent: ({ size }) => /* @__PURE__ */ React41.createElement(import_icons13.PencilIcon, { fontSize: size }),
3009
+ label: (0, import_i18n21.__)("Custom", "elementor"),
3010
+ renderContent: ({ size }) => /* @__PURE__ */ React46.createElement(import_icons15.PencilIcon, { fontSize: size }),
2732
3011
  showTooltip: true
2733
3012
  }
2734
3013
  ];
2735
3014
  var FlexSizeField = () => {
2736
3015
  const { isSiteRtl } = useDirection();
3016
+ const { canEdit } = useStyle();
2737
3017
  const [fields, setFields] = useStylesFields(["flex-grow", "flex-shrink", "flex-basis"]);
2738
3018
  const grow = fields?.["flex-grow"]?.value || null;
2739
3019
  const shrink = fields?.["flex-shrink"]?.value || null;
@@ -2763,17 +3043,18 @@ var FlexSizeField = () => {
2763
3043
  "flex-shrink": import_editor_props9.numberPropTypeUtil.create(DEFAULT)
2764
3044
  });
2765
3045
  };
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(
3046
+ return /* @__PURE__ */ React46.createElement(import_ui38.DirectionProvider, { rtl: isSiteRtl }, /* @__PURE__ */ React46.createElement(import_ui38.ThemeProvider, null, /* @__PURE__ */ React46.createElement(SectionContent, null, /* @__PURE__ */ React46.createElement(import_ui38.Grid, { container: true, gap: 2, alignItems: "center", flexWrap: "nowrap" }, /* @__PURE__ */ React46.createElement(StylesField, { bind: activeGroup ?? "" }, /* @__PURE__ */ React46.createElement(import_ui38.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React46.createElement(ControlLabel, null, (0, import_i18n21.__)("Size", "elementor"))), /* @__PURE__ */ React46.createElement(import_ui38.Grid, { item: true, xs: 6, sx: { display: "flex", justifyContent: "end" } }, /* @__PURE__ */ React46.createElement(
2767
3047
  import_editor_controls20.ControlToggleButtonGroup,
2768
3048
  {
2769
3049
  value: activeGroup,
2770
3050
  onChange: onChangeGroup,
3051
+ disabled: !canEdit,
2771
3052
  items: items2,
2772
3053
  exclusive: true
2773
3054
  }
2774
- ))), "custom" === activeGroup && /* @__PURE__ */ React41.createElement(FlexCustomField, null))));
3055
+ )))), "custom" === activeGroup && /* @__PURE__ */ React46.createElement(FlexCustomField, null))));
2775
3056
  };
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"] })))));
3057
+ var FlexCustomField = () => /* @__PURE__ */ React46.createElement(React46.Fragment, null, /* @__PURE__ */ React46.createElement(StylesField, { bind: "flex-grow" }, /* @__PURE__ */ React46.createElement(import_ui38.Grid, { container: true, gap: 2, alignItems: "center", flexWrap: "nowrap" }, /* @__PURE__ */ React46.createElement(import_ui38.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React46.createElement(ControlLabel, null, (0, import_i18n21.__)("Grow", "elementor"))), /* @__PURE__ */ React46.createElement(import_ui38.Grid, { item: true, xs: 6, sx: { display: "flex", justifyContent: "end" } }, /* @__PURE__ */ React46.createElement(import_editor_controls20.NumberControl, { min: 0, shouldForceInt: true })))), /* @__PURE__ */ React46.createElement(StylesField, { bind: "flex-shrink" }, /* @__PURE__ */ React46.createElement(import_ui38.Grid, { container: true, gap: 2, alignItems: "center", flexWrap: "nowrap" }, /* @__PURE__ */ React46.createElement(import_ui38.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React46.createElement(ControlLabel, null, (0, import_i18n21.__)("Shrink", "elementor"))), /* @__PURE__ */ React46.createElement(import_ui38.Grid, { item: true, xs: 6, sx: { display: "flex", justifyContent: "end" } }, /* @__PURE__ */ React46.createElement(import_editor_controls20.NumberControl, { min: 0, shouldForceInt: true })))), /* @__PURE__ */ React46.createElement(StylesField, { bind: "flex-basis" }, /* @__PURE__ */ React46.createElement(import_ui38.Grid, { container: true, gap: 2, alignItems: "center", flexWrap: "nowrap" }, /* @__PURE__ */ React46.createElement(import_ui38.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React46.createElement(ControlLabel, null, (0, import_i18n21.__)("Basis", "elementor"))), /* @__PURE__ */ React46.createElement(import_ui38.Grid, { item: true, xs: 6, sx: { display: "flex", justifyContent: "end" } }, /* @__PURE__ */ React46.createElement(import_editor_controls20.SizeControl, { extendedValues: ["auto"] })))));
2777
3058
  var getActiveGroup = ({
2778
3059
  grow,
2779
3060
  shrink,
@@ -2795,22 +3076,22 @@ var getActiveGroup = ({
2795
3076
  };
2796
3077
 
2797
3078
  // src/components/style-sections/layout-section/gap-control-field.tsx
2798
- var React42 = __toESM(require("react"));
3079
+ var React47 = __toESM(require("react"));
2799
3080
  var import_editor_controls21 = require("@elementor/editor-controls");
2800
- var import_ui34 = require("@elementor/ui");
2801
- var import_i18n19 = require("@wordpress/i18n");
3081
+ var import_ui39 = require("@elementor/ui");
3082
+ var import_i18n22 = require("@wordpress/i18n");
2802
3083
  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") })));
3084
+ return /* @__PURE__ */ React47.createElement(import_ui39.Stack, { gap: 1 }, /* @__PURE__ */ React47.createElement(StylesField, { bind: "gap" }, /* @__PURE__ */ React47.createElement(import_editor_controls21.GapControl, { label: (0, import_i18n22.__)("Gaps", "elementor") })));
2804
3085
  };
2805
3086
 
2806
3087
  // src/components/style-sections/layout-section/justify-content-field.tsx
2807
- var React43 = __toESM(require("react"));
3088
+ var React48 = __toESM(require("react"));
2808
3089
  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);
3090
+ var import_icons16 = require("@elementor/icons");
3091
+ var import_ui40 = require("@elementor/ui");
3092
+ var import_i18n23 = require("@wordpress/i18n");
3093
+ var StartIcon4 = (0, import_ui40.withDirection)(import_icons16.JustifyTopIcon);
3094
+ var EndIcon4 = (0, import_ui40.withDirection)(import_icons16.JustifyBottomIcon);
2814
3095
  var iconProps4 = {
2815
3096
  isClockwise: true,
2816
3097
  offset: -90
@@ -2818,75 +3099,75 @@ var iconProps4 = {
2818
3099
  var options4 = [
2819
3100
  {
2820
3101
  value: "flex-start",
2821
- label: (0, import_i18n20.__)("Start", "elementor"),
2822
- renderContent: ({ size }) => /* @__PURE__ */ React43.createElement(RotatedIcon, { icon: StartIcon4, size, ...iconProps4 }),
3102
+ label: (0, import_i18n23.__)("Start", "elementor"),
3103
+ renderContent: ({ size }) => /* @__PURE__ */ React48.createElement(RotatedIcon, { icon: StartIcon4, size, ...iconProps4 }),
2823
3104
  showTooltip: true
2824
3105
  },
2825
3106
  {
2826
3107
  value: "center",
2827
- label: (0, import_i18n20.__)("Center", "elementor"),
2828
- renderContent: ({ size }) => /* @__PURE__ */ React43.createElement(RotatedIcon, { icon: import_icons14.JustifyCenterIcon, size, ...iconProps4 }),
3108
+ label: (0, import_i18n23.__)("Center", "elementor"),
3109
+ renderContent: ({ size }) => /* @__PURE__ */ React48.createElement(RotatedIcon, { icon: import_icons16.JustifyCenterIcon, size, ...iconProps4 }),
2829
3110
  showTooltip: true
2830
3111
  },
2831
3112
  {
2832
3113
  value: "flex-end",
2833
- label: (0, import_i18n20.__)("End", "elementor"),
2834
- renderContent: ({ size }) => /* @__PURE__ */ React43.createElement(RotatedIcon, { icon: EndIcon4, size, ...iconProps4 }),
3114
+ label: (0, import_i18n23.__)("End", "elementor"),
3115
+ renderContent: ({ size }) => /* @__PURE__ */ React48.createElement(RotatedIcon, { icon: EndIcon4, size, ...iconProps4 }),
2835
3116
  showTooltip: true
2836
3117
  },
2837
3118
  {
2838
3119
  value: "space-between",
2839
- label: (0, import_i18n20.__)("Space between", "elementor"),
2840
- renderContent: ({ size }) => /* @__PURE__ */ React43.createElement(RotatedIcon, { icon: import_icons14.JustifySpaceBetweenVerticalIcon, size, ...iconProps4 }),
3120
+ label: (0, import_i18n23.__)("Space between", "elementor"),
3121
+ renderContent: ({ size }) => /* @__PURE__ */ React48.createElement(RotatedIcon, { icon: import_icons16.JustifySpaceBetweenVerticalIcon, size, ...iconProps4 }),
2841
3122
  showTooltip: true
2842
3123
  },
2843
3124
  {
2844
3125
  value: "space-around",
2845
- label: (0, import_i18n20.__)("Space around", "elementor"),
2846
- renderContent: ({ size }) => /* @__PURE__ */ React43.createElement(RotatedIcon, { icon: import_icons14.JustifySpaceAroundVerticalIcon, size, ...iconProps4 }),
3126
+ label: (0, import_i18n23.__)("Space around", "elementor"),
3127
+ renderContent: ({ size }) => /* @__PURE__ */ React48.createElement(RotatedIcon, { icon: import_icons16.JustifySpaceAroundVerticalIcon, size, ...iconProps4 }),
2847
3128
  showTooltip: true
2848
3129
  },
2849
3130
  {
2850
3131
  value: "space-evenly",
2851
- label: (0, import_i18n20.__)("Space evenly", "elementor"),
2852
- renderContent: ({ size }) => /* @__PURE__ */ React43.createElement(RotatedIcon, { icon: import_icons14.JustifyDistributeVerticalIcon, size, ...iconProps4 }),
3132
+ label: (0, import_i18n23.__)("Space evenly", "elementor"),
3133
+ renderContent: ({ size }) => /* @__PURE__ */ React48.createElement(RotatedIcon, { icon: import_icons16.JustifyDistributeVerticalIcon, size, ...iconProps4 }),
2853
3134
  showTooltip: true
2854
3135
  }
2855
3136
  ];
2856
3137
  var JustifyContentField = () => {
2857
3138
  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 })))));
3139
+ return /* @__PURE__ */ React48.createElement(import_ui40.DirectionProvider, { rtl: isSiteRtl }, /* @__PURE__ */ React48.createElement(import_ui40.ThemeProvider, null, /* @__PURE__ */ React48.createElement(StylesField, { bind: "justify-content" }, /* @__PURE__ */ React48.createElement(import_ui40.Stack, { gap: 0.75 }, /* @__PURE__ */ React48.createElement(ControlLabel, null, (0, import_i18n23.__)("Justify content", "elementor")), /* @__PURE__ */ React48.createElement(import_editor_controls22.ToggleControl, { options: options4, fullWidth: true })))));
2859
3140
  };
2860
3141
 
2861
3142
  // src/components/style-sections/layout-section/wrap-field.tsx
2862
- var React44 = __toESM(require("react"));
3143
+ var React49 = __toESM(require("react"));
2863
3144
  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");
3145
+ var import_icons17 = require("@elementor/icons");
3146
+ var import_ui41 = require("@elementor/ui");
3147
+ var import_i18n24 = require("@wordpress/i18n");
2867
3148
  var options5 = [
2868
3149
  {
2869
3150
  value: "nowrap",
2870
- label: (0, import_i18n21.__)("No wrap", "elementor"),
2871
- renderContent: ({ size }) => /* @__PURE__ */ React44.createElement(import_icons15.ArrowRightIcon, { fontSize: size }),
3151
+ label: (0, import_i18n24.__)("No wrap", "elementor"),
3152
+ renderContent: ({ size }) => /* @__PURE__ */ React49.createElement(import_icons17.ArrowRightIcon, { fontSize: size }),
2872
3153
  showTooltip: true
2873
3154
  },
2874
3155
  {
2875
3156
  value: "wrap",
2876
- label: (0, import_i18n21.__)("Wrap", "elementor"),
2877
- renderContent: ({ size }) => /* @__PURE__ */ React44.createElement(import_icons15.ArrowBackIcon, { fontSize: size }),
3157
+ label: (0, import_i18n24.__)("Wrap", "elementor"),
3158
+ renderContent: ({ size }) => /* @__PURE__ */ React49.createElement(import_icons17.ArrowBackIcon, { fontSize: size }),
2878
3159
  showTooltip: true
2879
3160
  },
2880
3161
  {
2881
3162
  value: "wrap-reverse",
2882
- label: (0, import_i18n21.__)("Reversed wrap", "elementor"),
2883
- renderContent: ({ size }) => /* @__PURE__ */ React44.createElement(import_icons15.ArrowForwardIcon, { fontSize: size }),
3163
+ label: (0, import_i18n24.__)("Reversed wrap", "elementor"),
3164
+ renderContent: ({ size }) => /* @__PURE__ */ React49.createElement(import_icons17.ArrowForwardIcon, { fontSize: size }),
2884
3165
  showTooltip: true
2885
3166
  }
2886
3167
  ];
2887
3168
  var WrapField = () => {
2888
3169
  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 }))))));
3170
+ return /* @__PURE__ */ React49.createElement(import_ui41.DirectionProvider, { rtl: isSiteRtl }, /* @__PURE__ */ React49.createElement(import_ui41.ThemeProvider, null, /* @__PURE__ */ React49.createElement(StylesField, { bind: "flex-wrap" }, /* @__PURE__ */ React49.createElement(import_ui41.Grid, { container: true, gap: 2, alignItems: "center", flexWrap: "nowrap" }, /* @__PURE__ */ React49.createElement(import_ui41.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React49.createElement(ControlLabel, null, (0, import_i18n24.__)("Wrap", "elementor"))), /* @__PURE__ */ React49.createElement(import_ui41.Grid, { item: true, xs: 6, sx: { display: "flex", justifyContent: "flex-end" } }, /* @__PURE__ */ React49.createElement(import_editor_controls23.ToggleControl, { options: options5 }))))));
2890
3171
  };
2891
3172
 
2892
3173
  // src/components/style-sections/layout-section/layout-section.tsx
@@ -2898,13 +3179,13 @@ var LayoutSection = () => {
2898
3179
  const parent = (0, import_editor_elements7.useParentElement)(element.id);
2899
3180
  const parentStyle = useComputedStyle(parent?.id || null);
2900
3181
  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 }));
3182
+ return /* @__PURE__ */ React50.createElement(SectionContent, null, /* @__PURE__ */ React50.createElement(DisplayField, null), isDisplayFlex && /* @__PURE__ */ React50.createElement(FlexFields, null), "flex" === parentStyle?.display && /* @__PURE__ */ React50.createElement(FlexChildFields, { parentStyleDirection }));
2902
3183
  };
2903
3184
  var FlexFields = () => {
2904
3185
  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));
3186
+ return /* @__PURE__ */ React50.createElement(React50.Fragment, null, /* @__PURE__ */ React50.createElement(FlexDirectionField, null), /* @__PURE__ */ React50.createElement(JustifyContentField, null), /* @__PURE__ */ React50.createElement(AlignItemsField, null), /* @__PURE__ */ React50.createElement(PanelDivider, null), /* @__PURE__ */ React50.createElement(GapControlField, null), /* @__PURE__ */ React50.createElement(WrapField, null), ["wrap", "wrap-reverse"].includes(flexWrap?.value) && /* @__PURE__ */ React50.createElement(AlignContentField, null));
2906
3187
  };
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));
3188
+ var FlexChildFields = ({ parentStyleDirection }) => /* @__PURE__ */ React50.createElement(React50.Fragment, null, /* @__PURE__ */ React50.createElement(PanelDivider, null), /* @__PURE__ */ React50.createElement(import_editor_controls24.ControlFormLabel, null, (0, import_i18n25.__)("Flex child", "elementor")), /* @__PURE__ */ React50.createElement(AlignSelfChild, { parentStyleDirection }), /* @__PURE__ */ React50.createElement(FlexOrderField, null), /* @__PURE__ */ React50.createElement(FlexSizeField, null));
2908
3189
  var shouldDisplayFlexFields = (display, local) => {
2909
3190
  const value = display?.value ?? local?.value;
2910
3191
  if (!value) {
@@ -2914,66 +3195,66 @@ var shouldDisplayFlexFields = (display, local) => {
2914
3195
  };
2915
3196
 
2916
3197
  // 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");
3198
+ var React55 = __toESM(require("react"));
3199
+ var import_editor_v1_adapters9 = require("@elementor/editor-v1-adapters");
2919
3200
  var import_session3 = require("@elementor/session");
2920
3201
 
2921
3202
  // src/components/style-sections/position-section/dimensions-field.tsx
2922
- var React46 = __toESM(require("react"));
3203
+ var React51 = __toESM(require("react"));
2923
3204
  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);
3205
+ var import_icons18 = require("@elementor/icons");
3206
+ var import_ui42 = require("@elementor/ui");
3207
+ var import_i18n26 = require("@wordpress/i18n");
3208
+ var InlineStartIcon2 = (0, import_ui42.withDirection)(import_icons18.SideLeftIcon);
3209
+ var InlineEndIcon2 = (0, import_ui42.withDirection)(import_icons18.SideRightIcon);
2929
3210
  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" })
3211
+ "inset-block-start": /* @__PURE__ */ React51.createElement(import_icons18.SideTopIcon, { fontSize: "tiny" }),
3212
+ "inset-block-end": /* @__PURE__ */ React51.createElement(import_icons18.SideBottomIcon, { fontSize: "tiny" }),
3213
+ "inset-inline-start": /* @__PURE__ */ React51.createElement(RotatedIcon, { icon: InlineStartIcon2, size: "tiny" }),
3214
+ "inset-inline-end": /* @__PURE__ */ React51.createElement(RotatedIcon, { icon: InlineEndIcon2, size: "tiny" })
2934
3215
  };
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");
3216
+ var getInlineStartLabel = (isSiteRtl) => isSiteRtl ? (0, import_i18n26.__)("Right", "elementor") : (0, import_i18n26.__)("Left", "elementor");
3217
+ var getInlineEndLabel = (isSiteRtl) => isSiteRtl ? (0, import_i18n26.__)("Left", "elementor") : (0, import_i18n26.__)("Right", "elementor");
2937
3218
  var DimensionsField = () => {
2938
3219
  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) })));
3220
+ return /* @__PURE__ */ React51.createElement(React51.Fragment, null, /* @__PURE__ */ React51.createElement(import_ui42.Stack, { direction: "row", gap: 2, flexWrap: "nowrap" }, /* @__PURE__ */ React51.createElement(DimensionField, { side: "inset-block-start", label: (0, import_i18n26.__)("Top", "elementor") }), /* @__PURE__ */ React51.createElement(DimensionField, { side: "inset-inline-end", label: getInlineEndLabel(isSiteRtl) })), /* @__PURE__ */ React51.createElement(import_ui42.Stack, { direction: "row", gap: 2, flexWrap: "nowrap" }, /* @__PURE__ */ React51.createElement(DimensionField, { side: "inset-block-end", label: (0, import_i18n26.__)("Bottom", "elementor") }), /* @__PURE__ */ React51.createElement(DimensionField, { side: "inset-inline-start", label: getInlineStartLabel(isSiteRtl) })));
2940
3221
  };
2941
3222
  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"] }))));
3223
+ return /* @__PURE__ */ React51.createElement(import_ui42.Grid, { container: true, gap: 0.75, alignItems: "center" }, /* @__PURE__ */ React51.createElement(import_ui42.Grid, { item: true, xs: 12 }, /* @__PURE__ */ React51.createElement(ControlLabel, null, label)), /* @__PURE__ */ React51.createElement(import_ui42.Grid, { item: true, xs: 12 }, /* @__PURE__ */ React51.createElement(StylesField, { bind: side }, /* @__PURE__ */ React51.createElement(import_editor_controls25.SizeControl, { startIcon: sideIcons[side], extendedValues: ["auto"] }))));
2943
3224
  };
2944
3225
 
2945
3226
  // src/components/style-sections/position-section/offset-field.tsx
2946
- var React47 = __toESM(require("react"));
3227
+ var React52 = __toESM(require("react"));
2947
3228
  var import_editor_controls26 = require("@elementor/editor-controls");
2948
- var import_ui38 = require("@elementor/ui");
2949
- var import_i18n24 = require("@wordpress/i18n");
3229
+ var import_ui43 = require("@elementor/ui");
3230
+ var import_i18n27 = require("@wordpress/i18n");
2950
3231
  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"] }))));
3232
+ return /* @__PURE__ */ React52.createElement(StylesField, { bind: "scroll-margin-top" }, /* @__PURE__ */ React52.createElement(import_ui43.Grid, { container: true, gap: 2, alignItems: "center", flexWrap: "nowrap" }, /* @__PURE__ */ React52.createElement(import_ui43.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React52.createElement(ControlLabel, null, (0, import_i18n27.__)("Anchor offset", "elementor"))), /* @__PURE__ */ React52.createElement(import_ui43.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React52.createElement(import_editor_controls26.SizeControl, { units: ["px", "em", "rem", "vw", "vh"] }))));
2952
3233
  };
2953
3234
 
2954
3235
  // src/components/style-sections/position-section/position-field.tsx
2955
- var React48 = __toESM(require("react"));
3236
+ var React53 = __toESM(require("react"));
2956
3237
  var import_editor_controls27 = require("@elementor/editor-controls");
2957
- var import_ui39 = require("@elementor/ui");
2958
- var import_i18n25 = require("@wordpress/i18n");
3238
+ var import_ui44 = require("@elementor/ui");
3239
+ var import_i18n28 = require("@wordpress/i18n");
2959
3240
  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" }
3241
+ { label: (0, import_i18n28.__)("Static", "elementor"), value: "static" },
3242
+ { label: (0, import_i18n28.__)("Relative", "elementor"), value: "relative" },
3243
+ { label: (0, import_i18n28.__)("Absolute", "elementor"), value: "absolute" },
3244
+ { label: (0, import_i18n28.__)("Fixed", "elementor"), value: "fixed" },
3245
+ { label: (0, import_i18n28.__)("Sticky", "elementor"), value: "sticky" }
2965
3246
  ];
2966
3247
  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 }))));
3248
+ return /* @__PURE__ */ React53.createElement(StylesField, { bind: "position" }, /* @__PURE__ */ React53.createElement(import_ui44.Grid, { container: true, gap: 2, alignItems: "center", flexWrap: "nowrap" }, /* @__PURE__ */ React53.createElement(import_ui44.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React53.createElement(ControlLabel, null, (0, import_i18n28.__)("Position", "elementor"))), /* @__PURE__ */ React53.createElement(import_ui44.Grid, { item: true, xs: 6, sx: { overflow: "hidden" } }, /* @__PURE__ */ React53.createElement(import_editor_controls27.SelectControl, { options: positionOptions, onChange }))));
2968
3249
  };
2969
3250
 
2970
3251
  // src/components/style-sections/position-section/z-index-field.tsx
2971
- var React49 = __toESM(require("react"));
3252
+ var React54 = __toESM(require("react"));
2972
3253
  var import_editor_controls28 = require("@elementor/editor-controls");
2973
- var import_ui40 = require("@elementor/ui");
2974
- var import_i18n26 = require("@wordpress/i18n");
3254
+ var import_ui45 = require("@elementor/ui");
3255
+ var import_i18n29 = require("@wordpress/i18n");
2975
3256
  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))));
3257
+ return /* @__PURE__ */ React54.createElement(StylesField, { bind: "z-index" }, /* @__PURE__ */ React54.createElement(import_ui45.Grid, { container: true, gap: 2, alignItems: "center", flexWrap: "nowrap" }, /* @__PURE__ */ React54.createElement(import_ui45.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React54.createElement(ControlLabel, null, (0, import_i18n29.__)("Z-index", "elementor"))), /* @__PURE__ */ React54.createElement(import_ui45.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React54.createElement(import_editor_controls28.NumberControl, null))));
2977
3258
  };
2978
3259
 
2979
3260
  // src/components/style-sections/position-section/position-section.tsx
@@ -2986,7 +3267,7 @@ var PositionSection = () => {
2986
3267
  "inset-inline-end"
2987
3268
  ]);
2988
3269
  const [dimensionsValuesFromHistory, updateDimensionsHistory, clearDimensionsHistory] = usePersistDimensions();
2989
- const isCssIdFeatureActive = (0, import_editor_v1_adapters8.isExperimentActive)("e_v_3_30");
3270
+ const isCssIdFeatureActive = (0, import_editor_v1_adapters9.isExperimentActive)("e_v_3_30");
2990
3271
  const onPositionChange = (newPosition, previousPosition) => {
2991
3272
  if (newPosition === "static") {
2992
3273
  if (dimensionsValues) {
@@ -3006,7 +3287,7 @@ var PositionSection = () => {
3006
3287
  }
3007
3288
  };
3008
3289
  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)));
3290
+ return /* @__PURE__ */ React55.createElement(SectionContent, null, /* @__PURE__ */ React55.createElement(PositionField, { onChange: onPositionChange }), isNotStatic ? /* @__PURE__ */ React55.createElement(React55.Fragment, null, /* @__PURE__ */ React55.createElement(DimensionsField, null), /* @__PURE__ */ React55.createElement(ZIndexField, null)) : null, isCssIdFeatureActive && /* @__PURE__ */ React55.createElement(React55.Fragment, null, /* @__PURE__ */ React55.createElement(PanelDivider, null), /* @__PURE__ */ React55.createElement(OffsetField, null)));
3010
3291
  };
3011
3292
  var usePersistDimensions = () => {
3012
3293
  const { id: styleDefID, meta } = useStyle();
@@ -3016,101 +3297,101 @@ var usePersistDimensions = () => {
3016
3297
  };
3017
3298
 
3018
3299
  // src/components/style-sections/size-section/size-section.tsx
3019
- var React55 = __toESM(require("react"));
3300
+ var React60 = __toESM(require("react"));
3020
3301
  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");
3302
+ var import_editor_v1_adapters10 = require("@elementor/editor-v1-adapters");
3303
+ var import_ui50 = require("@elementor/ui");
3304
+ var import_i18n34 = require("@wordpress/i18n");
3024
3305
 
3025
3306
  // src/components/collapsible-content.tsx
3026
- var React51 = __toESM(require("react"));
3307
+ var React56 = __toESM(require("react"));
3027
3308
  var import_react25 = require("react");
3028
- var import_ui41 = require("@elementor/ui");
3029
- var import_i18n27 = require("@wordpress/i18n");
3309
+ var import_ui46 = require("@elementor/ui");
3310
+ var import_i18n30 = require("@wordpress/i18n");
3030
3311
  var CollapsibleContent = ({ children, defaultOpen = false }) => {
3031
3312
  const [open, setOpen] = (0, import_react25.useState)(defaultOpen);
3032
3313
  const handleToggle = () => {
3033
3314
  setOpen((prevOpen) => !prevOpen);
3034
3315
  };
3035
- return /* @__PURE__ */ React51.createElement(import_ui41.Stack, null, /* @__PURE__ */ React51.createElement(
3036
- import_ui41.Button,
3316
+ return /* @__PURE__ */ React56.createElement(import_ui46.Stack, null, /* @__PURE__ */ React56.createElement(
3317
+ import_ui46.Button,
3037
3318
  {
3038
3319
  fullWidth: true,
3039
3320
  size: "small",
3040
3321
  color: "secondary",
3041
3322
  variant: "outlined",
3042
3323
  onClick: handleToggle,
3043
- endIcon: /* @__PURE__ */ React51.createElement(CollapseIcon, { open }),
3324
+ endIcon: /* @__PURE__ */ React56.createElement(CollapseIcon, { open }),
3044
3325
  sx: { my: 0.5 }
3045
3326
  },
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));
3327
+ open ? (0, import_i18n30.__)("Show less", "elementor") : (0, import_i18n30.__)("Show more", "elementor")
3328
+ ), /* @__PURE__ */ React56.createElement(import_ui46.Collapse, { in: open, timeout: "auto", unmountOnExit: true }, children));
3048
3329
  };
3049
3330
 
3050
3331
  // src/components/style-sections/size-section/object-fit-field.tsx
3051
- var React52 = __toESM(require("react"));
3332
+ var React57 = __toESM(require("react"));
3052
3333
  var import_editor_controls29 = require("@elementor/editor-controls");
3053
- var import_ui42 = require("@elementor/ui");
3054
- var import_i18n28 = require("@wordpress/i18n");
3334
+ var import_ui47 = require("@elementor/ui");
3335
+ var import_i18n31 = require("@wordpress/i18n");
3055
3336
  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" }
3337
+ { label: (0, import_i18n31.__)("Fill", "elementor"), value: "fill" },
3338
+ { label: (0, import_i18n31.__)("Cover", "elementor"), value: "cover" },
3339
+ { label: (0, import_i18n31.__)("Contain", "elementor"), value: "contain" },
3340
+ { label: (0, import_i18n31.__)("None", "elementor"), value: "none" },
3341
+ { label: (0, import_i18n31.__)("Scale down", "elementor"), value: "scale-down" }
3061
3342
  ];
3062
3343
  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 }))));
3344
+ return /* @__PURE__ */ React57.createElement(StylesField, { bind: "object-fit" }, /* @__PURE__ */ React57.createElement(import_ui47.Grid, { container: true, gap: 2, alignItems: "center", flexWrap: "nowrap" }, /* @__PURE__ */ React57.createElement(import_ui47.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React57.createElement(ControlLabel, null, (0, import_i18n31.__)("Object fit", "elementor"))), /* @__PURE__ */ React57.createElement(import_ui47.Grid, { item: true, xs: 6, sx: { overflow: "hidden" } }, /* @__PURE__ */ React57.createElement(import_editor_controls29.SelectControl, { options: positionOptions2, onChange }))));
3064
3345
  };
3065
3346
 
3066
3347
  // src/components/style-sections/size-section/object-position-field.tsx
3067
- var React53 = __toESM(require("react"));
3348
+ var React58 = __toESM(require("react"));
3068
3349
  var import_editor_controls30 = require("@elementor/editor-controls");
3069
- var import_ui43 = require("@elementor/ui");
3070
- var import_i18n29 = require("@wordpress/i18n");
3350
+ var import_ui48 = require("@elementor/ui");
3351
+ var import_i18n32 = require("@wordpress/i18n");
3071
3352
  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" }
3353
+ { label: (0, import_i18n32.__)("Center center", "elementor"), value: "center center" },
3354
+ { label: (0, import_i18n32.__)("Center left", "elementor"), value: "center left" },
3355
+ { label: (0, import_i18n32.__)("Center right", "elementor"), value: "center right" },
3356
+ { label: (0, import_i18n32.__)("Top center", "elementor"), value: "top center" },
3357
+ { label: (0, import_i18n32.__)("Top left", "elementor"), value: "top left" },
3358
+ { label: (0, import_i18n32.__)("Top right", "elementor"), value: "top right" },
3359
+ { label: (0, import_i18n32.__)("Bottom center", "elementor"), value: "bottom center" },
3360
+ { label: (0, import_i18n32.__)("Bottom left", "elementor"), value: "bottom left" },
3361
+ { label: (0, import_i18n32.__)("Bottom right", "elementor"), value: "bottom right" }
3081
3362
  ];
3082
3363
  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 }))));
3364
+ return /* @__PURE__ */ React58.createElement(StylesField, { bind: "object-position" }, /* @__PURE__ */ React58.createElement(import_ui48.Grid, { container: true, gap: 2, alignItems: "center", flexWrap: "nowrap" }, /* @__PURE__ */ React58.createElement(import_ui48.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React58.createElement(ControlLabel, null, (0, import_i18n32.__)("Object position", "elementor"))), /* @__PURE__ */ React58.createElement(import_ui48.Grid, { item: true, xs: 6, sx: { overflow: "hidden" } }, /* @__PURE__ */ React58.createElement(import_editor_controls30.SelectControl, { options: positionOptions3, onChange }))));
3084
3365
  };
3085
3366
 
3086
3367
  // src/components/style-sections/size-section/overflow-field.tsx
3087
- var React54 = __toESM(require("react"));
3368
+ var React59 = __toESM(require("react"));
3088
3369
  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");
3370
+ var import_icons19 = require("@elementor/icons");
3371
+ var import_ui49 = require("@elementor/ui");
3372
+ var import_i18n33 = require("@wordpress/i18n");
3092
3373
  var options6 = [
3093
3374
  {
3094
3375
  value: "visible",
3095
- label: (0, import_i18n30.__)("Visible", "elementor"),
3096
- renderContent: ({ size }) => /* @__PURE__ */ React54.createElement(import_icons17.EyeIcon, { fontSize: size }),
3376
+ label: (0, import_i18n33.__)("Visible", "elementor"),
3377
+ renderContent: ({ size }) => /* @__PURE__ */ React59.createElement(import_icons19.EyeIcon, { fontSize: size }),
3097
3378
  showTooltip: true
3098
3379
  },
3099
3380
  {
3100
3381
  value: "hidden",
3101
- label: (0, import_i18n30.__)("Hidden", "elementor"),
3102
- renderContent: ({ size }) => /* @__PURE__ */ React54.createElement(import_icons17.EyeOffIcon, { fontSize: size }),
3382
+ label: (0, import_i18n33.__)("Hidden", "elementor"),
3383
+ renderContent: ({ size }) => /* @__PURE__ */ React59.createElement(import_icons19.EyeOffIcon, { fontSize: size }),
3103
3384
  showTooltip: true
3104
3385
  },
3105
3386
  {
3106
3387
  value: "auto",
3107
- label: (0, import_i18n30.__)("Auto", "elementor"),
3108
- renderContent: ({ size }) => /* @__PURE__ */ React54.createElement(import_icons17.LetterAIcon, { fontSize: size }),
3388
+ label: (0, import_i18n33.__)("Auto", "elementor"),
3389
+ renderContent: ({ size }) => /* @__PURE__ */ React59.createElement(import_icons19.LetterAIcon, { fontSize: size }),
3109
3390
  showTooltip: true
3110
3391
  }
3111
3392
  ];
3112
3393
  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 }))));
3394
+ return /* @__PURE__ */ React59.createElement(StylesField, { bind: "overflow" }, /* @__PURE__ */ React59.createElement(import_ui49.Grid, { container: true, gap: 2, alignItems: "center", flexWrap: "nowrap" }, /* @__PURE__ */ React59.createElement(import_ui49.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React59.createElement(ControlLabel, null, (0, import_i18n33.__)("Overflow", "elementor"))), /* @__PURE__ */ React59.createElement(import_ui49.Grid, { item: true, xs: 6, sx: { display: "flex", justifyContent: "flex-end" } }, /* @__PURE__ */ React59.createElement(import_editor_controls31.ToggleControl, { options: options6 }))));
3114
3395
  };
3115
3396
 
3116
3397
  // src/components/style-sections/size-section/size-section.tsx
@@ -3125,78 +3406,78 @@ var SizeSection = () => {
3125
3406
  });
3126
3407
  }
3127
3408
  };
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(
3409
+ const isVersion330Active = (0, import_editor_v1_adapters10.isExperimentActive)("e_v_3_30");
3410
+ return /* @__PURE__ */ React60.createElement(SectionContent, null, /* @__PURE__ */ React60.createElement(import_ui50.Grid, { container: true, gap: 2, flexWrap: "nowrap" }, /* @__PURE__ */ React60.createElement(import_ui50.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React60.createElement(SizeField, { bind: "width", label: (0, import_i18n34.__)("Width", "elementor"), extendedValues: ["auto"] })), /* @__PURE__ */ React60.createElement(import_ui50.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React60.createElement(SizeField, { bind: "height", label: (0, import_i18n34.__)("Height", "elementor"), extendedValues: ["auto"] }))), /* @__PURE__ */ React60.createElement(import_ui50.Grid, { container: true, gap: 2, flexWrap: "nowrap" }, /* @__PURE__ */ React60.createElement(import_ui50.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React60.createElement(
3130
3411
  SizeField,
3131
3412
  {
3132
3413
  bind: "min-width",
3133
- label: (0, import_i18n31.__)("Min width", "elementor"),
3414
+ label: (0, import_i18n34.__)("Min width", "elementor"),
3134
3415
  extendedValues: ["auto"]
3135
3416
  }
3136
- )), /* @__PURE__ */ React55.createElement(import_ui45.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React55.createElement(
3417
+ )), /* @__PURE__ */ React60.createElement(import_ui50.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React60.createElement(
3137
3418
  SizeField,
3138
3419
  {
3139
3420
  bind: "min-height",
3140
- label: (0, import_i18n31.__)("Min height", "elementor"),
3421
+ label: (0, import_i18n34.__)("Min height", "elementor"),
3141
3422
  extendedValues: ["auto"]
3142
3423
  }
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)))));
3424
+ ))), /* @__PURE__ */ React60.createElement(import_ui50.Grid, { container: true, gap: 2, flexWrap: "nowrap" }, /* @__PURE__ */ React60.createElement(import_ui50.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React60.createElement(SizeField, { bind: "max-width", label: (0, import_i18n34.__)("Max width", "elementor") })), /* @__PURE__ */ React60.createElement(import_ui50.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React60.createElement(SizeField, { bind: "max-height", label: (0, import_i18n34.__)("Max height", "elementor") }))), /* @__PURE__ */ React60.createElement(PanelDivider, null), /* @__PURE__ */ React60.createElement(import_ui50.Stack, null, /* @__PURE__ */ React60.createElement(OverflowField, null)), isVersion330Active && /* @__PURE__ */ React60.createElement(CollapsibleContent, null, /* @__PURE__ */ React60.createElement(import_ui50.Stack, { gap: 2 }, /* @__PURE__ */ React60.createElement(StylesField, { bind: "aspect-ratio" }, /* @__PURE__ */ React60.createElement(import_editor_controls32.AspectRatioControl, { label: (0, import_i18n34.__)("Aspect Ratio", "elementor") })), /* @__PURE__ */ React60.createElement(PanelDivider, null), /* @__PURE__ */ React60.createElement(ObjectFitField, { onChange: onFitChange }), isNotFill && /* @__PURE__ */ React60.createElement(import_ui50.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React60.createElement(ObjectPositionField, null)))));
3144
3425
  };
3145
3426
  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 }))));
3427
+ return /* @__PURE__ */ React60.createElement(StylesField, { bind }, /* @__PURE__ */ React60.createElement(import_ui50.Grid, { container: true, gap: 0.75, alignItems: "center" }, /* @__PURE__ */ React60.createElement(import_ui50.Grid, { item: true, xs: 12 }, /* @__PURE__ */ React60.createElement(ControlLabel, null, label)), /* @__PURE__ */ React60.createElement(import_ui50.Grid, { item: true, xs: 12 }, /* @__PURE__ */ React60.createElement(import_editor_controls32.SizeControl, { extendedValues }))));
3147
3428
  };
3148
3429
 
3149
3430
  // src/components/style-sections/spacing-section/spacing-section.tsx
3150
- var React56 = __toESM(require("react"));
3431
+ var React61 = __toESM(require("react"));
3151
3432
  var import_editor_controls33 = require("@elementor/editor-controls");
3152
- var import_i18n32 = require("@wordpress/i18n");
3433
+ var import_i18n35 = require("@wordpress/i18n");
3153
3434
  var SpacingSection = () => {
3154
3435
  const { isSiteRtl } = useDirection();
3155
- return /* @__PURE__ */ React56.createElement(SectionContent, null, /* @__PURE__ */ React56.createElement(StylesField, { bind: "margin" }, /* @__PURE__ */ React56.createElement(
3436
+ return /* @__PURE__ */ React61.createElement(SectionContent, null, /* @__PURE__ */ React61.createElement(StylesField, { bind: "margin" }, /* @__PURE__ */ React61.createElement(
3156
3437
  import_editor_controls33.LinkedDimensionsControl,
3157
3438
  {
3158
- label: (0, import_i18n32.__)("Margin", "elementor"),
3439
+ label: (0, import_i18n35.__)("Margin", "elementor"),
3159
3440
  isSiteRtl,
3160
3441
  extendedValues: ["auto"]
3161
3442
  }
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 })));
3443
+ )), /* @__PURE__ */ React61.createElement(PanelDivider, null), /* @__PURE__ */ React61.createElement(StylesField, { bind: "padding" }, /* @__PURE__ */ React61.createElement(import_editor_controls33.LinkedDimensionsControl, { label: (0, import_i18n35.__)("Padding", "elementor"), isSiteRtl })));
3163
3444
  };
3164
3445
 
3165
3446
  // 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");
3447
+ var React77 = __toESM(require("react"));
3448
+ var import_editor_v1_adapters11 = require("@elementor/editor-v1-adapters");
3168
3449
 
3169
3450
  // src/components/style-sections/typography-section/column-count-field.tsx
3170
- var React57 = __toESM(require("react"));
3451
+ var React62 = __toESM(require("react"));
3171
3452
  var import_editor_controls34 = require("@elementor/editor-controls");
3172
- var import_ui46 = require("@elementor/ui");
3173
- var import_i18n33 = require("@wordpress/i18n");
3453
+ var import_ui51 = require("@elementor/ui");
3454
+ var import_i18n36 = require("@wordpress/i18n");
3174
3455
  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 }))));
3456
+ return /* @__PURE__ */ React62.createElement(StylesField, { bind: "column-count" }, /* @__PURE__ */ React62.createElement(import_ui51.Grid, { container: true, gap: 2, alignItems: "center", flexWrap: "nowrap" }, /* @__PURE__ */ React62.createElement(import_ui51.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React62.createElement(ControlLabel, null, (0, import_i18n36.__)("Columns", "elementor"))), /* @__PURE__ */ React62.createElement(import_ui51.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React62.createElement(import_editor_controls34.NumberControl, { shouldForceInt: true, min: 0, step: 1 }))));
3176
3457
  };
3177
3458
 
3178
3459
  // src/components/style-sections/typography-section/column-gap-field.tsx
3179
- var React58 = __toESM(require("react"));
3460
+ var React63 = __toESM(require("react"));
3180
3461
  var import_editor_controls35 = require("@elementor/editor-controls");
3181
- var import_ui47 = require("@elementor/ui");
3182
- var import_i18n34 = require("@wordpress/i18n");
3462
+ var import_ui52 = require("@elementor/ui");
3463
+ var import_i18n37 = require("@wordpress/i18n");
3183
3464
  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))));
3465
+ return /* @__PURE__ */ React63.createElement(StylesField, { bind: "column-gap" }, /* @__PURE__ */ React63.createElement(import_ui52.Grid, { container: true, gap: 2, alignItems: "center", flexWrap: "nowrap" }, /* @__PURE__ */ React63.createElement(import_ui52.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React63.createElement(ControlLabel, null, (0, import_i18n37.__)("Column gap", "elementor"))), /* @__PURE__ */ React63.createElement(import_ui52.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React63.createElement(import_editor_controls35.SizeControl, null))));
3185
3466
  };
3186
3467
 
3187
3468
  // src/components/style-sections/typography-section/font-family-field.tsx
3188
- var React59 = __toESM(require("react"));
3469
+ var React64 = __toESM(require("react"));
3189
3470
  var import_editor_controls36 = require("@elementor/editor-controls");
3190
- var import_ui48 = require("@elementor/ui");
3191
- var import_i18n36 = require("@wordpress/i18n");
3471
+ var import_ui53 = require("@elementor/ui");
3472
+ var import_i18n39 = require("@wordpress/i18n");
3192
3473
 
3193
3474
  // src/components/style-sections/typography-section/hooks/use-font-families.ts
3194
3475
  var import_react26 = require("react");
3195
- var import_i18n35 = require("@wordpress/i18n");
3476
+ var import_i18n38 = require("@wordpress/i18n");
3196
3477
  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")
3478
+ system: (0, import_i18n38.__)("System", "elementor"),
3479
+ custom: (0, import_i18n38.__)("Custom Fonts", "elementor"),
3480
+ googlefonts: (0, import_i18n38.__)("Google Fonts", "elementor")
3200
3481
  };
3201
3482
  var getFontFamilies = () => {
3202
3483
  const { controls } = getElementorConfig();
@@ -3233,188 +3514,188 @@ var FontFamilyField = () => {
3233
3514
  if (fontFamilies.length === 0) {
3234
3515
  return null;
3235
3516
  }
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 }))));
3517
+ return /* @__PURE__ */ React64.createElement(StylesField, { bind: "font-family" }, /* @__PURE__ */ React64.createElement(import_ui53.Grid, { container: true, gap: 2, alignItems: "center", flexWrap: "nowrap" }, /* @__PURE__ */ React64.createElement(import_ui53.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React64.createElement(ControlLabel, null, (0, import_i18n39.__)("Font family", "elementor"))), /* @__PURE__ */ React64.createElement(import_ui53.Grid, { item: true, xs: 6, sx: { minWidth: 0 } }, /* @__PURE__ */ React64.createElement(import_editor_controls36.FontFamilyControl, { fontFamilies }))));
3237
3518
  };
3238
3519
 
3239
3520
  // src/components/style-sections/typography-section/font-size-field.tsx
3240
- var React60 = __toESM(require("react"));
3521
+ var React65 = __toESM(require("react"));
3241
3522
  var import_editor_controls37 = require("@elementor/editor-controls");
3242
- var import_ui49 = require("@elementor/ui");
3243
- var import_i18n37 = require("@wordpress/i18n");
3523
+ var import_ui54 = require("@elementor/ui");
3524
+ var import_i18n40 = require("@wordpress/i18n");
3244
3525
  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))));
3526
+ return /* @__PURE__ */ React65.createElement(StylesField, { bind: "font-size" }, /* @__PURE__ */ React65.createElement(import_ui54.Grid, { container: true, gap: 2, alignItems: "center", flexWrap: "nowrap" }, /* @__PURE__ */ React65.createElement(import_ui54.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React65.createElement(ControlLabel, null, (0, import_i18n40.__)("Font size", "elementor"))), /* @__PURE__ */ React65.createElement(import_ui54.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React65.createElement(import_editor_controls37.SizeControl, null))));
3246
3527
  };
3247
3528
 
3248
3529
  // src/components/style-sections/typography-section/font-style-field.tsx
3249
- var React61 = __toESM(require("react"));
3530
+ var React66 = __toESM(require("react"));
3250
3531
  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");
3532
+ var import_icons20 = require("@elementor/icons");
3533
+ var import_ui55 = require("@elementor/ui");
3534
+ var import_i18n41 = require("@wordpress/i18n");
3254
3535
  var options7 = [
3255
3536
  {
3256
3537
  value: "normal",
3257
- label: (0, import_i18n38.__)("Normal", "elementor"),
3258
- renderContent: ({ size }) => /* @__PURE__ */ React61.createElement(import_icons18.MinusIcon, { fontSize: size }),
3538
+ label: (0, import_i18n41.__)("Normal", "elementor"),
3539
+ renderContent: ({ size }) => /* @__PURE__ */ React66.createElement(import_icons20.MinusIcon, { fontSize: size }),
3259
3540
  showTooltip: true
3260
3541
  },
3261
3542
  {
3262
3543
  value: "italic",
3263
- label: (0, import_i18n38.__)("Italic", "elementor"),
3264
- renderContent: ({ size }) => /* @__PURE__ */ React61.createElement(import_icons18.ItalicIcon, { fontSize: size }),
3544
+ label: (0, import_i18n41.__)("Italic", "elementor"),
3545
+ renderContent: ({ size }) => /* @__PURE__ */ React66.createElement(import_icons20.ItalicIcon, { fontSize: size }),
3265
3546
  showTooltip: true
3266
3547
  }
3267
3548
  ];
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 }))));
3549
+ var FontStyleField = () => /* @__PURE__ */ React66.createElement(StylesField, { bind: "font-style" }, /* @__PURE__ */ React66.createElement(import_ui55.Grid, { container: true, gap: 2, alignItems: "center", flexWrap: "nowrap" }, /* @__PURE__ */ React66.createElement(import_ui55.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React66.createElement(import_editor_controls38.ControlFormLabel, null, (0, import_i18n41.__)("Font style", "elementor"))), /* @__PURE__ */ React66.createElement(import_ui55.Grid, { item: true, xs: 6, display: "flex", justifyContent: "end" }, /* @__PURE__ */ React66.createElement(import_editor_controls38.ToggleControl, { options: options7 }))));
3269
3550
 
3270
3551
  // src/components/style-sections/typography-section/font-weight-field.tsx
3271
- var React62 = __toESM(require("react"));
3552
+ var React67 = __toESM(require("react"));
3272
3553
  var import_editor_controls39 = require("@elementor/editor-controls");
3273
- var import_ui51 = require("@elementor/ui");
3274
- var import_i18n39 = require("@wordpress/i18n");
3554
+ var import_ui56 = require("@elementor/ui");
3555
+ var import_i18n42 = require("@wordpress/i18n");
3275
3556
  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") }
3557
+ { value: "100", label: (0, import_i18n42.__)("100 - Thin", "elementor") },
3558
+ { value: "200", label: (0, import_i18n42.__)("200 - Extra light", "elementor") },
3559
+ { value: "300", label: (0, import_i18n42.__)("300 - Light", "elementor") },
3560
+ { value: "400", label: (0, import_i18n42.__)("400 - Normal", "elementor") },
3561
+ { value: "500", label: (0, import_i18n42.__)("500 - Medium", "elementor") },
3562
+ { value: "600", label: (0, import_i18n42.__)("600 - Semi bold", "elementor") },
3563
+ { value: "700", label: (0, import_i18n42.__)("700 - Bold", "elementor") },
3564
+ { value: "800", label: (0, import_i18n42.__)("800 - Extra bold", "elementor") },
3565
+ { value: "900", label: (0, import_i18n42.__)("900 - Black", "elementor") }
3285
3566
  ];
3286
3567
  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 }))));
3568
+ return /* @__PURE__ */ React67.createElement(StylesField, { bind: "font-weight" }, /* @__PURE__ */ React67.createElement(import_ui56.Grid, { container: true, gap: 2, alignItems: "center", flexWrap: "nowrap" }, /* @__PURE__ */ React67.createElement(import_ui56.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React67.createElement(ControlLabel, null, (0, import_i18n42.__)("Font weight", "elementor"))), /* @__PURE__ */ React67.createElement(import_ui56.Grid, { item: true, xs: 6, sx: { overflow: "hidden" } }, /* @__PURE__ */ React67.createElement(import_editor_controls39.SelectControl, { options: fontWeightOptions }))));
3288
3569
  };
3289
3570
 
3290
3571
  // src/components/style-sections/typography-section/letter-spacing-field.tsx
3291
- var React63 = __toESM(require("react"));
3572
+ var React68 = __toESM(require("react"));
3292
3573
  var import_editor_controls40 = require("@elementor/editor-controls");
3293
- var import_ui52 = require("@elementor/ui");
3294
- var import_i18n40 = require("@wordpress/i18n");
3574
+ var import_ui57 = require("@elementor/ui");
3575
+ var import_i18n43 = require("@wordpress/i18n");
3295
3576
  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))));
3577
+ return /* @__PURE__ */ React68.createElement(StylesField, { bind: "letter-spacing" }, /* @__PURE__ */ React68.createElement(import_ui57.Grid, { container: true, gap: 2, alignItems: "center", flexWrap: "nowrap" }, /* @__PURE__ */ React68.createElement(import_ui57.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React68.createElement(ControlLabel, null, (0, import_i18n43.__)("Letter spacing", "elementor"))), /* @__PURE__ */ React68.createElement(import_ui57.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React68.createElement(import_editor_controls40.SizeControl, null))));
3297
3578
  };
3298
3579
 
3299
3580
  // src/components/style-sections/typography-section/line-height-field.tsx
3300
- var React64 = __toESM(require("react"));
3581
+ var React69 = __toESM(require("react"));
3301
3582
  var import_editor_controls41 = require("@elementor/editor-controls");
3302
- var import_ui53 = require("@elementor/ui");
3303
- var import_i18n41 = require("@wordpress/i18n");
3583
+ var import_ui58 = require("@elementor/ui");
3584
+ var import_i18n44 = require("@wordpress/i18n");
3304
3585
  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))));
3586
+ return /* @__PURE__ */ React69.createElement(StylesField, { bind: "line-height" }, /* @__PURE__ */ React69.createElement(import_ui58.Grid, { container: true, gap: 2, alignItems: "center", flexWrap: "nowrap" }, /* @__PURE__ */ React69.createElement(import_ui58.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React69.createElement(ControlLabel, null, (0, import_i18n44.__)("Line height", "elementor"))), /* @__PURE__ */ React69.createElement(import_ui58.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React69.createElement(import_editor_controls41.SizeControl, null))));
3306
3587
  };
3307
3588
 
3308
3589
  // src/components/style-sections/typography-section/text-alignment-field.tsx
3309
- var React65 = __toESM(require("react"));
3590
+ var React70 = __toESM(require("react"));
3310
3591
  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);
3592
+ var import_icons21 = require("@elementor/icons");
3593
+ var import_ui59 = require("@elementor/ui");
3594
+ var import_i18n45 = require("@wordpress/i18n");
3595
+ var AlignStartIcon = (0, import_ui59.withDirection)(import_icons21.AlignLeftIcon);
3596
+ var AlignEndIcon = (0, import_ui59.withDirection)(import_icons21.AlignRightIcon);
3316
3597
  var options8 = [
3317
3598
  {
3318
3599
  value: "start",
3319
- label: (0, import_i18n42.__)("Start", "elementor"),
3320
- renderContent: ({ size }) => /* @__PURE__ */ React65.createElement(AlignStartIcon, { fontSize: size }),
3600
+ label: (0, import_i18n45.__)("Start", "elementor"),
3601
+ renderContent: ({ size }) => /* @__PURE__ */ React70.createElement(AlignStartIcon, { fontSize: size }),
3321
3602
  showTooltip: true
3322
3603
  },
3323
3604
  {
3324
3605
  value: "center",
3325
- label: (0, import_i18n42.__)("Center", "elementor"),
3326
- renderContent: ({ size }) => /* @__PURE__ */ React65.createElement(import_icons19.AlignCenterIcon, { fontSize: size }),
3606
+ label: (0, import_i18n45.__)("Center", "elementor"),
3607
+ renderContent: ({ size }) => /* @__PURE__ */ React70.createElement(import_icons21.AlignCenterIcon, { fontSize: size }),
3327
3608
  showTooltip: true
3328
3609
  },
3329
3610
  {
3330
3611
  value: "end",
3331
- label: (0, import_i18n42.__)("End", "elementor"),
3332
- renderContent: ({ size }) => /* @__PURE__ */ React65.createElement(AlignEndIcon, { fontSize: size }),
3612
+ label: (0, import_i18n45.__)("End", "elementor"),
3613
+ renderContent: ({ size }) => /* @__PURE__ */ React70.createElement(AlignEndIcon, { fontSize: size }),
3333
3614
  showTooltip: true
3334
3615
  },
3335
3616
  {
3336
3617
  value: "justify",
3337
- label: (0, import_i18n42.__)("Justify", "elementor"),
3338
- renderContent: ({ size }) => /* @__PURE__ */ React65.createElement(import_icons19.AlignJustifiedIcon, { fontSize: size }),
3618
+ label: (0, import_i18n45.__)("Justify", "elementor"),
3619
+ renderContent: ({ size }) => /* @__PURE__ */ React70.createElement(import_icons21.AlignJustifiedIcon, { fontSize: size }),
3339
3620
  showTooltip: true
3340
3621
  }
3341
3622
  ];
3342
3623
  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 }))));
3624
+ return /* @__PURE__ */ React70.createElement(StylesField, { bind: "text-align" }, /* @__PURE__ */ React70.createElement(import_ui59.Grid, { container: true, gap: 2, alignItems: "center", flexWrap: "nowrap" }, /* @__PURE__ */ React70.createElement(import_ui59.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React70.createElement(ControlLabel, null, (0, import_i18n45.__)("Text align", "elementor"))), /* @__PURE__ */ React70.createElement(import_ui59.Grid, { item: true, xs: 6, display: "flex", justifyContent: "end" }, /* @__PURE__ */ React70.createElement(import_editor_controls42.ToggleControl, { options: options8 }))));
3344
3625
  };
3345
3626
 
3346
3627
  // src/components/style-sections/typography-section/text-color-field.tsx
3347
- var React66 = __toESM(require("react"));
3628
+ var React71 = __toESM(require("react"));
3348
3629
  var import_editor_controls43 = require("@elementor/editor-controls");
3349
- var import_ui55 = require("@elementor/ui");
3350
- var import_i18n43 = require("@wordpress/i18n");
3630
+ var import_ui60 = require("@elementor/ui");
3631
+ var import_i18n46 = require("@wordpress/i18n");
3351
3632
  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))));
3633
+ return /* @__PURE__ */ React71.createElement(StylesField, { bind: "color" }, /* @__PURE__ */ React71.createElement(import_ui60.Grid, { container: true, gap: 2, alignItems: "center", flexWrap: "nowrap" }, /* @__PURE__ */ React71.createElement(import_ui60.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React71.createElement(ControlLabel, null, (0, import_i18n46.__)("Text color", "elementor"))), /* @__PURE__ */ React71.createElement(import_ui60.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React71.createElement(import_editor_controls43.ColorControl, null))));
3353
3634
  };
3354
3635
 
3355
3636
  // src/components/style-sections/typography-section/text-decoration-field.tsx
3356
- var React67 = __toESM(require("react"));
3637
+ var React72 = __toESM(require("react"));
3357
3638
  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");
3639
+ var import_icons22 = require("@elementor/icons");
3640
+ var import_ui61 = require("@elementor/ui");
3641
+ var import_i18n47 = require("@wordpress/i18n");
3361
3642
  var options9 = [
3362
3643
  {
3363
3644
  value: "none",
3364
- label: (0, import_i18n44.__)("None", "elementor"),
3365
- renderContent: ({ size }) => /* @__PURE__ */ React67.createElement(import_icons20.MinusIcon, { fontSize: size }),
3645
+ label: (0, import_i18n47.__)("None", "elementor"),
3646
+ renderContent: ({ size }) => /* @__PURE__ */ React72.createElement(import_icons22.MinusIcon, { fontSize: size }),
3366
3647
  showTooltip: true,
3367
3648
  exclusive: true
3368
3649
  },
3369
3650
  {
3370
3651
  value: "underline",
3371
- label: (0, import_i18n44.__)("Underline", "elementor"),
3372
- renderContent: ({ size }) => /* @__PURE__ */ React67.createElement(import_icons20.UnderlineIcon, { fontSize: size }),
3652
+ label: (0, import_i18n47.__)("Underline", "elementor"),
3653
+ renderContent: ({ size }) => /* @__PURE__ */ React72.createElement(import_icons22.UnderlineIcon, { fontSize: size }),
3373
3654
  showTooltip: true
3374
3655
  },
3375
3656
  {
3376
3657
  value: "line-through",
3377
- label: (0, import_i18n44.__)("Line-through", "elementor"),
3378
- renderContent: ({ size }) => /* @__PURE__ */ React67.createElement(import_icons20.StrikethroughIcon, { fontSize: size }),
3658
+ label: (0, import_i18n47.__)("Line-through", "elementor"),
3659
+ renderContent: ({ size }) => /* @__PURE__ */ React72.createElement(import_icons22.StrikethroughIcon, { fontSize: size }),
3379
3660
  showTooltip: true
3380
3661
  },
3381
3662
  {
3382
3663
  value: "overline",
3383
- label: (0, import_i18n44.__)("Overline", "elementor"),
3384
- renderContent: ({ size }) => /* @__PURE__ */ React67.createElement(import_icons20.OverlineIcon, { fontSize: size }),
3664
+ label: (0, import_i18n47.__)("Overline", "elementor"),
3665
+ renderContent: ({ size }) => /* @__PURE__ */ React72.createElement(import_icons22.OverlineIcon, { fontSize: size }),
3385
3666
  showTooltip: true
3386
3667
  }
3387
3668
  ];
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 }))));
3669
+ var TextDecorationField = () => /* @__PURE__ */ React72.createElement(StylesField, { bind: "text-decoration" }, /* @__PURE__ */ React72.createElement(import_ui61.Grid, { container: true, gap: 2, alignItems: "center", flexWrap: "nowrap" }, /* @__PURE__ */ React72.createElement(import_ui61.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React72.createElement(ControlLabel, null, (0, import_i18n47.__)("Line decoration", "elementor"))), /* @__PURE__ */ React72.createElement(import_ui61.Grid, { item: true, xs: 6, display: "flex", justifyContent: "end" }, /* @__PURE__ */ React72.createElement(import_editor_controls44.ToggleControl, { options: options9, exclusive: false }))));
3389
3670
 
3390
3671
  // src/components/style-sections/typography-section/text-direction-field.tsx
3391
- var React68 = __toESM(require("react"));
3672
+ var React73 = __toESM(require("react"));
3392
3673
  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");
3674
+ var import_icons23 = require("@elementor/icons");
3675
+ var import_ui62 = require("@elementor/ui");
3676
+ var import_i18n48 = require("@wordpress/i18n");
3396
3677
  var options10 = [
3397
3678
  {
3398
3679
  value: "ltr",
3399
- label: (0, import_i18n45.__)("Left to right", "elementor"),
3400
- renderContent: ({ size }) => /* @__PURE__ */ React68.createElement(import_icons21.TextDirectionLtrIcon, { fontSize: size }),
3680
+ label: (0, import_i18n48.__)("Left to right", "elementor"),
3681
+ renderContent: ({ size }) => /* @__PURE__ */ React73.createElement(import_icons23.TextDirectionLtrIcon, { fontSize: size }),
3401
3682
  showTooltip: true
3402
3683
  },
3403
3684
  {
3404
3685
  value: "rtl",
3405
- label: (0, import_i18n45.__)("Right to left", "elementor"),
3406
- renderContent: ({ size }) => /* @__PURE__ */ React68.createElement(import_icons21.TextDirectionRtlIcon, { fontSize: size }),
3686
+ label: (0, import_i18n48.__)("Right to left", "elementor"),
3687
+ renderContent: ({ size }) => /* @__PURE__ */ React73.createElement(import_icons23.TextDirectionRtlIcon, { fontSize: size }),
3407
3688
  showTooltip: true
3408
3689
  }
3409
3690
  ];
3410
3691
  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 }))));
3692
+ return /* @__PURE__ */ React73.createElement(StylesField, { bind: "direction" }, /* @__PURE__ */ React73.createElement(import_ui62.Grid, { container: true, gap: 2, alignItems: "center", flexWrap: "nowrap" }, /* @__PURE__ */ React73.createElement(import_ui62.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React73.createElement(ControlLabel, null, (0, import_i18n48.__)("Direction", "elementor"))), /* @__PURE__ */ React73.createElement(import_ui62.Grid, { item: true, xs: 6, display: "flex", justifyContent: "end" }, /* @__PURE__ */ React73.createElement(import_editor_controls45.ToggleControl, { options: options10 }))));
3412
3693
  };
3413
3694
 
3414
3695
  // src/components/style-sections/typography-section/text-stroke-field.tsx
3415
- var React69 = __toESM(require("react"));
3696
+ var React74 = __toESM(require("react"));
3416
3697
  var import_editor_controls46 = require("@elementor/editor-controls");
3417
- var import_i18n46 = require("@wordpress/i18n");
3698
+ var import_i18n49 = require("@wordpress/i18n");
3418
3699
  var initTextStroke = {
3419
3700
  $$type: "stroke",
3420
3701
  value: {
@@ -3432,6 +3713,7 @@ var initTextStroke = {
3432
3713
  }
3433
3714
  };
3434
3715
  var TextStrokeField = () => {
3716
+ const { canEdit } = useStyle();
3435
3717
  const [textStroke, setTextStroke] = useStylesField("stroke");
3436
3718
  const addTextStroke = () => {
3437
3719
  setTextStroke(initTextStroke);
@@ -3440,67 +3722,68 @@ var TextStrokeField = () => {
3440
3722
  setTextStroke(null);
3441
3723
  };
3442
3724
  const hasTextStroke = Boolean(textStroke);
3443
- return /* @__PURE__ */ React69.createElement(StylesField, { bind: "stroke" }, /* @__PURE__ */ React69.createElement(
3725
+ return /* @__PURE__ */ React74.createElement(StylesField, { bind: "stroke" }, /* @__PURE__ */ React74.createElement(
3444
3726
  AddOrRemoveContent,
3445
3727
  {
3446
- label: (0, import_i18n46.__)("Text stroke", "elementor"),
3728
+ label: (0, import_i18n49.__)("Text stroke", "elementor"),
3447
3729
  isAdded: hasTextStroke,
3448
3730
  onAdd: addTextStroke,
3449
- onRemove: removeTextStroke
3731
+ onRemove: removeTextStroke,
3732
+ disabled: !canEdit
3450
3733
  },
3451
- /* @__PURE__ */ React69.createElement(import_editor_controls46.StrokeControl, null)
3734
+ /* @__PURE__ */ React74.createElement(import_editor_controls46.StrokeControl, null)
3452
3735
  ));
3453
3736
  };
3454
3737
 
3455
3738
  // src/components/style-sections/typography-section/transform-field.tsx
3456
- var React70 = __toESM(require("react"));
3739
+ var React75 = __toESM(require("react"));
3457
3740
  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");
3741
+ var import_icons24 = require("@elementor/icons");
3742
+ var import_ui63 = require("@elementor/ui");
3743
+ var import_i18n50 = require("@wordpress/i18n");
3461
3744
  var options11 = [
3462
3745
  {
3463
3746
  value: "none",
3464
- label: (0, import_i18n47.__)("None", "elementor"),
3465
- renderContent: ({ size }) => /* @__PURE__ */ React70.createElement(import_icons22.MinusIcon, { fontSize: size }),
3747
+ label: (0, import_i18n50.__)("None", "elementor"),
3748
+ renderContent: ({ size }) => /* @__PURE__ */ React75.createElement(import_icons24.MinusIcon, { fontSize: size }),
3466
3749
  showTooltip: true
3467
3750
  },
3468
3751
  {
3469
3752
  value: "capitalize",
3470
- label: (0, import_i18n47.__)("Capitalize", "elementor"),
3471
- renderContent: ({ size }) => /* @__PURE__ */ React70.createElement(import_icons22.LetterCaseIcon, { fontSize: size }),
3753
+ label: (0, import_i18n50.__)("Capitalize", "elementor"),
3754
+ renderContent: ({ size }) => /* @__PURE__ */ React75.createElement(import_icons24.LetterCaseIcon, { fontSize: size }),
3472
3755
  showTooltip: true
3473
3756
  },
3474
3757
  {
3475
3758
  value: "uppercase",
3476
- label: (0, import_i18n47.__)("Uppercase", "elementor"),
3477
- renderContent: ({ size }) => /* @__PURE__ */ React70.createElement(import_icons22.LetterCaseUpperIcon, { fontSize: size }),
3759
+ label: (0, import_i18n50.__)("Uppercase", "elementor"),
3760
+ renderContent: ({ size }) => /* @__PURE__ */ React75.createElement(import_icons24.LetterCaseUpperIcon, { fontSize: size }),
3478
3761
  showTooltip: true
3479
3762
  },
3480
3763
  {
3481
3764
  value: "lowercase",
3482
- label: (0, import_i18n47.__)("Lowercase", "elementor"),
3483
- renderContent: ({ size }) => /* @__PURE__ */ React70.createElement(import_icons22.LetterCaseLowerIcon, { fontSize: size }),
3765
+ label: (0, import_i18n50.__)("Lowercase", "elementor"),
3766
+ renderContent: ({ size }) => /* @__PURE__ */ React75.createElement(import_icons24.LetterCaseLowerIcon, { fontSize: size }),
3484
3767
  showTooltip: true
3485
3768
  }
3486
3769
  ];
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 }))));
3770
+ var TransformField = () => /* @__PURE__ */ React75.createElement(StylesField, { bind: "text-transform" }, /* @__PURE__ */ React75.createElement(import_ui63.Grid, { container: true, gap: 2, alignItems: "center", flexWrap: "nowrap" }, /* @__PURE__ */ React75.createElement(import_ui63.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React75.createElement(ControlLabel, null, (0, import_i18n50.__)("Text transform", "elementor"))), /* @__PURE__ */ React75.createElement(import_ui63.Grid, { item: true, xs: 6, display: "flex", justifyContent: "end" }, /* @__PURE__ */ React75.createElement(import_editor_controls47.ToggleControl, { options: options11 }))));
3488
3771
 
3489
3772
  // src/components/style-sections/typography-section/word-spacing-field.tsx
3490
- var React71 = __toESM(require("react"));
3773
+ var React76 = __toESM(require("react"));
3491
3774
  var import_editor_controls48 = require("@elementor/editor-controls");
3492
- var import_ui59 = require("@elementor/ui");
3493
- var import_i18n48 = require("@wordpress/i18n");
3775
+ var import_ui64 = require("@elementor/ui");
3776
+ var import_i18n51 = require("@wordpress/i18n");
3494
3777
  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))));
3778
+ return /* @__PURE__ */ React76.createElement(StylesField, { bind: "word-spacing" }, /* @__PURE__ */ React76.createElement(import_ui64.Grid, { container: true, gap: 2, alignItems: "center", flexWrap: "nowrap" }, /* @__PURE__ */ React76.createElement(import_ui64.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React76.createElement(ControlLabel, null, (0, import_i18n51.__)("Word spacing", "elementor"))), /* @__PURE__ */ React76.createElement(import_ui64.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React76.createElement(import_editor_controls48.SizeControl, null))));
3496
3779
  };
3497
3780
 
3498
3781
  // src/components/style-sections/typography-section/typography-section.tsx
3499
3782
  var TypographySection = () => {
3500
3783
  const [columnCount] = useStylesField("column-count");
3501
- const isVersion330Active = (0, import_editor_v1_adapters10.isExperimentActive)("e_v_3_30");
3784
+ const isVersion330Active = (0, import_editor_v1_adapters11.isExperimentActive)("e_v_3_30");
3502
3785
  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))));
3786
+ return /* @__PURE__ */ React77.createElement(SectionContent, null, /* @__PURE__ */ React77.createElement(FontFamilyField, null), /* @__PURE__ */ React77.createElement(FontWeightField, null), /* @__PURE__ */ React77.createElement(FontSizeField, null), /* @__PURE__ */ React77.createElement(PanelDivider, null), /* @__PURE__ */ React77.createElement(TextAlignmentField, null), /* @__PURE__ */ React77.createElement(TextColorField, null), /* @__PURE__ */ React77.createElement(CollapsibleContent, null, /* @__PURE__ */ React77.createElement(SectionContent, { sx: { pt: 2 } }, /* @__PURE__ */ React77.createElement(LineHeightField, null), /* @__PURE__ */ React77.createElement(LetterSpacingField, null), /* @__PURE__ */ React77.createElement(WordSpacingField, null), isVersion330Active && /* @__PURE__ */ React77.createElement(React77.Fragment, null, /* @__PURE__ */ React77.createElement(ColumnCountField, null), hasMultiColumns && /* @__PURE__ */ React77.createElement(ColumnGapField, null)), /* @__PURE__ */ React77.createElement(PanelDivider, null), /* @__PURE__ */ React77.createElement(TextDecorationField, null), /* @__PURE__ */ React77.createElement(TransformField, null), /* @__PURE__ */ React77.createElement(TextDirectionField, null), /* @__PURE__ */ React77.createElement(FontStyleField, null), /* @__PURE__ */ React77.createElement(TextStrokeField, null))));
3504
3787
  };
3505
3788
 
3506
3789
  // src/components/style-tab.tsx
@@ -3516,15 +3799,15 @@ var PanelSection = ({ section }) => {
3516
3799
  const { component, name, title } = section;
3517
3800
  const tabDefaults = useDefaultPanelSettings();
3518
3801
  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));
3802
+ const isExpanded = (0, import_editor_v1_adapters12.isExperimentActive)(EXPERIMENTAL_FEATURES.V_3_30) ? tabDefaults.defaultSectionsExpanded.style?.includes(name) : false;
3803
+ return /* @__PURE__ */ React78.createElement(Section, { title, defaultExpanded: isExpanded }, /* @__PURE__ */ React78.createElement(SectionComponent, null));
3521
3804
  };
3522
3805
  var StyleTab = () => {
3523
3806
  const currentClassesProp = useCurrentClassesProp();
3524
3807
  const [activeStyleDefId, setActiveStyleDefId] = useActiveStyleDefId(currentClassesProp);
3525
3808
  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(
3809
+ const breakpoint = (0, import_editor_responsive3.useActiveBreakpoint)();
3810
+ return /* @__PURE__ */ React78.createElement(ClassesPropProvider, { prop: currentClassesProp }, /* @__PURE__ */ React78.createElement(
3528
3811
  StyleProvider,
3529
3812
  {
3530
3813
  meta: { breakpoint, state: activeStyleState },
@@ -3535,76 +3818,76 @@ var StyleTab = () => {
3535
3818
  },
3536
3819
  setMetaState: setActiveStyleState
3537
3820
  },
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(
3821
+ /* @__PURE__ */ React78.createElement(import_session4.SessionStorageProvider, { prefix: activeStyleDefId ?? "" }, /* @__PURE__ */ React78.createElement(StyleInheritanceProvider, null, /* @__PURE__ */ React78.createElement(ClassesHeader, null, /* @__PURE__ */ React78.createElement(CssClassSelector, null), /* @__PURE__ */ React78.createElement(import_ui65.Divider, null)), /* @__PURE__ */ React78.createElement(SectionsList, null, /* @__PURE__ */ React78.createElement(
3539
3822
  PanelSection,
3540
3823
  {
3541
3824
  section: {
3542
3825
  component: LayoutSection,
3543
3826
  name: "Layout",
3544
- title: (0, import_i18n49.__)("Layout", "elementor")
3827
+ title: (0, import_i18n52.__)("Layout", "elementor")
3545
3828
  }
3546
3829
  }
3547
- ), /* @__PURE__ */ React73.createElement(
3830
+ ), /* @__PURE__ */ React78.createElement(
3548
3831
  PanelSection,
3549
3832
  {
3550
3833
  section: {
3551
3834
  component: SpacingSection,
3552
3835
  name: "Spacing",
3553
- title: (0, import_i18n49.__)("Spacing", "elementor")
3836
+ title: (0, import_i18n52.__)("Spacing", "elementor")
3554
3837
  }
3555
3838
  }
3556
- ), /* @__PURE__ */ React73.createElement(
3839
+ ), /* @__PURE__ */ React78.createElement(
3557
3840
  PanelSection,
3558
3841
  {
3559
3842
  section: {
3560
3843
  component: SizeSection,
3561
3844
  name: "Size",
3562
- title: (0, import_i18n49.__)("Size", "elementor")
3845
+ title: (0, import_i18n52.__)("Size", "elementor")
3563
3846
  }
3564
3847
  }
3565
- ), /* @__PURE__ */ React73.createElement(
3848
+ ), /* @__PURE__ */ React78.createElement(
3566
3849
  PanelSection,
3567
3850
  {
3568
3851
  section: {
3569
3852
  component: PositionSection,
3570
3853
  name: "Position",
3571
- title: (0, import_i18n49.__)("Position", "elementor")
3854
+ title: (0, import_i18n52.__)("Position", "elementor")
3572
3855
  }
3573
3856
  }
3574
- ), /* @__PURE__ */ React73.createElement(
3857
+ ), /* @__PURE__ */ React78.createElement(
3575
3858
  PanelSection,
3576
3859
  {
3577
3860
  section: {
3578
3861
  component: TypographySection,
3579
3862
  name: "Typography",
3580
- title: (0, import_i18n49.__)("Typography", "elementor")
3863
+ title: (0, import_i18n52.__)("Typography", "elementor")
3581
3864
  }
3582
3865
  }
3583
- ), /* @__PURE__ */ React73.createElement(
3866
+ ), /* @__PURE__ */ React78.createElement(
3584
3867
  PanelSection,
3585
3868
  {
3586
3869
  section: {
3587
3870
  component: BackgroundSection,
3588
3871
  name: "Background",
3589
- title: (0, import_i18n49.__)("Background", "elementor")
3872
+ title: (0, import_i18n52.__)("Background", "elementor")
3590
3873
  }
3591
3874
  }
3592
- ), /* @__PURE__ */ React73.createElement(
3875
+ ), /* @__PURE__ */ React78.createElement(
3593
3876
  PanelSection,
3594
3877
  {
3595
3878
  section: {
3596
3879
  component: BorderSection,
3597
3880
  name: "Border",
3598
- title: (0, import_i18n49.__)("Border", "elementor")
3881
+ title: (0, import_i18n52.__)("Border", "elementor")
3599
3882
  }
3600
3883
  }
3601
- ), /* @__PURE__ */ React73.createElement(
3884
+ ), /* @__PURE__ */ React78.createElement(
3602
3885
  PanelSection,
3603
3886
  {
3604
3887
  section: {
3605
3888
  component: EffectsSection,
3606
3889
  name: "Effects",
3607
- title: (0, import_i18n49.__)("Effects", "elementor")
3890
+ title: (0, import_i18n52.__)("Effects", "elementor")
3608
3891
  }
3609
3892
  }
3610
3893
  ))))
@@ -3612,7 +3895,7 @@ var StyleTab = () => {
3612
3895
  };
3613
3896
  function ClassesHeader({ children }) {
3614
3897
  const scrollDirection = useScrollDirection();
3615
- return /* @__PURE__ */ React73.createElement(import_ui60.Stack, { sx: { ...stickyHeaderStyles, top: scrollDirection === "up" ? TABS_HEADER_HEIGHT : 0 } }, children);
3898
+ return /* @__PURE__ */ React78.createElement(import_ui65.Stack, { sx: { ...stickyHeaderStyles, top: scrollDirection === "up" ? TABS_HEADER_HEIGHT : 0 } }, children);
3616
3899
  }
3617
3900
  function useCurrentClassesProp() {
3618
3901
  const { elementType } = useElement();
@@ -3631,16 +3914,16 @@ var EditingPanelTabs = () => {
3631
3914
  return (
3632
3915
  // When switching between elements, the local states should be reset. We are using key to rerender the tabs.
3633
3916
  // 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))
3917
+ /* @__PURE__ */ React79.createElement(import_react28.Fragment, { key: element.id }, /* @__PURE__ */ React79.createElement(PanelTabContent, null))
3635
3918
  );
3636
3919
  };
3637
3920
  var PanelTabContent = () => {
3638
3921
  const editorDefaults = useDefaultPanelSettings();
3639
- const defaultComponentTab = (0, import_editor_v1_adapters12.isExperimentActive)(EXPERIMENTAL_FEATURES.V_3_30) ? editorDefaults.defaultTab : "settings";
3922
+ const defaultComponentTab = (0, import_editor_v1_adapters13.isExperimentActive)(EXPERIMENTAL_FEATURES.V_3_30) ? editorDefaults.defaultTab : "settings";
3640
3923
  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,
3924
+ const { getTabProps, getTabPanelProps, getTabsProps } = (0, import_ui66.useTabs)(currentTab);
3925
+ return /* @__PURE__ */ React79.createElement(ScrollProvider, null, /* @__PURE__ */ React79.createElement(import_ui66.Stack, { direction: "column", sx: { width: "100%" } }, /* @__PURE__ */ React79.createElement(import_ui66.Stack, { sx: { ...stickyHeaderStyles, top: 0 } }, /* @__PURE__ */ React79.createElement(
3926
+ import_ui66.Tabs,
3644
3927
  {
3645
3928
  variant: "fullWidth",
3646
3929
  size: "small",
@@ -3651,9 +3934,9 @@ var PanelTabContent = () => {
3651
3934
  setCurrentTab(newValue);
3652
3935
  }
3653
3936
  },
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))));
3937
+ /* @__PURE__ */ React79.createElement(import_ui66.Tab, { label: (0, import_i18n53.__)("General", "elementor"), ...getTabProps("settings") }),
3938
+ /* @__PURE__ */ React79.createElement(import_ui66.Tab, { label: (0, import_i18n53.__)("Style", "elementor"), ...getTabProps("style") })
3939
+ ), /* @__PURE__ */ React79.createElement(import_ui66.Divider, null)), /* @__PURE__ */ React79.createElement(import_ui66.TabPanel, { ...getTabPanelProps("settings"), disablePadding: true }, /* @__PURE__ */ React79.createElement(SettingsTab, null)), /* @__PURE__ */ React79.createElement(import_ui66.TabPanel, { ...getTabPanelProps("style"), disablePadding: true }, /* @__PURE__ */ React79.createElement(StyleTab, null))));
3657
3940
  };
3658
3941
 
3659
3942
  // src/components/editing-panel.tsx
@@ -3665,8 +3948,8 @@ var EditingPanel = () => {
3665
3948
  if (!element || !elementType) {
3666
3949
  return null;
3667
3950
  }
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)))))))));
3951
+ const panelTitle = (0, import_i18n54.__)("Edit %s", "elementor").replace("%s", elementType.title);
3952
+ return /* @__PURE__ */ React80.createElement(import_ui67.ErrorBoundary, { fallback: /* @__PURE__ */ React80.createElement(EditorPanelErrorFallback, null) }, /* @__PURE__ */ React80.createElement(import_session5.SessionStorageProvider, { prefix: "elementor" }, /* @__PURE__ */ React80.createElement(import_editor_ui4.ThemeProvider, null, /* @__PURE__ */ React80.createElement(import_editor_panels.Panel, null, /* @__PURE__ */ React80.createElement(import_editor_panels.PanelHeader, null, /* @__PURE__ */ React80.createElement(import_editor_panels.PanelHeaderTitle, null, panelTitle), /* @__PURE__ */ React80.createElement(import_icons25.AtomIcon, { fontSize: "small", sx: { color: "text.tertiary" } })), /* @__PURE__ */ React80.createElement(import_editor_panels.PanelBody, null, /* @__PURE__ */ React80.createElement(import_editor_controls49.ControlActionsProvider, { items: menuItems }, /* @__PURE__ */ React80.createElement(import_editor_controls49.ControlReplacementsProvider, { replacements: controlReplacements }, /* @__PURE__ */ React80.createElement(ElementProvider, { element, elementType }, /* @__PURE__ */ React80.createElement(EditingPanelTabs, null)))))))));
3670
3953
  };
3671
3954
 
3672
3955
  // src/panel.ts
@@ -3679,11 +3962,11 @@ var { panel, usePanelActions, usePanelStatus } = (0, import_editor_panels2.__cre
3679
3962
  var import_editor = require("@elementor/editor");
3680
3963
  var import_editor_current_user = require("@elementor/editor-current-user");
3681
3964
  var import_editor_panels3 = require("@elementor/editor-panels");
3682
- var import_editor_v1_adapters14 = require("@elementor/editor-v1-adapters");
3965
+ var import_editor_v1_adapters15 = require("@elementor/editor-v1-adapters");
3683
3966
 
3684
3967
  // src/hooks/use-open-editor-panel.ts
3685
3968
  var import_react29 = require("react");
3686
- var import_editor_v1_adapters13 = require("@elementor/editor-v1-adapters");
3969
+ var import_editor_v1_adapters14 = require("@elementor/editor-v1-adapters");
3687
3970
 
3688
3971
  // src/sync/is-atomic-widget-selected.ts
3689
3972
  var import_editor_elements9 = require("@elementor/editor-elements");
@@ -3700,7 +3983,7 @@ var isAtomicWidgetSelected = () => {
3700
3983
  var useOpenEditorPanel = () => {
3701
3984
  const { open } = usePanelActions();
3702
3985
  (0, import_react29.useEffect)(() => {
3703
- return (0, import_editor_v1_adapters13.__privateListenTo)((0, import_editor_v1_adapters13.commandStartEvent)("panel/editor/open"), () => {
3986
+ return (0, import_editor_v1_adapters14.__privateListenTo)((0, import_editor_v1_adapters14.commandStartEvent)("panel/editor/open"), () => {
3704
3987
  if (isAtomicWidgetSelected()) {
3705
3988
  open();
3706
3989
  }
@@ -3715,19 +3998,19 @@ var EditingPanelHooks = () => {
3715
3998
  };
3716
3999
 
3717
4000
  // src/dynamics/init.ts
3718
- var import_editor_canvas3 = require("@elementor/editor-canvas");
4001
+ var import_editor_canvas4 = require("@elementor/editor-canvas");
3719
4002
 
3720
4003
  // src/dynamics/components/dynamic-selection-control.tsx
3721
- var React79 = __toESM(require("react"));
4004
+ var React84 = __toESM(require("react"));
3722
4005
  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");
4006
+ var import_icons27 = require("@elementor/icons");
4007
+ var import_ui70 = require("@elementor/ui");
4008
+ var import_i18n56 = require("@wordpress/i18n");
3726
4009
 
3727
4010
  // 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);
4011
+ var React81 = __toESM(require("react"));
4012
+ var import_ui68 = require("@elementor/ui");
4013
+ var PopoverContent = ({ alignItems, gap = 1.5, p, children }) => /* @__PURE__ */ React81.createElement(import_ui68.Stack, { alignItems, gap, p }, children);
3731
4014
 
3732
4015
  // src/hooks/use-persist-dynamic-value.ts
3733
4016
  var import_session6 = require("@elementor/session");
@@ -3738,7 +4021,7 @@ var usePersistDynamicValue = (propKey) => {
3738
4021
  };
3739
4022
 
3740
4023
  // src/dynamics/dynamic-control.tsx
3741
- var React77 = __toESM(require("react"));
4024
+ var React82 = __toESM(require("react"));
3742
4025
  var import_editor_controls51 = require("@elementor/editor-controls");
3743
4026
 
3744
4027
  // src/dynamics/hooks/use-dynamic-tag.ts
@@ -3837,17 +4120,17 @@ var DynamicControl = ({ bind, children }) => {
3837
4120
  });
3838
4121
  };
3839
4122
  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));
4123
+ return /* @__PURE__ */ React82.createElement(import_editor_controls51.PropProvider, { propType, setValue: setDynamicValue, value: { [bind]: dynamicValue } }, /* @__PURE__ */ React82.createElement(import_editor_controls51.PropKeyProvider, { bind }, children));
3841
4124
  };
3842
4125
 
3843
4126
  // src/dynamics/components/dynamic-selection.tsx
3844
- var React78 = __toESM(require("react"));
4127
+ var React83 = __toESM(require("react"));
3845
4128
  var import_react32 = require("react");
3846
4129
  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";
4130
+ var import_icons26 = require("@elementor/icons");
4131
+ var import_ui69 = require("@elementor/ui");
4132
+ var import_i18n55 = require("@wordpress/i18n");
4133
+ var SIZE7 = "tiny";
3851
4134
  var DynamicSelection = ({ onSelect }) => {
3852
4135
  const [searchValue, setSearchValue] = (0, import_react32.useState)("");
3853
4136
  const { groups: dynamicGroups } = getAtomicDynamicTags() || {};
@@ -3867,28 +4150,28 @@ var DynamicSelection = ({ onSelect }) => {
3867
4150
  setValue({ name: value, settings: { label } });
3868
4151
  onSelect?.();
3869
4152
  };
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,
4153
+ return /* @__PURE__ */ React83.createElement(import_ui69.Stack, null, hasNoDynamicTags ? /* @__PURE__ */ React83.createElement(NoDynamicTags, null) : /* @__PURE__ */ React83.createElement(import_react32.Fragment, null, /* @__PURE__ */ React83.createElement(import_ui69.Box, { px: 1.5, pb: 1 }, /* @__PURE__ */ React83.createElement(
4154
+ import_ui69.TextField,
3872
4155
  {
3873
4156
  fullWidth: true,
3874
- size: SIZE3,
4157
+ size: SIZE7,
3875
4158
  value: searchValue,
3876
4159
  onChange: handleSearch,
3877
- placeholder: (0, import_i18n52.__)("Search dynamic tags\u2026", "elementor"),
4160
+ placeholder: (0, import_i18n55.__)("Search dynamic tags\u2026", "elementor"),
3878
4161
  InputProps: {
3879
- startAdornment: /* @__PURE__ */ React78.createElement(import_ui64.InputAdornment, { position: "start" }, /* @__PURE__ */ React78.createElement(import_icons24.SearchIcon, { fontSize: SIZE3 }))
4162
+ startAdornment: /* @__PURE__ */ React83.createElement(import_ui69.InputAdornment, { position: "start" }, /* @__PURE__ */ React83.createElement(import_icons26.SearchIcon, { fontSize: SIZE7 }))
3880
4163
  }
3881
4164
  }
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,
4165
+ )), /* @__PURE__ */ React83.createElement(import_ui69.Divider, null), /* @__PURE__ */ React83.createElement(import_ui69.Box, { sx: { overflowY: "auto", height: 260, width: 220 } }, options12.length > 0 ? /* @__PURE__ */ React83.createElement(import_ui69.MenuList, { role: "listbox", tabIndex: 0 }, options12.map(([category, items3], index) => /* @__PURE__ */ React83.createElement(import_react32.Fragment, { key: index }, /* @__PURE__ */ React83.createElement(
4166
+ import_ui69.MenuSubheader,
3884
4167
  {
3885
4168
  sx: { px: 1.5, typography: "caption", color: "text.tertiary" }
3886
4169
  },
3887
4170
  dynamicGroups?.[category]?.title || category
3888
4171
  ), items3.map(({ value, label: tagLabel }) => {
3889
4172
  const isSelected = isCurrentValueDynamic && value === dynamicValue?.name;
3890
- return /* @__PURE__ */ React78.createElement(
3891
- import_ui64.MenuItem,
4173
+ return /* @__PURE__ */ React83.createElement(
4174
+ import_ui69.MenuItem,
3892
4175
  {
3893
4176
  key: value,
3894
4177
  selected: isSelected,
@@ -3898,10 +4181,10 @@ var DynamicSelection = ({ onSelect }) => {
3898
4181
  },
3899
4182
  tagLabel
3900
4183
  );
3901
- })))) : /* @__PURE__ */ React78.createElement(NoResults, { searchValue, onClear: () => setSearchValue("") }))));
4184
+ })))) : /* @__PURE__ */ React83.createElement(NoResults, { searchValue, onClear: () => setSearchValue("") }))));
3902
4185
  };
3903
- var NoResults = ({ searchValue, onClear }) => /* @__PURE__ */ React78.createElement(
3904
- import_ui64.Stack,
4186
+ var NoResults = ({ searchValue, onClear }) => /* @__PURE__ */ React83.createElement(
4187
+ import_ui69.Stack,
3905
4188
  {
3906
4189
  gap: 1,
3907
4190
  alignItems: "center",
@@ -3911,12 +4194,12 @@ var NoResults = ({ searchValue, onClear }) => /* @__PURE__ */ React78.createElem
3911
4194
  color: "text.secondary",
3912
4195
  sx: { pb: 3.5 }
3913
4196
  },
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")))
4197
+ /* @__PURE__ */ React83.createElement(import_icons26.DatabaseIcon, { fontSize: "large" }),
4198
+ /* @__PURE__ */ React83.createElement(import_ui69.Typography, { align: "center", variant: "subtitle2" }, (0, import_i18n55.__)("Sorry, nothing matched", "elementor"), /* @__PURE__ */ React83.createElement("br", null), "\u201C", searchValue, "\u201D."),
4199
+ /* @__PURE__ */ React83.createElement(import_ui69.Typography, { align: "center", variant: "caption" }, (0, import_i18n55.__)("Try something else.", "elementor"), "\xA0", /* @__PURE__ */ React83.createElement(import_ui69.Link, { color: "text.secondary", variant: "caption", component: "button", onClick: onClear }, (0, import_i18n55.__)("Clear & try again", "elementor")))
3917
4200
  );
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,
4201
+ var NoDynamicTags = () => /* @__PURE__ */ React83.createElement(import_ui69.Box, { sx: { overflowY: "hidden", height: 297, width: 220 } }, /* @__PURE__ */ React83.createElement(import_ui69.Divider, null), /* @__PURE__ */ React83.createElement(
4202
+ import_ui69.Stack,
3920
4203
  {
3921
4204
  gap: 1,
3922
4205
  alignItems: "center",
@@ -3926,9 +4209,9 @@ var NoDynamicTags = () => /* @__PURE__ */ React78.createElement(import_ui64.Box,
3926
4209
  color: "text.secondary",
3927
4210
  sx: { pb: 3.5 }
3928
4211
  },
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"))
4212
+ /* @__PURE__ */ React83.createElement(import_icons26.DatabaseIcon, { fontSize: "large" }),
4213
+ /* @__PURE__ */ React83.createElement(import_ui69.Typography, { align: "center", variant: "subtitle2" }, (0, import_i18n55.__)("Streamline your workflow with dynamic tags", "elementor")),
4214
+ /* @__PURE__ */ React83.createElement(import_ui69.Typography, { align: "center", variant: "caption" }, (0, import_i18n55.__)("You\u2019ll need Elementor Pro to use this feature.", "elementor"))
3932
4215
  ));
3933
4216
  var useFilteredOptions = (searchValue) => {
3934
4217
  const dynamicTags = usePropDynamicTags();
@@ -3947,12 +4230,12 @@ var useFilteredOptions = (searchValue) => {
3947
4230
  };
3948
4231
 
3949
4232
  // src/dynamics/components/dynamic-selection-control.tsx
3950
- var SIZE4 = "tiny";
4233
+ var SIZE8 = "tiny";
3951
4234
  var DynamicSelectionControl = () => {
3952
4235
  const { setValue: setAnyValue } = (0, import_editor_controls53.useBoundProp)();
3953
4236
  const { bind, value } = (0, import_editor_controls53.useBoundProp)(dynamicPropTypeUtil);
3954
4237
  const [propValueFromHistory] = usePersistDynamicValue(bind);
3955
- const selectionPopoverState = (0, import_ui65.usePopupState)({ variant: "popover" });
4238
+ const selectionPopoverState = (0, import_ui70.usePopupState)({ variant: "popover" });
3956
4239
  const { name: tagName = "" } = value;
3957
4240
  const dynamicTag = useDynamicTag(tagName);
3958
4241
  const removeDynamicTag = () => {
@@ -3961,62 +4244,62 @@ var DynamicSelectionControl = () => {
3961
4244
  if (!dynamicTag) {
3962
4245
  throw new Error(`Dynamic tag ${tagName} not found`);
3963
4246
  }
3964
- return /* @__PURE__ */ React79.createElement(import_ui65.Box, null, /* @__PURE__ */ React79.createElement(
3965
- import_ui65.UnstableTag,
4247
+ return /* @__PURE__ */ React84.createElement(import_ui70.Box, null, /* @__PURE__ */ React84.createElement(
4248
+ import_ui70.UnstableTag,
3966
4249
  {
3967
4250
  fullWidth: true,
3968
4251
  showActionsOnHover: true,
3969
4252
  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,
4253
+ startIcon: /* @__PURE__ */ React84.createElement(import_icons27.DatabaseIcon, { fontSize: SIZE8 }),
4254
+ ...(0, import_ui70.bindTrigger)(selectionPopoverState),
4255
+ actions: /* @__PURE__ */ React84.createElement(React84.Fragment, null, /* @__PURE__ */ React84.createElement(DynamicSettingsPopover, { dynamicTag }), /* @__PURE__ */ React84.createElement(
4256
+ import_ui70.IconButton,
3974
4257
  {
3975
- size: SIZE4,
4258
+ size: SIZE8,
3976
4259
  onClick: removeDynamicTag,
3977
- "aria-label": (0, import_i18n53.__)("Remove dynamic value", "elementor")
4260
+ "aria-label": (0, import_i18n56.__)("Remove dynamic value", "elementor")
3978
4261
  },
3979
- /* @__PURE__ */ React79.createElement(import_icons25.XIcon, { fontSize: SIZE4 })
4262
+ /* @__PURE__ */ React84.createElement(import_icons27.XIcon, { fontSize: SIZE8 })
3980
4263
  ))
3981
4264
  }
3982
- ), /* @__PURE__ */ React79.createElement(
3983
- import_ui65.Popover,
4265
+ ), /* @__PURE__ */ React84.createElement(
4266
+ import_ui70.Popover,
3984
4267
  {
3985
4268
  disablePortal: true,
3986
4269
  disableScrollLock: true,
3987
4270
  anchorOrigin: { vertical: "bottom", horizontal: "left" },
3988
- ...(0, import_ui65.bindPopover)(selectionPopoverState)
4271
+ ...(0, import_ui70.bindPopover)(selectionPopoverState)
3989
4272
  },
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 }))
4273
+ /* @__PURE__ */ React84.createElement(import_ui70.Stack, null, /* @__PURE__ */ React84.createElement(import_ui70.Stack, { direction: "row", alignItems: "center", pl: 1.5, pr: 0.5, py: 1.5 }, /* @__PURE__ */ React84.createElement(import_icons27.DatabaseIcon, { fontSize: SIZE8, sx: { mr: 0.5 } }), /* @__PURE__ */ React84.createElement(import_ui70.Typography, { variant: "subtitle2" }, (0, import_i18n56.__)("Dynamic tags", "elementor")), /* @__PURE__ */ React84.createElement(import_ui70.IconButton, { size: SIZE8, sx: { ml: "auto" }, onClick: selectionPopoverState.close }, /* @__PURE__ */ React84.createElement(import_icons27.XIcon, { fontSize: SIZE8 }))), /* @__PURE__ */ React84.createElement(DynamicSelection, { onSelect: selectionPopoverState.close }))
3991
4274
  ));
3992
4275
  };
3993
4276
  var DynamicSettingsPopover = ({ dynamicTag }) => {
3994
- const popupState = (0, import_ui65.usePopupState)({ variant: "popover" });
4277
+ const popupState = (0, import_ui70.usePopupState)({ variant: "popover" });
3995
4278
  const hasDynamicSettings = !!dynamicTag.atomic_controls.length;
3996
4279
  if (!hasDynamicSettings) {
3997
4280
  return null;
3998
4281
  }
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,
4282
+ return /* @__PURE__ */ React84.createElement(React84.Fragment, null, /* @__PURE__ */ React84.createElement(import_ui70.IconButton, { size: SIZE8, ...(0, import_ui70.bindTrigger)(popupState), "aria-label": (0, import_i18n56.__)("Settings", "elementor") }, /* @__PURE__ */ React84.createElement(import_icons27.SettingsIcon, { fontSize: SIZE8 })), /* @__PURE__ */ React84.createElement(
4283
+ import_ui70.Popover,
4001
4284
  {
4002
4285
  disablePortal: true,
4003
4286
  disableScrollLock: true,
4004
4287
  anchorOrigin: { vertical: "bottom", horizontal: "center" },
4005
- ...(0, import_ui65.bindPopover)(popupState)
4288
+ ...(0, import_ui70.bindPopover)(popupState)
4006
4289
  },
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 }))
4290
+ /* @__PURE__ */ React84.createElement(import_ui70.Paper, { component: import_ui70.Stack, sx: { minHeight: "300px", width: "220px" } }, /* @__PURE__ */ React84.createElement(import_ui70.Stack, { direction: "row", alignItems: "center", px: 1.5, pt: 2, pb: 1 }, /* @__PURE__ */ React84.createElement(import_icons27.DatabaseIcon, { fontSize: SIZE8, sx: { mr: 0.5 } }), /* @__PURE__ */ React84.createElement(import_ui70.Typography, { variant: "subtitle2" }, dynamicTag.label), /* @__PURE__ */ React84.createElement(import_ui70.IconButton, { sx: { ml: "auto" }, size: SIZE8, onClick: popupState.close }, /* @__PURE__ */ React84.createElement(import_icons27.XIcon, { fontSize: SIZE8 }))), /* @__PURE__ */ React84.createElement(DynamicSettings, { controls: dynamicTag.atomic_controls }))
4008
4291
  ));
4009
4292
  };
4010
4293
  var DynamicSettings = ({ controls }) => {
4011
4294
  const tabs = controls.filter(({ type }) => type === "section");
4012
- const { getTabsProps, getTabProps, getTabPanelProps } = (0, import_ui65.useTabs)(0);
4295
+ const { getTabsProps, getTabProps, getTabPanelProps } = (0, import_ui70.useTabs)(0);
4013
4296
  if (!tabs.length) {
4014
4297
  return null;
4015
4298
  }
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) => {
4299
+ return /* @__PURE__ */ React84.createElement(React84.Fragment, null, /* @__PURE__ */ React84.createElement(import_ui70.Tabs, { size: "small", variant: "fullWidth", ...getTabsProps() }, tabs.map(({ value }, index) => /* @__PURE__ */ React84.createElement(import_ui70.Tab, { key: index, label: value.label, sx: { px: 1, py: 0.5 }, ...getTabProps(index) }))), /* @__PURE__ */ React84.createElement(import_ui70.Divider, null), tabs.map(({ value }, index) => {
4300
+ return /* @__PURE__ */ React84.createElement(import_ui70.TabPanel, { key: index, sx: { flexGrow: 1, py: 0 }, ...getTabPanelProps(index) }, /* @__PURE__ */ React84.createElement(PopoverContent, { p: 2, gap: 2 }, value.items.map((item) => {
4018
4301
  if (item.type === "control") {
4019
- return /* @__PURE__ */ React79.createElement(Control3, { key: item.value.bind, control: item.value });
4302
+ return /* @__PURE__ */ React84.createElement(Control3, { key: item.value.bind, control: item.value });
4020
4303
  }
4021
4304
  return null;
4022
4305
  })));
@@ -4026,11 +4309,11 @@ var Control3 = ({ control }) => {
4026
4309
  if (!getControl(control.type)) {
4027
4310
  return null;
4028
4311
  }
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 }))));
4312
+ return /* @__PURE__ */ React84.createElement(DynamicControl, { bind: control.bind }, /* @__PURE__ */ React84.createElement(import_ui70.Grid, { container: true, gap: 0.75 }, control.label ? /* @__PURE__ */ React84.createElement(import_ui70.Grid, { item: true, xs: 12 }, /* @__PURE__ */ React84.createElement(import_editor_controls53.ControlFormLabel, null, control.label)) : null, /* @__PURE__ */ React84.createElement(import_ui70.Grid, { item: true, xs: 12 }, /* @__PURE__ */ React84.createElement(Control, { type: control.type, props: control.props }))));
4030
4313
  };
4031
4314
 
4032
4315
  // src/dynamics/dynamic-transformer.ts
4033
- var import_editor_canvas2 = require("@elementor/editor-canvas");
4316
+ var import_editor_canvas3 = require("@elementor/editor-canvas");
4034
4317
  var import_editor_props12 = require("@elementor/editor-props");
4035
4318
 
4036
4319
  // src/dynamics/errors.ts
@@ -4041,7 +4324,7 @@ var DynamicTagsManagerNotFoundError = (0, import_utils8.createError)({
4041
4324
  });
4042
4325
 
4043
4326
  // src/dynamics/dynamic-transformer.ts
4044
- var dynamicTransformer = (0, import_editor_canvas2.createTransformer)((value) => {
4327
+ var dynamicTransformer = (0, import_editor_canvas3.createTransformer)((value) => {
4045
4328
  if (!value.name) {
4046
4329
  return null;
4047
4330
  }
@@ -4079,18 +4362,18 @@ function getDynamicValue(name, settings) {
4079
4362
  }
4080
4363
 
4081
4364
  // src/dynamics/hooks/use-prop-dynamic-action.tsx
4082
- var React80 = __toESM(require("react"));
4365
+ var React85 = __toESM(require("react"));
4083
4366
  var import_editor_controls54 = require("@elementor/editor-controls");
4084
- var import_icons26 = require("@elementor/icons");
4085
- var import_i18n54 = require("@wordpress/i18n");
4367
+ var import_icons28 = require("@elementor/icons");
4368
+ var import_i18n57 = require("@wordpress/i18n");
4086
4369
  var usePropDynamicAction = () => {
4087
4370
  const { propType } = (0, import_editor_controls54.useBoundProp)();
4088
4371
  const visible = !!propType && supportsDynamic(propType);
4089
4372
  return {
4090
4373
  visible,
4091
- icon: import_icons26.DatabaseIcon,
4092
- title: (0, import_i18n54.__)("Dynamic tags", "elementor"),
4093
- popoverContent: ({ closePopover }) => /* @__PURE__ */ React80.createElement(DynamicSelection, { onSelect: closePopover })
4374
+ icon: import_icons28.DatabaseIcon,
4375
+ title: (0, import_i18n57.__)("Dynamic tags", "elementor"),
4376
+ popoverContent: ({ closePopover }) => /* @__PURE__ */ React85.createElement(DynamicSelection, { onSelect: closePopover })
4094
4377
  };
4095
4378
  };
4096
4379
 
@@ -4105,12 +4388,170 @@ var init = () => {
4105
4388
  id: "dynamic-tags",
4106
4389
  useProps: usePropDynamicAction
4107
4390
  });
4108
- import_editor_canvas3.styleTransformersRegistry.register("dynamic", dynamicTransformer);
4109
- import_editor_canvas3.settingsTransformersRegistry.register("dynamic", dynamicTransformer);
4391
+ import_editor_canvas4.styleTransformersRegistry.register("dynamic", dynamicTransformer);
4392
+ import_editor_canvas4.settingsTransformersRegistry.register("dynamic", dynamicTransformer);
4393
+ };
4394
+
4395
+ // src/reset-style-props.tsx
4396
+ var import_editor_controls55 = require("@elementor/editor-controls");
4397
+ var import_icons29 = require("@elementor/icons");
4398
+ var import_i18n58 = require("@wordpress/i18n");
4399
+ var { registerAction } = controlActionsMenu;
4400
+ function initResetStyleProps() {
4401
+ registerAction({
4402
+ id: "reset-style-value",
4403
+ useProps: useResetStyleValueProps
4404
+ });
4405
+ }
4406
+ var EXCLUDED_BINDS = ["order", "flex-grow", "flex-shrink", "flex-basis"];
4407
+ function useResetStyleValueProps() {
4408
+ const isStyle = useIsStyle();
4409
+ const { value, setValue, path, bind } = (0, import_editor_controls55.useBoundProp)();
4410
+ return {
4411
+ visible: isStyle && value !== null && value !== void 0 && path.length <= 2 && !EXCLUDED_BINDS.includes(bind),
4412
+ title: (0, import_i18n58.__)("Clear", "elementor"),
4413
+ icon: import_icons29.BrushBigIcon,
4414
+ onClick: () => setValue(null)
4415
+ };
4416
+ }
4417
+
4418
+ // src/styles-inheritance/init-styles-inheritance-transformers.ts
4419
+ var import_editor_canvas9 = require("@elementor/editor-canvas");
4420
+
4421
+ // src/styles-inheritance/transformers/background-color-overlay-transformer.tsx
4422
+ var React86 = __toESM(require("react"));
4423
+ var import_editor_canvas5 = require("@elementor/editor-canvas");
4424
+ var import_ui71 = require("@elementor/ui");
4425
+ var backgroundColorOverlayTransformer = (0, import_editor_canvas5.createTransformer)((value) => /* @__PURE__ */ React86.createElement(import_ui71.Stack, { direction: "row", gap: 10 }, /* @__PURE__ */ React86.createElement(ItemIconColor, { value }), /* @__PURE__ */ React86.createElement(ItemLabelColor, { value })));
4426
+ var ItemIconColor = ({ value }) => {
4427
+ const { color } = value;
4428
+ return /* @__PURE__ */ React86.createElement(StyledUnstableColorIndicator, { size: "inherit", component: "span", value: color });
4429
+ };
4430
+ var ItemLabelColor = ({ value: { color } }) => {
4431
+ return /* @__PURE__ */ React86.createElement("span", null, color);
4432
+ };
4433
+ var StyledUnstableColorIndicator = (0, import_ui71.styled)(import_ui71.UnstableColorIndicator)(({ theme }) => ({
4434
+ borderRadius: `${theme.shape.borderRadius / 2}px`
4435
+ }));
4436
+
4437
+ // src/styles-inheritance/transformers/background-gradient-overlay-transformer.tsx
4438
+ var React87 = __toESM(require("react"));
4439
+ var import_editor_canvas6 = require("@elementor/editor-canvas");
4440
+ var import_ui72 = require("@elementor/ui");
4441
+ var import_i18n59 = require("@wordpress/i18n");
4442
+ var backgroundGradientOverlayTransformer = (0, import_editor_canvas6.createTransformer)((value) => /* @__PURE__ */ React87.createElement(import_ui72.Stack, { direction: "row", gap: 10 }, /* @__PURE__ */ React87.createElement(ItemIconGradient, { value }), /* @__PURE__ */ React87.createElement(ItemLabelGradient, { value })));
4443
+ var ItemIconGradient = ({ value }) => {
4444
+ const gradient = getGradientValue(value);
4445
+ return /* @__PURE__ */ React87.createElement(StyledUnstableColorIndicator, { size: "inherit", component: "span", value: gradient });
4446
+ };
4447
+ var ItemLabelGradient = ({ value }) => {
4448
+ if (value.type === "linear") {
4449
+ return /* @__PURE__ */ React87.createElement("span", null, (0, import_i18n59.__)("Linear Gradient", "elementor"));
4450
+ }
4451
+ return /* @__PURE__ */ React87.createElement("span", null, (0, import_i18n59.__)("Radial Gradient", "elementor"));
4452
+ };
4453
+ var getGradientValue = (gradient) => {
4454
+ const stops = gradient.stops?.map(({ color, offset }) => `${color} ${offset ?? 0}%`)?.join(",");
4455
+ if (gradient.type === "linear") {
4456
+ return `linear-gradient(${gradient.angle}deg, ${stops})`;
4457
+ }
4458
+ return `radial-gradient(circle at ${gradient.positions}, ${stops})`;
4459
+ };
4460
+
4461
+ // src/styles-inheritance/transformers/background-image-overlay-transformer.tsx
4462
+ var React88 = __toESM(require("react"));
4463
+ var import_editor_canvas7 = require("@elementor/editor-canvas");
4464
+ var import_editor_ui5 = require("@elementor/editor-ui");
4465
+ var import_ui73 = require("@elementor/ui");
4466
+ var import_wp_media = require("@elementor/wp-media");
4467
+ var backgroundImageOverlayTransformer = (0, import_editor_canvas7.createTransformer)((value) => /* @__PURE__ */ React88.createElement(import_ui73.Stack, { direction: "row", gap: 10 }, /* @__PURE__ */ React88.createElement(ItemIconImage, { value }), /* @__PURE__ */ React88.createElement(ItemLabelImage, { value })));
4468
+ var ItemIconImage = ({ value }) => {
4469
+ const { imageUrl } = useImage(value);
4470
+ return /* @__PURE__ */ React88.createElement(
4471
+ import_ui73.CardMedia,
4472
+ {
4473
+ image: imageUrl,
4474
+ sx: (theme) => ({
4475
+ height: "1em",
4476
+ width: "1em",
4477
+ borderRadius: `${theme.shape.borderRadius / 2}px`,
4478
+ outline: `1px solid ${theme.palette.action.disabled}`
4479
+ })
4480
+ }
4481
+ );
4482
+ };
4483
+ var ItemLabelImage = ({ value }) => {
4484
+ const { imageTitle } = useImage(value);
4485
+ return /* @__PURE__ */ React88.createElement(import_editor_ui5.EllipsisWithTooltip, { title: imageTitle }, /* @__PURE__ */ React88.createElement("span", null, imageTitle));
4486
+ };
4487
+ var useImage = (image) => {
4488
+ let imageTitle, imageUrl = null;
4489
+ const imageSrc = image?.image.src;
4490
+ const { data: attachment } = (0, import_wp_media.useWpMediaAttachment)(imageSrc.id || null);
4491
+ if (imageSrc.id) {
4492
+ const imageFileTypeExtension = getFileExtensionFromFilename(attachment?.filename);
4493
+ imageTitle = `${attachment?.title}${imageFileTypeExtension}` || null;
4494
+ imageUrl = attachment?.url || null;
4495
+ } else if (imageSrc.url) {
4496
+ imageUrl = imageSrc.url;
4497
+ imageTitle = imageUrl?.substring(imageUrl.lastIndexOf("/") + 1) || null;
4498
+ }
4499
+ return { imageTitle, imageUrl };
4500
+ };
4501
+ var getFileExtensionFromFilename = (filename) => {
4502
+ if (!filename) {
4503
+ return "";
4504
+ }
4505
+ const extension = filename.substring(filename.lastIndexOf(".") + 1);
4506
+ return `.${extension}`;
4507
+ };
4508
+
4509
+ // src/styles-inheritance/transformers/background-overlay-transformer.tsx
4510
+ var React89 = __toESM(require("react"));
4511
+ var import_editor_canvas8 = require("@elementor/editor-canvas");
4512
+ var import_ui74 = require("@elementor/ui");
4513
+ var backgroundOverlayTransformer = (0, import_editor_canvas8.createTransformer)((values) => {
4514
+ if (!values || values.length === 0) {
4515
+ return null;
4516
+ }
4517
+ return /* @__PURE__ */ React89.createElement(import_ui74.Stack, { direction: "column" }, values.map((item, index) => /* @__PURE__ */ React89.createElement(import_ui74.Stack, { key: index }, item)));
4518
+ });
4519
+
4520
+ // src/styles-inheritance/init-styles-inheritance-transformers.ts
4521
+ function initStylesInheritanceTransformers() {
4522
+ const originalStyleTransformers = import_editor_canvas9.styleTransformersRegistry.all();
4523
+ Object.entries(originalStyleTransformers).forEach(([propType, transformer]) => {
4524
+ if (excludePropTypeTransformers.has(propType)) {
4525
+ return;
4526
+ }
4527
+ stylesInheritanceTransformersRegistry.register(propType, transformer);
4528
+ });
4529
+ stylesInheritanceTransformersRegistry.registerFallback(
4530
+ (0, import_editor_canvas9.createTransformer)((value) => {
4531
+ return value;
4532
+ })
4533
+ );
4534
+ registerCustomTransformers();
4535
+ }
4536
+ function registerCustomTransformers() {
4537
+ stylesInheritanceTransformersRegistry.register("background-color-overlay", backgroundColorOverlayTransformer);
4538
+ stylesInheritanceTransformersRegistry.register(
4539
+ "background-gradient-overlay",
4540
+ backgroundGradientOverlayTransformer
4541
+ );
4542
+ stylesInheritanceTransformersRegistry.register("background-image-overlay", backgroundImageOverlayTransformer);
4543
+ stylesInheritanceTransformersRegistry.register("background-overlay", backgroundOverlayTransformer);
4544
+ }
4545
+
4546
+ // src/styles-inheritance/init.ts
4547
+ var init2 = () => {
4548
+ if (isUsingIndicatorPopover()) {
4549
+ initStylesInheritanceTransformers();
4550
+ }
4110
4551
  };
4111
4552
 
4112
4553
  // src/init.ts
4113
- function init2() {
4554
+ function init3() {
4114
4555
  (0, import_editor_panels3.__registerPanel)(panel);
4115
4556
  blockV1Panel();
4116
4557
  (0, import_editor.injectIntoLogic)({
@@ -4122,9 +4563,13 @@ function init2() {
4122
4563
  component: import_editor_current_user.PrefetchUserData
4123
4564
  });
4124
4565
  init();
4566
+ init2();
4567
+ if ((0, import_editor_v1_adapters15.isExperimentActive)(EXPERIMENTAL_FEATURES.V_3_30)) {
4568
+ initResetStyleProps();
4569
+ }
4125
4570
  }
4126
4571
  var blockV1Panel = () => {
4127
- (0, import_editor_v1_adapters14.blockCommand)({
4572
+ (0, import_editor_v1_adapters15.blockCommand)({
4128
4573
  command: "panel/editor/open",
4129
4574
  condition: isAtomicWidgetSelected
4130
4575
  });