@elementor/editor-controls 4.4.0-1094 → 4.4.0-1096

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -508,7 +508,7 @@ function ControlActions({ children }) {
508
508
  if (items2.length === 0 || disabled) {
509
509
  return children;
510
510
  }
511
- const menuItems = items2.map(({ MenuItem: MenuItem3, id }) => /* @__PURE__ */ React10.createElement(MenuItem3, { key: id }));
511
+ const menuItems = items2.map(({ MenuItem: MenuItem4, id }) => /* @__PURE__ */ React10.createElement(MenuItem4, { key: id }));
512
512
  return /* @__PURE__ */ React10.createElement(import_editor_ui.FloatingActionsBar, { actions: menuItems }, children);
513
513
  }
514
514
 
@@ -5388,13 +5388,13 @@ var AspectRatioControl = createControl(({ label }) => {
5388
5388
  });
5389
5389
 
5390
5390
  // src/controls/svg-media-control.tsx
5391
- var React86 = __toESM(require("react"));
5392
- var import_react51 = require("react");
5391
+ var React88 = __toESM(require("react"));
5392
+ var import_react53 = require("react");
5393
5393
  var import_editor_current_user = require("@elementor/editor-current-user");
5394
5394
  var import_editor_props35 = require("@elementor/editor-props");
5395
- var import_ui68 = require("@elementor/ui");
5395
+ var import_ui70 = require("@elementor/ui");
5396
5396
  var import_wp_media2 = require("@elementor/wp-media");
5397
- var import_i18n36 = require("@wordpress/i18n");
5397
+ var import_i18n38 = require("@wordpress/i18n");
5398
5398
 
5399
5399
  // src/components/enable-unfiltered-modal.tsx
5400
5400
  var React80 = __toESM(require("react"));
@@ -5462,13 +5462,14 @@ function measureIconLibraryAnchor(container, buttonGroup) {
5462
5462
  }
5463
5463
 
5464
5464
  // src/controls/icon-library/icon-library-popover.tsx
5465
- var React83 = __toESM(require("react"));
5466
- var import_react50 = require("react");
5465
+ var React85 = __toESM(require("react"));
5466
+ var import_react52 = require("react");
5467
5467
  var import_editor_ui11 = require("@elementor/editor-ui");
5468
- var import_icons22 = require("@elementor/icons");
5469
- var import_ui65 = require("@elementor/ui");
5468
+ var import_icons23 = require("@elementor/icons");
5469
+ var import_session2 = require("@elementor/session");
5470
+ var import_ui67 = require("@elementor/ui");
5470
5471
  var import_utils6 = require("@elementor/utils");
5471
- var import_i18n33 = require("@wordpress/i18n");
5472
+ var import_i18n35 = require("@wordpress/i18n");
5472
5473
 
5473
5474
  // src/controls/icon-library/font-awesome-7-data.ts
5474
5475
  var FONT_AWESOME_7_LIBRARIES = [
@@ -5734,6 +5735,11 @@ var import_react49 = require("react");
5734
5735
  var import_icons21 = require("@elementor/icons");
5735
5736
  var import_ui64 = require("@elementor/ui");
5736
5737
  var import_i18n32 = require("@wordpress/i18n");
5738
+
5739
+ // src/controls/icon-library/icon-library-tooltip.ts
5740
+ var ICON_LIBRARY_ACTION_TOOLTIP_ENTER_DELAY = 0;
5741
+
5742
+ // src/controls/icon-library/icon-library-filter.tsx
5737
5743
  var FILTER_MENU_WIDTH = 280;
5738
5744
  var FILTER_INDICATOR_SIZE = 6;
5739
5745
  var FILTER_INDICATOR_OFFSET = 4;
@@ -5780,35 +5786,45 @@ var IconLibraryFilter = ({ value, onChange }) => {
5780
5786
  const nextValue = value.includes(library) ? value.filter((selectedLibrary) => selectedLibrary !== library) : [...value, library];
5781
5787
  onChange(nextValue.length === FONT_AWESOME_7_LIBRARIES.length ? [] : nextValue);
5782
5788
  };
5783
- return /* @__PURE__ */ React82.createElement(React82.Fragment, null, /* @__PURE__ */ React82.createElement(import_ui64.Tooltip, { title: (0, import_i18n32.__)("Filter by library", "elementor"), placement: "top" }, /* @__PURE__ */ React82.createElement(
5784
- import_ui64.ToggleButton,
5789
+ return /* @__PURE__ */ React82.createElement(React82.Fragment, null, /* @__PURE__ */ React82.createElement(
5790
+ import_ui64.Tooltip,
5785
5791
  {
5786
- "aria-label": filterButtonLabel,
5787
- value: "filter",
5788
- size: "tiny",
5789
- selected: popupState.isOpen,
5790
- sx: { position: "relative", flexShrink: 0 },
5791
- ...(0, import_ui64.bindToggle)(popupState),
5792
- "aria-expanded": popupState.isOpen
5792
+ title: (0, import_i18n32.__)("Filter by library", "elementor"),
5793
+ placement: "top",
5794
+ enterDelay: ICON_LIBRARY_ACTION_TOOLTIP_ENTER_DELAY,
5795
+ enterNextDelay: ICON_LIBRARY_ACTION_TOOLTIP_ENTER_DELAY,
5796
+ disableInteractive: true
5793
5797
  },
5794
- /* @__PURE__ */ React82.createElement(import_icons21.FilterIcon, { fontSize: "tiny" }),
5795
- isFiltered ? /* @__PURE__ */ React82.createElement(
5796
- import_ui64.Box,
5798
+ /* @__PURE__ */ React82.createElement(
5799
+ import_ui64.ToggleButton,
5797
5800
  {
5798
- component: "span",
5799
- "aria-hidden": "true",
5800
- sx: {
5801
- position: "absolute",
5802
- insetBlockStart: FILTER_INDICATOR_OFFSET,
5803
- insetInlineEnd: FILTER_INDICATOR_OFFSET,
5804
- width: FILTER_INDICATOR_SIZE,
5805
- height: FILTER_INDICATOR_SIZE,
5806
- borderRadius: "50%",
5807
- bgcolor: "secondary.main"
5801
+ "aria-label": filterButtonLabel,
5802
+ value: "filter",
5803
+ size: "tiny",
5804
+ selected: popupState.isOpen,
5805
+ sx: { position: "relative", flexShrink: 0 },
5806
+ ...(0, import_ui64.bindToggle)(popupState),
5807
+ "aria-expanded": popupState.isOpen
5808
+ },
5809
+ /* @__PURE__ */ React82.createElement(import_icons21.FilterIcon, { fontSize: "tiny" }),
5810
+ isFiltered ? /* @__PURE__ */ React82.createElement(
5811
+ import_ui64.Box,
5812
+ {
5813
+ component: "span",
5814
+ "aria-hidden": "true",
5815
+ sx: {
5816
+ position: "absolute",
5817
+ insetBlockStart: FILTER_INDICATOR_OFFSET,
5818
+ insetInlineEnd: FILTER_INDICATOR_OFFSET,
5819
+ width: FILTER_INDICATOR_SIZE,
5820
+ height: FILTER_INDICATOR_SIZE,
5821
+ borderRadius: "50%",
5822
+ bgcolor: "secondary.main"
5823
+ }
5808
5824
  }
5809
- }
5810
- ) : null
5811
- )), /* @__PURE__ */ React82.createElement(
5825
+ ) : null
5826
+ )
5827
+ ), /* @__PURE__ */ React82.createElement(
5812
5828
  import_ui64.Menu,
5813
5829
  {
5814
5830
  ...(0, import_ui64.bindMenu)(popupState),
@@ -5842,7 +5858,374 @@ var IconLibraryFilter = ({ value, onChange }) => {
5842
5858
  ))
5843
5859
  ));
5844
5860
  };
5845
- var renderFilterMenuItemContent = (label, Icon, selected) => /* @__PURE__ */ React82.createElement(import_ui64.Stack, { direction: "row", alignItems: "center", gap: 1, width: "100%" }, /* @__PURE__ */ React82.createElement(Icon, { fontSize: "tiny" }), /* @__PURE__ */ React82.createElement(import_ui64.Typography, { variant: "caption", sx: { flex: 1 } }, label), selected ? /* @__PURE__ */ React82.createElement(import_icons21.CheckIcon, { fontSize: "tiny" }) : null);
5861
+ var renderFilterMenuItemContent = (label, Icon, selected) => /* @__PURE__ */ React82.createElement(import_ui64.Stack, { direction: "row", alignItems: "center", gap: 1, width: "100%" }, /* @__PURE__ */ React82.createElement(Icon, { fontSize: "tiny" }), /* @__PURE__ */ React82.createElement(import_ui64.Typography, { variant: "caption", sx: { flex: 1 } }, label), selected ? /* @__PURE__ */ React82.createElement(import_icons21.CheckIcon, { fontSize: "tiny", "aria-hidden": "true" }) : null);
5862
+
5863
+ // src/controls/icon-library/icon-library-grid.tsx
5864
+ var React83 = __toESM(require("react"));
5865
+ var import_react50 = require("react");
5866
+ var import_ui65 = require("@elementor/ui");
5867
+ var import_react_virtual = require("@tanstack/react-virtual");
5868
+ var import_i18n33 = require("@wordpress/i18n");
5869
+ var ICON_LIBRARY_GRID_FALLBACK_COLUMN_COUNT = 4;
5870
+ var ICON_LIBRARY_GRID_MIN_CELL_SIZE = 52;
5871
+ var ICON_LIBRARY_GRID_TOOLTIP_ENTER_DELAY = 1e3;
5872
+ var ICON_GLYPH_SIZE = 20;
5873
+ var GRID_OVERSCAN = 6;
5874
+ var GRID_COLUMN_GAP = 1;
5875
+ var GRID_HORIZONTAL_PADDING = 1;
5876
+ var HOME_END_KEYS = /* @__PURE__ */ new Set(["Home", "End"]);
5877
+ var getGridMetrics = (containerWidth, columnGap, inlinePadding) => {
5878
+ const availableWidth = containerWidth - inlinePadding;
5879
+ if (availableWidth <= 0) {
5880
+ return {
5881
+ columnCount: ICON_LIBRARY_GRID_FALLBACK_COLUMN_COUNT,
5882
+ cellSize: ICON_LIBRARY_GRID_MIN_CELL_SIZE
5883
+ };
5884
+ }
5885
+ const columnCount = Math.max(
5886
+ 1,
5887
+ Math.floor((availableWidth + columnGap) / (ICON_LIBRARY_GRID_MIN_CELL_SIZE + columnGap))
5888
+ );
5889
+ const cellSize = Math.floor((availableWidth - columnGap * (columnCount - 1)) / columnCount);
5890
+ return {
5891
+ columnCount,
5892
+ cellSize: Math.max(cellSize, 1)
5893
+ };
5894
+ };
5895
+ var IconLibraryGrid = ({
5896
+ items: items2,
5897
+ selectedValue,
5898
+ onSelect,
5899
+ onClose,
5900
+ noResultsComponent
5901
+ }) => {
5902
+ const theme = (0, import_ui65.useTheme)();
5903
+ const containerRef = (0, import_react50.useRef)(null);
5904
+ const cellRefs = (0, import_react50.useRef)(/* @__PURE__ */ new Map());
5905
+ const shouldRestoreFocusRef = (0, import_react50.useRef)(false);
5906
+ const selectedIndex = items2.findIndex((item) => item.id === selectedValue);
5907
+ const [focusedIndex, setFocusedIndex] = (0, import_react50.useState)(selectedIndex >= 0 ? selectedIndex : 0);
5908
+ const [{ columnCount, cellSize }, setGridMetrics] = (0, import_react50.useState)(() => getGridMetrics(0, 0, 0));
5909
+ const rowCount = Math.ceil(items2.length / columnCount);
5910
+ const virtualizer = (0, import_react_virtual.useVirtualizer)({
5911
+ count: rowCount,
5912
+ getScrollElement: () => containerRef.current,
5913
+ estimateSize: () => cellSize,
5914
+ overscan: GRID_OVERSCAN
5915
+ });
5916
+ const focusedItem = items2[focusedIndex];
5917
+ const visibleRowIndexes = virtualizer.getVirtualIndexes().join(",");
5918
+ (0, import_react50.useLayoutEffect)(() => {
5919
+ setFocusedIndex((current) => {
5920
+ if (items2.length === 0) {
5921
+ return 0;
5922
+ }
5923
+ if (selectedIndex >= 0) {
5924
+ return selectedIndex;
5925
+ }
5926
+ return Math.min(current, items2.length - 1);
5927
+ });
5928
+ if (selectedIndex >= 0) {
5929
+ virtualizer.scrollToIndex(Math.floor(selectedIndex / columnCount));
5930
+ }
5931
+ }, [columnCount, items2, selectedIndex, selectedValue]);
5932
+ (0, import_react50.useLayoutEffect)(() => {
5933
+ if (!shouldRestoreFocusRef.current || !focusedItem) {
5934
+ return;
5935
+ }
5936
+ const cell = cellRefs.current.get(focusedItem.id);
5937
+ if (!cell) {
5938
+ return;
5939
+ }
5940
+ cell.focus();
5941
+ shouldRestoreFocusRef.current = false;
5942
+ }, [focusedItem, visibleRowIndexes]);
5943
+ (0, import_react50.useLayoutEffect)(() => {
5944
+ const container = containerRef.current;
5945
+ if (!container) {
5946
+ return;
5947
+ }
5948
+ const measureGrid = () => {
5949
+ const columnGap = Number.parseFloat(theme.spacing(GRID_COLUMN_GAP));
5950
+ const inlinePadding = Number.parseFloat(theme.spacing(GRID_HORIZONTAL_PADDING)) * 2;
5951
+ setGridMetrics(getGridMetrics(container.clientWidth, columnGap, inlinePadding));
5952
+ };
5953
+ measureGrid();
5954
+ const resizeObserver = new ResizeObserver(measureGrid);
5955
+ resizeObserver.observe(container);
5956
+ return () => {
5957
+ resizeObserver.disconnect();
5958
+ };
5959
+ }, [theme, items2.length]);
5960
+ (0, import_react50.useLayoutEffect)(() => {
5961
+ virtualizer.measure();
5962
+ }, [cellSize, columnCount]);
5963
+ const isRtl = theme.direction === "rtl" || document.documentElement.dir === "rtl";
5964
+ const horizontalOffset = isRtl ? -1 : 1;
5965
+ const moveFocus = (nextIndex) => {
5966
+ if (nextIndex < 0 || nextIndex >= items2.length) {
5967
+ return;
5968
+ }
5969
+ shouldRestoreFocusRef.current = true;
5970
+ setFocusedIndex(nextIndex);
5971
+ virtualizer.scrollToIndex(Math.floor(nextIndex / columnCount));
5972
+ };
5973
+ const handleKeyDown = (event, index) => {
5974
+ if (event.key === "Enter" || event.key === " ") {
5975
+ event.preventDefault();
5976
+ onSelect(items2[index].id);
5977
+ onClose();
5978
+ return;
5979
+ }
5980
+ if (event.key === "ArrowRight") {
5981
+ event.preventDefault();
5982
+ moveFocus(index + horizontalOffset);
5983
+ return;
5984
+ }
5985
+ if (event.key === "ArrowLeft") {
5986
+ event.preventDefault();
5987
+ moveFocus(index - horizontalOffset);
5988
+ return;
5989
+ }
5990
+ if (event.key === "ArrowDown") {
5991
+ event.preventDefault();
5992
+ moveFocus(index + columnCount);
5993
+ return;
5994
+ }
5995
+ if (event.key === "ArrowUp") {
5996
+ event.preventDefault();
5997
+ moveFocus(index - columnCount);
5998
+ return;
5999
+ }
6000
+ if (HOME_END_KEYS.has(event.key)) {
6001
+ event.preventDefault();
6002
+ if (event.ctrlKey) {
6003
+ moveFocus(event.key === "Home" ? 0 : items2.length - 1);
6004
+ return;
6005
+ }
6006
+ const rowStart = Math.floor(index / columnCount) * columnCount;
6007
+ const rowEnd = Math.min(rowStart + columnCount - 1, items2.length - 1);
6008
+ moveFocus(event.key === "Home" ? rowStart : rowEnd);
6009
+ }
6010
+ };
6011
+ return /* @__PURE__ */ React83.createElement(
6012
+ import_ui65.Box,
6013
+ {
6014
+ ref: containerRef,
6015
+ sx: {
6016
+ width: "100%",
6017
+ height: "100%",
6018
+ minWidth: 0,
6019
+ overflowX: "hidden",
6020
+ overflowY: "auto"
6021
+ }
6022
+ },
6023
+ items2.length === 0 && noResultsComponent ? noResultsComponent : /* @__PURE__ */ React83.createElement(
6024
+ import_ui65.Box,
6025
+ {
6026
+ role: "grid",
6027
+ "aria-label": (0, import_i18n33.__)("Icons", "elementor"),
6028
+ "aria-rowcount": rowCount,
6029
+ "aria-colcount": columnCount,
6030
+ "data-testid": "icon-library-grid",
6031
+ sx: {
6032
+ width: "100%",
6033
+ minWidth: 0,
6034
+ height: virtualizer.getTotalSize(),
6035
+ position: "relative"
6036
+ }
6037
+ },
6038
+ virtualizer.getVirtualItems().map((virtualRow) => {
6039
+ const startIndex = virtualRow.index * columnCount;
6040
+ const rowItems = items2.slice(startIndex, startIndex + columnCount);
6041
+ return /* @__PURE__ */ React83.createElement(
6042
+ import_ui65.Box,
6043
+ {
6044
+ key: virtualRow.key,
6045
+ role: "row",
6046
+ "aria-rowindex": virtualRow.index + 1,
6047
+ sx: {
6048
+ position: "absolute",
6049
+ top: 0,
6050
+ left: 0,
6051
+ width: "100%",
6052
+ height: virtualRow.size,
6053
+ transform: `translateY(${virtualRow.start}px)`,
6054
+ display: "grid",
6055
+ gridTemplateColumns: `repeat(${columnCount}, minmax(0, 1fr))`,
6056
+ gap: GRID_COLUMN_GAP,
6057
+ px: GRID_HORIZONTAL_PADDING,
6058
+ boxSizing: "border-box"
6059
+ }
6060
+ },
6061
+ rowItems.map((item, columnIndex) => {
6062
+ const index = startIndex + columnIndex;
6063
+ const isSelected = selectedValue === item.id;
6064
+ const tabIndex = focusedIndex === index ? 0 : -1;
6065
+ return /* @__PURE__ */ React83.createElement(
6066
+ import_ui65.Box,
6067
+ {
6068
+ key: item.id,
6069
+ role: "presentation",
6070
+ sx: { minWidth: 0, minHeight: 0, width: "100%", height: "100%" }
6071
+ },
6072
+ /* @__PURE__ */ React83.createElement(
6073
+ import_ui65.Tooltip,
6074
+ {
6075
+ title: item.label,
6076
+ placement: "top",
6077
+ enterDelay: ICON_LIBRARY_GRID_TOOLTIP_ENTER_DELAY,
6078
+ enterNextDelay: ICON_LIBRARY_GRID_TOOLTIP_ENTER_DELAY,
6079
+ disableInteractive: true,
6080
+ disableFocusListener: true
6081
+ },
6082
+ /* @__PURE__ */ React83.createElement(
6083
+ import_ui65.Box,
6084
+ {
6085
+ component: "button",
6086
+ type: "button",
6087
+ role: "gridcell",
6088
+ "aria-colindex": columnIndex + 1,
6089
+ "aria-label": item.label,
6090
+ "aria-selected": isSelected,
6091
+ tabIndex,
6092
+ ref: (node) => {
6093
+ if (node) {
6094
+ cellRefs.current.set(item.id, node);
6095
+ } else {
6096
+ cellRefs.current.delete(item.id);
6097
+ }
6098
+ },
6099
+ onClick: () => {
6100
+ onSelect(item.id);
6101
+ onClose();
6102
+ },
6103
+ onFocus: () => setFocusedIndex(index),
6104
+ onKeyDown: (event) => handleKeyDown(event, index),
6105
+ sx: {
6106
+ boxSizing: "border-box",
6107
+ appearance: "none",
6108
+ m: 0,
6109
+ width: "100%",
6110
+ height: "100%",
6111
+ minWidth: 0,
6112
+ minHeight: 0,
6113
+ display: "flex",
6114
+ alignItems: "center",
6115
+ justifyContent: "center",
6116
+ border: "1px solid",
6117
+ borderColor: "divider",
6118
+ borderRadius: 1,
6119
+ color: "text.tertiary",
6120
+ bgcolor: "transparent",
6121
+ p: 0,
6122
+ cursor: "pointer",
6123
+ font: "inherit",
6124
+ lineHeight: 0,
6125
+ overflow: "hidden",
6126
+ "&:hover, &:focus": {
6127
+ bgcolor: "action.hover"
6128
+ },
6129
+ '&[aria-selected="true"]': {
6130
+ bgcolor: "action.selected"
6131
+ },
6132
+ '&[aria-selected="true"]:hover, &[aria-selected="true"]:focus': {
6133
+ bgcolor: "action.selected"
6134
+ }
6135
+ }
6136
+ },
6137
+ item.paths.length > 0 ? /* @__PURE__ */ React83.createElement(
6138
+ FontAwesomeGlyph,
6139
+ {
6140
+ icon: item,
6141
+ size: ICON_GLYPH_SIZE,
6142
+ color: "currentColor"
6143
+ }
6144
+ ) : null
6145
+ )
6146
+ )
6147
+ );
6148
+ })
6149
+ );
6150
+ })
6151
+ )
6152
+ );
6153
+ };
6154
+
6155
+ // src/controls/icon-library/icon-library-view-toggle.tsx
6156
+ var React84 = __toESM(require("react"));
6157
+ var import_react51 = require("react");
6158
+ var import_icons22 = require("@elementor/icons");
6159
+ var import_ui66 = require("@elementor/ui");
6160
+ var import_i18n34 = require("@wordpress/i18n");
6161
+ var VIEW_MENU_WIDTH = 122;
6162
+ var IconLibraryViewToggle = ({ value, onChange }) => {
6163
+ const popupId = (0, import_react51.useId)();
6164
+ const popupState = (0, import_ui66.usePopupState)({
6165
+ variant: "popover",
6166
+ popupId
6167
+ });
6168
+ const isGrid = value === "grid";
6169
+ const ViewIcon = isGrid ? import_icons22.WidgetsIcon : import_icons22.ListIcon;
6170
+ const viewButtonLabel = isGrid ? (0, import_i18n34.__)("Grid view", "elementor") : (0, import_i18n34.__)("List view", "elementor");
6171
+ return /* @__PURE__ */ React84.createElement(React84.Fragment, null, /* @__PURE__ */ React84.createElement(
6172
+ import_ui66.Tooltip,
6173
+ {
6174
+ title: viewButtonLabel,
6175
+ placement: "top",
6176
+ enterDelay: ICON_LIBRARY_ACTION_TOOLTIP_ENTER_DELAY,
6177
+ enterNextDelay: ICON_LIBRARY_ACTION_TOOLTIP_ENTER_DELAY,
6178
+ disableInteractive: true
6179
+ },
6180
+ /* @__PURE__ */ React84.createElement(
6181
+ import_ui66.ToggleButton,
6182
+ {
6183
+ "aria-label": viewButtonLabel,
6184
+ value: "view",
6185
+ size: "tiny",
6186
+ selected: popupState.isOpen,
6187
+ sx: { flexShrink: 0 },
6188
+ ...(0, import_ui66.bindToggle)(popupState),
6189
+ "aria-expanded": popupState.isOpen
6190
+ },
6191
+ /* @__PURE__ */ React84.createElement(ViewIcon, { fontSize: "tiny" })
6192
+ )
6193
+ ), /* @__PURE__ */ React84.createElement(
6194
+ import_ui66.Menu,
6195
+ {
6196
+ ...(0, import_ui66.bindMenu)(popupState),
6197
+ MenuListProps: {
6198
+ dense: true,
6199
+ autoFocusItem: true,
6200
+ "aria-label": (0, import_i18n34.__)("View", "elementor")
6201
+ },
6202
+ sx: { "& .MuiPaper-root": { minWidth: VIEW_MENU_WIDTH } }
6203
+ },
6204
+ /* @__PURE__ */ React84.createElement(
6205
+ ViewMenuItem,
6206
+ {
6207
+ label: (0, import_i18n34.__)("List", "elementor"),
6208
+ selected: value === "list",
6209
+ onClick: () => {
6210
+ onChange("list");
6211
+ popupState.close();
6212
+ }
6213
+ }
6214
+ ),
6215
+ /* @__PURE__ */ React84.createElement(
6216
+ ViewMenuItem,
6217
+ {
6218
+ label: (0, import_i18n34.__)("Grid", "elementor"),
6219
+ selected: value === "grid",
6220
+ onClick: () => {
6221
+ onChange("grid");
6222
+ popupState.close();
6223
+ }
6224
+ }
6225
+ )
6226
+ ));
6227
+ };
6228
+ var ViewMenuItem = ({ label, selected, onClick }) => /* @__PURE__ */ React84.createElement(import_ui66.MenuItem, { role: "menuitemradio", "aria-checked": selected, selected, onClick }, /* @__PURE__ */ React84.createElement(import_ui66.Stack, { direction: "row", alignItems: "center", gap: 1, width: "100%" }, /* @__PURE__ */ React84.createElement(import_ui66.Typography, { variant: "caption", sx: { flex: 1 } }, label), selected ? /* @__PURE__ */ React84.createElement(import_icons22.CheckIcon, { fontSize: "tiny", "aria-hidden": "true" }) : null));
5846
6229
 
5847
6230
  // src/controls/icon-library/use-font-awesome-7-catalog.ts
5848
6231
  var import_query2 = require("@elementor/query");
@@ -5860,10 +6243,16 @@ function useFontAwesome7Catalog(enabled) {
5860
6243
  var ICON_LIBRARY_POPOVER_WIDTH = 300;
5861
6244
  var ICON_LIBRARY_ROW_HEIGHT = 48;
5862
6245
  var ICON_LIBRARY_SEARCH_DEBOUNCE_DELAY = 300;
6246
+ var ICON_LIBRARY_VIEW_STORAGE_KEY = "icon-library-view";
6247
+ var ICON_LIBRARY_VIEW_STORAGE_PREFIX = "editor-controls";
6248
+ var DEFAULT_ICON_LIBRARY_VIEW = "list";
6249
+ var isIconLibraryView = (value) => {
6250
+ return value === "grid" || value === "list";
6251
+ };
5863
6252
  var ICON_TILE_SIZE = 40;
5864
- var ICON_GLYPH_SIZE = 20;
6253
+ var ICON_GLYPH_SIZE2 = 20;
5865
6254
  var ICON_LIBRARY_INLINE_SPACING = 1;
5866
- var CompactIconLibraryMenuList = (0, import_ui65.styled)(import_editor_ui11.StyledMenuList)(({ theme }) => ({
6255
+ var CompactIconLibraryMenuList = (0, import_ui67.styled)(import_editor_ui11.StyledMenuList)(({ theme }) => ({
5867
6256
  '& > [role="option"]': {
5868
6257
  padding: theme.spacing(0.75, ICON_LIBRARY_INLINE_SPACING)
5869
6258
  }
@@ -5882,13 +6271,18 @@ var IconLibraryPopover = ({
5882
6271
  handleChange: handleSearchChange,
5883
6272
  setImmediateValue: setSearchValue
5884
6273
  } = (0, import_utils6.useDebounceState)({ delay: ICON_LIBRARY_SEARCH_DEBOUNCE_DELAY });
5885
- const [activeLibraries, setActiveLibraries] = (0, import_react50.useState)([]);
6274
+ const [activeLibraries, setActiveLibraries] = (0, import_react52.useState)([]);
6275
+ const [storedView, setStoredView] = (0, import_session2.useSessionStorage)(
6276
+ ICON_LIBRARY_VIEW_STORAGE_KEY,
6277
+ ICON_LIBRARY_VIEW_STORAGE_PREFIX
6278
+ );
6279
+ const view = isIconLibraryView(storedView) ? storedView : DEFAULT_ICON_LIBRARY_VIEW;
5886
6280
  const { data: icons = [], isLoading } = useFontAwesome7Catalog(open);
5887
- const items2 = (0, import_react50.useMemo)(
6281
+ const items2 = (0, import_react52.useMemo)(
5888
6282
  () => createIconLibraryItems(icons, searchValue, activeLibraries),
5889
6283
  [activeLibraries, icons, searchValue]
5890
6284
  );
5891
- const selectedValue = (0, import_react50.useMemo)(
6285
+ const selectedValue = (0, import_react52.useMemo)(
5892
6286
  () => findFontAwesome7Icon(icons, selectedIconClass, selectedIconLibrary)?.id,
5893
6287
  [icons, selectedIconClass, selectedIconLibrary]
5894
6288
  );
@@ -5910,24 +6304,25 @@ var IconLibraryPopover = ({
5910
6304
  const handleClearSearch = () => {
5911
6305
  setSearchValue("");
5912
6306
  };
5913
- return /* @__PURE__ */ React83.createElement(import_editor_ui11.PopoverBody, { width, fillWidth: true, id: "icon-library" }, /* @__PURE__ */ React83.createElement(
6307
+ return /* @__PURE__ */ React85.createElement(import_editor_ui11.PopoverBody, { width, fillWidth: true, id: "icon-library" }, /* @__PURE__ */ React85.createElement(
5914
6308
  import_editor_ui11.PopoverHeader,
5915
6309
  {
5916
- title: (0, import_i18n33.__)("Icon library", "elementor"),
6310
+ title: (0, import_i18n35.__)("Icon library", "elementor"),
5917
6311
  onClose: handleClose,
5918
- icon: /* @__PURE__ */ React83.createElement(import_icons22.ComponentsIcon, { fontSize: "tiny" }),
6312
+ icon: /* @__PURE__ */ React85.createElement(import_icons23.ComponentsIcon, { fontSize: "tiny" }),
6313
+ actions: [/* @__PURE__ */ React85.createElement(IconLibraryViewToggle, { key: "view", value: view, onChange: setStoredView })],
5919
6314
  sx: { pl: ICON_LIBRARY_INLINE_SPACING, pr: 0.5 }
5920
6315
  }
5921
- ), /* @__PURE__ */ React83.createElement(import_ui65.Stack, { direction: "row", alignItems: "center", gap: 1, sx: { px: ICON_LIBRARY_INLINE_SPACING, pb: 1 } }, /* @__PURE__ */ React83.createElement(
6316
+ ), /* @__PURE__ */ React85.createElement(import_ui67.Stack, { direction: "row", alignItems: "center", gap: 1, sx: { px: ICON_LIBRARY_INLINE_SPACING, pb: 1 } }, /* @__PURE__ */ React85.createElement(
5922
6317
  import_editor_ui11.SearchField,
5923
6318
  {
5924
6319
  value: searchInputValue,
5925
6320
  onSearch: handleSearchChange,
5926
- placeholder: (0, import_i18n33.__)("Search", "elementor"),
6321
+ placeholder: (0, import_i18n35.__)("Search", "elementor"),
5927
6322
  id: "icon-library-search",
5928
6323
  sx: { flex: 1, px: 0, pb: 0 }
5929
6324
  }
5930
- ), /* @__PURE__ */ React83.createElement(IconLibraryFilter, { value: activeLibraries, onChange: setActiveLibraries })), /* @__PURE__ */ React83.createElement(import_ui65.Divider, null), /* @__PURE__ */ React83.createElement(import_ui65.Box, { sx: { flex: 1, overflow: "auto", minHeight: 0 } }, /* @__PURE__ */ React83.createElement(
6325
+ ), /* @__PURE__ */ React85.createElement(IconLibraryFilter, { value: activeLibraries, onChange: setActiveLibraries })), /* @__PURE__ */ React85.createElement(import_ui67.Divider, null), /* @__PURE__ */ React85.createElement(import_ui67.Box, { sx: { flex: 1, overflow: "hidden", minHeight: 0, minWidth: 0 } }, /* @__PURE__ */ React85.createElement(
5931
6326
  IconLibraryContent,
5932
6327
  {
5933
6328
  isLoading,
@@ -5935,6 +6330,7 @@ var IconLibraryPopover = ({
5935
6330
  selectedValue,
5936
6331
  searchValue,
5937
6332
  isCatalogAvailable: icons.length > 0,
6333
+ view,
5938
6334
  onSelect: handleSelect,
5939
6335
  onClose: handleClose,
5940
6336
  onClearSearch: handleClearSearch
@@ -5947,14 +6343,35 @@ var IconLibraryContent = ({
5947
6343
  selectedValue,
5948
6344
  searchValue,
5949
6345
  isCatalogAvailable,
6346
+ view,
5950
6347
  onSelect,
5951
6348
  onClose,
5952
6349
  onClearSearch
5953
6350
  }) => {
5954
6351
  if (isLoading) {
5955
- return /* @__PURE__ */ React83.createElement(IconLibraryLoadingState, null);
6352
+ return /* @__PURE__ */ React85.createElement(IconLibraryLoadingState, null);
5956
6353
  }
5957
- return /* @__PURE__ */ React83.createElement(
6354
+ const emptyState = /* @__PURE__ */ React85.createElement(
6355
+ IconLibraryEmptyState,
6356
+ {
6357
+ searchValue,
6358
+ isCatalogAvailable,
6359
+ onClear: onClearSearch
6360
+ }
6361
+ );
6362
+ if (view === "grid") {
6363
+ return /* @__PURE__ */ React85.createElement(import_ui67.Box, { sx: { width: "100%", height: "100%", minWidth: 0, minHeight: 0 } }, /* @__PURE__ */ React85.createElement(
6364
+ IconLibraryGrid,
6365
+ {
6366
+ items: items2,
6367
+ selectedValue,
6368
+ onSelect,
6369
+ onClose,
6370
+ noResultsComponent: emptyState
6371
+ }
6372
+ ));
6373
+ }
6374
+ return /* @__PURE__ */ React85.createElement(
5958
6375
  import_editor_ui11.PopoverMenuList,
5959
6376
  {
5960
6377
  items: items2,
@@ -5964,33 +6381,26 @@ var IconLibraryContent = ({
5964
6381
  onClose,
5965
6382
  itemHeight: ICON_LIBRARY_ROW_HEIGHT,
5966
6383
  menuItemContentTemplate: IconLibraryRow,
5967
- noResultsComponent: /* @__PURE__ */ React83.createElement(
5968
- IconLibraryEmptyState,
5969
- {
5970
- searchValue,
5971
- isCatalogAvailable,
5972
- onClear: onClearSearch
5973
- }
5974
- ),
6384
+ noResultsComponent: emptyState,
5975
6385
  "data-testid": "icon-library-list"
5976
6386
  }
5977
6387
  );
5978
6388
  };
5979
- var IconLibraryLoadingState = () => /* @__PURE__ */ React83.createElement(import_ui65.Stack, { alignItems: "center", justifyContent: "center", height: "100%" }, /* @__PURE__ */ React83.createElement(import_ui65.CircularProgress, { role: "progressbar", size: 24 }));
6389
+ var IconLibraryLoadingState = () => /* @__PURE__ */ React85.createElement(import_ui67.Stack, { alignItems: "center", justifyContent: "center", height: "100%" }, /* @__PURE__ */ React85.createElement(import_ui67.CircularProgress, { role: "progressbar", size: 24 }));
5980
6390
  var IconLibraryEmptyState = ({
5981
6391
  searchValue,
5982
6392
  isCatalogAvailable,
5983
6393
  onClear
5984
6394
  }) => {
5985
6395
  if (!isCatalogAvailable) {
5986
- return /* @__PURE__ */ React83.createElement(CatalogUnavailable, null);
6396
+ return /* @__PURE__ */ React85.createElement(CatalogUnavailable, null);
5987
6397
  }
5988
- return /* @__PURE__ */ React83.createElement(NoResults, { searchValue, onClear });
6398
+ return /* @__PURE__ */ React85.createElement(NoResults, { searchValue, onClear });
5989
6399
  };
5990
6400
  var IconLibraryRow = (item) => {
5991
6401
  const icon = item;
5992
- return /* @__PURE__ */ React83.createElement(import_ui65.Stack, { direction: "row", alignItems: "center", gap: 1, sx: { width: "100%" } }, /* @__PURE__ */ React83.createElement(
5993
- import_ui65.Box,
6402
+ return /* @__PURE__ */ React85.createElement(import_ui67.Stack, { direction: "row", alignItems: "center", gap: 1, sx: { width: "100%" } }, /* @__PURE__ */ React85.createElement(
6403
+ import_ui67.Box,
5994
6404
  {
5995
6405
  sx: {
5996
6406
  width: ICON_TILE_SIZE,
@@ -6005,11 +6415,11 @@ var IconLibraryRow = (item) => {
6005
6415
  flexShrink: 0
6006
6416
  }
6007
6417
  },
6008
- icon.paths.length > 0 ? /* @__PURE__ */ React83.createElement(FontAwesomeGlyph, { icon, size: ICON_GLYPH_SIZE, color: "currentColor" }) : null
6009
- ), /* @__PURE__ */ React83.createElement(import_ui65.Typography, { variant: "caption", color: "text.primary", noWrap: true }, icon.label));
6418
+ icon.paths.length > 0 ? /* @__PURE__ */ React85.createElement(FontAwesomeGlyph, { icon, size: ICON_GLYPH_SIZE2, color: "currentColor" }) : null
6419
+ ), /* @__PURE__ */ React85.createElement(import_ui67.Typography, { variant: "caption", color: "text.primary", noWrap: true }, icon.label));
6010
6420
  };
6011
- var CatalogUnavailable = () => /* @__PURE__ */ React83.createElement(import_ui65.Stack, { alignItems: "center", justifyContent: "center", height: "100%", p: 2.5, gap: 1.5 }, /* @__PURE__ */ React83.createElement(import_icons22.ComponentsIcon, { fontSize: "large" }), /* @__PURE__ */ React83.createElement(import_ui65.Typography, { align: "center", variant: "subtitle2", color: "text.secondary" }, (0, import_i18n33.__)("Icons couldn't be loaded.", "elementor")));
6012
- var NoResults = ({ searchValue, onClear }) => /* @__PURE__ */ React83.createElement(import_ui65.Stack, { alignItems: "center", justifyContent: "center", height: "100%", p: 2.5, gap: 1.5 }, /* @__PURE__ */ React83.createElement(import_icons22.ComponentsIcon, { fontSize: "large" }), /* @__PURE__ */ React83.createElement(import_ui65.Typography, { align: "center", variant: "subtitle2", color: "text.secondary" }, (0, import_i18n33.__)("Sorry, nothing matched", "elementor")), searchValue ? /* @__PURE__ */ React83.createElement(React83.Fragment, null, /* @__PURE__ */ React83.createElement(import_ui65.Typography, { align: "center", variant: "subtitle2", color: "text.secondary", noWrap: true, sx: { maxWidth: "80%" } }, "\u201C", searchValue, "\u201D."), /* @__PURE__ */ React83.createElement(import_ui65.Link, { color: "secondary", variant: "caption", component: "button", type: "button", onClick: onClear }, (0, import_i18n33.__)("Clear & try again", "elementor"))) : null);
6421
+ var CatalogUnavailable = () => /* @__PURE__ */ React85.createElement(import_ui67.Stack, { alignItems: "center", justifyContent: "center", height: "100%", p: 2.5, gap: 1.5 }, /* @__PURE__ */ React85.createElement(import_icons23.ComponentsIcon, { fontSize: "large" }), /* @__PURE__ */ React85.createElement(import_ui67.Typography, { align: "center", variant: "subtitle2", color: "text.secondary" }, (0, import_i18n35.__)("Icons couldn't be loaded.", "elementor")));
6422
+ var NoResults = ({ searchValue, onClear }) => /* @__PURE__ */ React85.createElement(import_ui67.Stack, { alignItems: "center", justifyContent: "center", height: "100%", p: 2.5, gap: 1.5 }, /* @__PURE__ */ React85.createElement(import_icons23.ComponentsIcon, { fontSize: "large" }), /* @__PURE__ */ React85.createElement(import_ui67.Typography, { align: "center", variant: "subtitle2", color: "text.secondary" }, (0, import_i18n35.__)("Sorry, nothing matched", "elementor")), searchValue ? /* @__PURE__ */ React85.createElement(React85.Fragment, null, /* @__PURE__ */ React85.createElement(import_ui67.Typography, { align: "center", variant: "subtitle2", color: "text.secondary", noWrap: true, sx: { maxWidth: "80%" } }, "\u201C", searchValue, "\u201D."), /* @__PURE__ */ React85.createElement(import_ui67.Link, { color: "secondary", variant: "caption", component: "button", type: "button", onClick: onClear }, (0, import_i18n35.__)("Clear & try again", "elementor"))) : null);
6013
6423
  var createIconLibraryItems = (icons, searchValue, libraries) => filterFontAwesome7Icons(icons, searchValue, libraries).map((icon) => ({
6014
6424
  ...icon,
6015
6425
  type: "item",
@@ -6026,10 +6436,10 @@ function createIconPropValue(icon, library) {
6026
6436
  }
6027
6437
 
6028
6438
  // src/controls/svg-media-overlay.tsx
6029
- var React84 = __toESM(require("react"));
6030
- var import_icons23 = require("@elementor/icons");
6031
- var import_ui66 = require("@elementor/ui");
6032
- var import_i18n34 = require("@wordpress/i18n");
6439
+ var React86 = __toESM(require("react"));
6440
+ var import_icons24 = require("@elementor/icons");
6441
+ var import_ui68 = require("@elementor/ui");
6442
+ var import_i18n36 = require("@wordpress/i18n");
6033
6443
  var SVG_MEDIA_CONTROL_CONTAINER_TEST_ID = "svg-media-control-container";
6034
6444
  var SVG_MEDIA_ACTION_GROUP_TEST_ID = "svg-media-action-group";
6035
6445
  var MEDIA_ACTION_PADDING_Y = 0.75;
@@ -6039,7 +6449,7 @@ var svgButtonSx = {
6039
6449
  px: MEDIA_ACTION_PADDING_X,
6040
6450
  py: MEDIA_ACTION_PADDING_Y
6041
6451
  };
6042
- var MediaActionGroup = (0, import_ui66.styled)(import_ui66.Stack)(({ theme }) => ({
6452
+ var MediaActionGroup = (0, import_ui68.styled)(import_ui68.Stack)(({ theme }) => ({
6043
6453
  display: "inline-flex",
6044
6454
  flexDirection: "row",
6045
6455
  alignItems: "stretch",
@@ -6061,19 +6471,19 @@ var SvgMediaOverlay = ({
6061
6471
  onOpenIconLibrary,
6062
6472
  infotipTitle,
6063
6473
  infotipDescription
6064
- }) => /* @__PURE__ */ React84.createElement(import_ui66.Stack, { alignItems: "center", gap: 1 }, /* @__PURE__ */ React84.createElement(MediaActionGroup, { ref: buttonGroupRef, direction: "row", "data-testid": SVG_MEDIA_ACTION_GROUP_TEST_ID }, /* @__PURE__ */ React84.createElement(
6065
- import_ui66.Button,
6474
+ }) => /* @__PURE__ */ React86.createElement(import_ui68.Stack, { alignItems: "center", gap: 1 }, /* @__PURE__ */ React86.createElement(MediaActionGroup, { ref: buttonGroupRef, direction: "row", "data-testid": SVG_MEDIA_ACTION_GROUP_TEST_ID }, /* @__PURE__ */ React86.createElement(
6475
+ import_ui68.Button,
6066
6476
  {
6067
6477
  size: "tiny",
6068
6478
  color: "inherit",
6069
6479
  variant: "text",
6070
6480
  onClick: onSelectSvg,
6071
- "aria-label": (0, import_i18n34.__)("Select", "elementor"),
6481
+ "aria-label": (0, import_i18n36.__)("Select", "elementor"),
6072
6482
  sx: svgButtonSx
6073
6483
  },
6074
- (0, import_i18n34.__)("Select", "elementor")
6075
- ), /* @__PURE__ */ React84.createElement(
6076
- import_ui66.Box,
6484
+ (0, import_i18n36.__)("Select", "elementor")
6485
+ ), /* @__PURE__ */ React86.createElement(
6486
+ import_ui68.Box,
6077
6487
  {
6078
6488
  sx: {
6079
6489
  width: "1px",
@@ -6082,22 +6492,22 @@ var SvgMediaOverlay = ({
6082
6492
  flexShrink: 0
6083
6493
  }
6084
6494
  }
6085
- ), /* @__PURE__ */ React84.createElement(
6495
+ ), /* @__PURE__ */ React86.createElement(
6086
6496
  ConditionalControlInfotip,
6087
6497
  {
6088
6498
  title: infotipTitle,
6089
6499
  description: infotipDescription,
6090
6500
  isEnabled: !isAdmin
6091
6501
  },
6092
- /* @__PURE__ */ React84.createElement(import_ui66.Box, { component: "span", sx: { display: "inline-flex" } }, /* @__PURE__ */ React84.createElement(UploadControl, { isAdmin, onUpload }))
6093
- )), showIconLibrary ? /* @__PURE__ */ React84.createElement(
6094
- import_ui66.Button,
6502
+ /* @__PURE__ */ React86.createElement(import_ui68.Box, { component: "span", sx: { display: "inline-flex" } }, /* @__PURE__ */ React86.createElement(UploadControl, { isAdmin, onUpload }))
6503
+ )), showIconLibrary ? /* @__PURE__ */ React86.createElement(
6504
+ import_ui68.Button,
6095
6505
  {
6096
6506
  size: "tiny",
6097
6507
  color: "inherit",
6098
6508
  variant: "text",
6099
- startIcon: /* @__PURE__ */ React84.createElement(import_icons23.LibraryIcon, { sx: { height: "18px", width: "16px" } }),
6100
- "aria-label": (0, import_i18n34.__)("Icon library", "elementor"),
6509
+ startIcon: /* @__PURE__ */ React86.createElement(import_icons24.LibraryIcon, { sx: { height: "18px", width: "16px" } }),
6510
+ "aria-label": (0, import_i18n36.__)("Icon library", "elementor"),
6101
6511
  onClick: onOpenIconLibrary,
6102
6512
  sx: {
6103
6513
  height: "28px",
@@ -6105,20 +6515,20 @@ var SvgMediaOverlay = ({
6105
6515
  ".MuiButton-icon": { ml: 0 }
6106
6516
  }
6107
6517
  },
6108
- /* @__PURE__ */ React84.createElement(import_ui66.Typography, null, (0, import_i18n34.__)("Icon library", "elementor"))
6518
+ /* @__PURE__ */ React86.createElement(import_ui68.Typography, null, (0, import_i18n36.__)("Icon library", "elementor"))
6109
6519
  ) : null);
6110
6520
  var UploadControl = ({ isAdmin, onUpload }) => {
6111
6521
  if (isAdmin) {
6112
- return /* @__PURE__ */ React84.createElement(UploadButton, { sx: svgButtonSx, onClick: onUpload });
6522
+ return /* @__PURE__ */ React86.createElement(UploadButton, { sx: svgButtonSx, onClick: onUpload });
6113
6523
  }
6114
- return /* @__PURE__ */ React84.createElement(import_ui66.ThemeProvider, { colorScheme: "dark" }, /* @__PURE__ */ React84.createElement(UploadButton, { disabled: true, sx: svgButtonSx }));
6524
+ return /* @__PURE__ */ React86.createElement(import_ui68.ThemeProvider, { colorScheme: "dark" }, /* @__PURE__ */ React86.createElement(UploadButton, { disabled: true, sx: svgButtonSx }));
6115
6525
  };
6116
6526
  var UploadButton = ({
6117
6527
  disabled = false,
6118
6528
  sx,
6119
6529
  onClick
6120
- }) => /* @__PURE__ */ React84.createElement(
6121
- import_ui66.Button,
6530
+ }) => /* @__PURE__ */ React86.createElement(
6531
+ import_ui68.Button,
6122
6532
  {
6123
6533
  sx,
6124
6534
  size: "tiny",
@@ -6126,15 +6536,15 @@ var UploadButton = ({
6126
6536
  variant: "text",
6127
6537
  disabled,
6128
6538
  onClick,
6129
- "aria-label": (0, import_i18n34.__)("Upload", "elementor")
6539
+ "aria-label": (0, import_i18n36.__)("Upload", "elementor")
6130
6540
  },
6131
- /* @__PURE__ */ React84.createElement(import_icons23.UploadIcon, null)
6541
+ /* @__PURE__ */ React86.createElement(import_icons24.UploadIcon, null)
6132
6542
  );
6133
6543
 
6134
6544
  // src/controls/svg-media-preview.tsx
6135
- var React85 = __toESM(require("react"));
6136
- var import_ui67 = require("@elementor/ui");
6137
- var import_i18n35 = require("@wordpress/i18n");
6545
+ var React87 = __toESM(require("react"));
6546
+ var import_ui69 = require("@elementor/ui");
6547
+ var import_i18n37 = require("@wordpress/i18n");
6138
6548
  var ICON_PREVIEW_SIZE = 50;
6139
6549
  var ICON_PREVIEW_COLOR = "#000000";
6140
6550
  var SvgMediaPreview = ({ isFetching, src, iconClassName, iconLibrary }) => {
@@ -6142,27 +6552,27 @@ var SvgMediaPreview = ({ isFetching, src, iconClassName, iconLibrary }) => {
6142
6552
  const { data: icons = [], isLoading } = useFontAwesome7Catalog(shouldLoadIconCatalog);
6143
6553
  const selectedIcon = findFontAwesome7Icon(icons, iconClassName, iconLibrary);
6144
6554
  if (isFetching || shouldLoadIconCatalog && isLoading) {
6145
- return /* @__PURE__ */ React85.createElement(import_ui67.CircularProgress, { role: "progressbar" });
6555
+ return /* @__PURE__ */ React87.createElement(import_ui69.CircularProgress, { role: "progressbar" });
6146
6556
  }
6147
6557
  if (selectedIcon) {
6148
- return /* @__PURE__ */ React85.createElement(IconPreview, { icon: selectedIcon });
6558
+ return /* @__PURE__ */ React87.createElement(IconPreview, { icon: selectedIcon });
6149
6559
  }
6150
6560
  if (shouldLoadIconCatalog) {
6151
- return /* @__PURE__ */ React85.createElement(IconPreviewPlaceholder, null);
6561
+ return /* @__PURE__ */ React87.createElement(IconPreviewPlaceholder, null);
6152
6562
  }
6153
- return /* @__PURE__ */ React85.createElement(SvgPreview, { src });
6563
+ return /* @__PURE__ */ React87.createElement(SvgPreview, { src });
6154
6564
  };
6155
- var IconPreview = ({ icon }) => /* @__PURE__ */ React85.createElement(import_ui67.Box, { sx: { color: ICON_PREVIEW_COLOR } }, /* @__PURE__ */ React85.createElement(
6565
+ var IconPreview = ({ icon }) => /* @__PURE__ */ React87.createElement(import_ui69.Box, { sx: { color: ICON_PREVIEW_COLOR } }, /* @__PURE__ */ React87.createElement(
6156
6566
  FontAwesomeGlyph,
6157
6567
  {
6158
6568
  icon,
6159
6569
  size: ICON_PREVIEW_SIZE,
6160
6570
  color: ICON_PREVIEW_COLOR,
6161
- label: (0, import_i18n35.__)("Preview icon", "elementor")
6571
+ label: (0, import_i18n37.__)("Preview icon", "elementor")
6162
6572
  }
6163
6573
  ));
6164
- var IconPreviewPlaceholder = () => /* @__PURE__ */ React85.createElement(
6165
- import_ui67.Box,
6574
+ var IconPreviewPlaceholder = () => /* @__PURE__ */ React87.createElement(
6575
+ import_ui69.Box,
6166
6576
  {
6167
6577
  "aria-hidden": true,
6168
6578
  sx: {
@@ -6172,12 +6582,12 @@ var IconPreviewPlaceholder = () => /* @__PURE__ */ React85.createElement(
6172
6582
  }
6173
6583
  }
6174
6584
  );
6175
- var SvgPreview = ({ src }) => /* @__PURE__ */ React85.createElement(
6176
- import_ui67.CardMedia,
6585
+ var SvgPreview = ({ src }) => /* @__PURE__ */ React87.createElement(
6586
+ import_ui69.CardMedia,
6177
6587
  {
6178
6588
  component: "img",
6179
6589
  image: src,
6180
- alt: (0, import_i18n35.__)("Preview SVG", "elementor"),
6590
+ alt: (0, import_i18n37.__)("Preview SVG", "elementor"),
6181
6591
  sx: { maxHeight: "140px", width: `${ICON_PREVIEW_SIZE}px`, color: ICON_PREVIEW_COLOR }
6182
6592
  }
6183
6593
  );
@@ -6187,7 +6597,7 @@ var TILE_SIZE = 8;
6187
6597
  var TILE_WHITE = "transparent";
6188
6598
  var TILE_BLACK = "#c1c1c1";
6189
6599
  var TILES_GRADIENT_FORMULA = `linear-gradient(45deg, ${TILE_BLACK} 25%, ${TILE_WHITE} 0, ${TILE_WHITE} 75%, ${TILE_BLACK} 0, ${TILE_BLACK})`;
6190
- var StyledCard = (0, import_ui68.styled)(import_ui68.Card)`
6600
+ var StyledCard = (0, import_ui70.styled)(import_ui70.Card)`
6191
6601
  position: relative;
6192
6602
  background-color: white;
6193
6603
  background-image: ${TILES_GRADIENT_FORMULA}, ${TILES_GRADIENT_FORMULA};
@@ -6198,7 +6608,7 @@ var StyledCard = (0, import_ui68.styled)(import_ui68.Card)`
6198
6608
  border: none;
6199
6609
  `;
6200
6610
  var PREVIEW_ICON_COLOR = "#000000";
6201
- var StyledCardMediaContainer = (0, import_ui68.styled)(import_ui68.Stack)`
6611
+ var StyledCardMediaContainer = (0, import_ui70.styled)(import_ui70.Stack)`
6202
6612
  position: relative;
6203
6613
  height: 140px;
6204
6614
  object-fit: contain;
@@ -6218,11 +6628,11 @@ var SvgMediaControl = createControl(({ showIconLibrary = false }) => {
6218
6628
  const { data: attachment, isFetching } = (0, import_wp_media2.useWpMediaAttachment)(id?.value || null);
6219
6629
  const src = attachment?.url ?? url?.value ?? null;
6220
6630
  const { data: allowSvgUpload } = useUnfilteredFilesUpload();
6221
- const [unfilteredModalOpenState, setUnfilteredModalOpenState] = (0, import_react51.useState)(false);
6222
- const iconLibraryPopoverState = (0, import_ui68.usePopupState)({ variant: "popover" });
6223
- const controlContainerRef = (0, import_react51.useRef)(null);
6224
- const buttonGroupRef = (0, import_react51.useRef)(null);
6225
- const [iconLibraryAnchor, setIconLibraryAnchor] = (0, import_react51.useState)(null);
6631
+ const [unfilteredModalOpenState, setUnfilteredModalOpenState] = (0, import_react53.useState)(false);
6632
+ const iconLibraryPopoverState = (0, import_ui70.usePopupState)({ variant: "popover" });
6633
+ const controlContainerRef = (0, import_react53.useRef)(null);
6634
+ const buttonGroupRef = (0, import_react53.useRef)(null);
6635
+ const [iconLibraryAnchor, setIconLibraryAnchor] = (0, import_react53.useState)(null);
6226
6636
  const { isAdmin } = (0, import_editor_current_user.useCurrentUserCapabilities)();
6227
6637
  const selectedIconClass = showIconLibrary && typeof iconValue?.value?.value === "string" ? iconValue.value.value : null;
6228
6638
  const selectedIconLibrary = showIconLibrary && typeof iconValue?.library?.value === "string" ? iconValue.library.value : null;
@@ -6274,7 +6684,7 @@ var SvgMediaControl = createControl(({ showIconLibrary = false }) => {
6274
6684
  setIconLibraryAnchor(anchor);
6275
6685
  iconLibraryPopoverState.open(event);
6276
6686
  };
6277
- (0, import_react51.useEffect)(() => {
6687
+ (0, import_react53.useEffect)(() => {
6278
6688
  if (!iconLibraryPopoverState.isOpen) {
6279
6689
  return;
6280
6690
  }
@@ -6290,8 +6700,8 @@ var SvgMediaControl = createControl(({ showIconLibrary = false }) => {
6290
6700
  };
6291
6701
  }, [iconLibraryPopoverState.isOpen]);
6292
6702
  const iconLibraryWidth = iconLibraryAnchor?.width ?? ICON_LIBRARY_POPOVER_WIDTH;
6293
- return /* @__PURE__ */ React86.createElement(import_ui68.Stack, { gap: 1, "aria-label": (0, import_i18n36.__)("SVG control", "elementor") }, /* @__PURE__ */ React86.createElement(EnableUnfilteredModal, { open: unfilteredModalOpenState, onClose: handleCloseUnfilteredModal }), showIconLibrary && iconLibraryAnchor ? /* @__PURE__ */ React86.createElement(
6294
- import_ui68.Popover,
6703
+ return /* @__PURE__ */ React88.createElement(import_ui70.Stack, { gap: 1, "aria-label": (0, import_i18n38.__)("SVG control", "elementor") }, /* @__PURE__ */ React88.createElement(EnableUnfilteredModal, { open: unfilteredModalOpenState, onClose: handleCloseUnfilteredModal }), showIconLibrary && iconLibraryAnchor ? /* @__PURE__ */ React88.createElement(
6704
+ import_ui70.Popover,
6295
6705
  {
6296
6706
  disableScrollLock: true,
6297
6707
  open: iconLibraryPopoverState.isOpen,
@@ -6310,7 +6720,7 @@ var SvgMediaControl = createControl(({ showIconLibrary = false }) => {
6310
6720
  }
6311
6721
  }
6312
6722
  },
6313
- /* @__PURE__ */ React86.createElement(
6723
+ /* @__PURE__ */ React88.createElement(
6314
6724
  IconLibraryPopover,
6315
6725
  {
6316
6726
  open: iconLibraryPopoverState.isOpen,
@@ -6321,14 +6731,14 @@ var SvgMediaControl = createControl(({ showIconLibrary = false }) => {
6321
6731
  width: iconLibraryWidth
6322
6732
  }
6323
6733
  )
6324
- ) : null, /* @__PURE__ */ React86.createElement(
6325
- import_ui68.Box,
6734
+ ) : null, /* @__PURE__ */ React88.createElement(
6735
+ import_ui70.Box,
6326
6736
  {
6327
6737
  ref: controlContainerRef,
6328
6738
  "data-testid": SVG_MEDIA_CONTROL_CONTAINER_TEST_ID,
6329
6739
  sx: { width: "100%" }
6330
6740
  },
6331
- /* @__PURE__ */ React86.createElement(ControlActions, null, /* @__PURE__ */ React86.createElement(StyledCard, { variant: "outlined" }, /* @__PURE__ */ React86.createElement(StyledCardMediaContainer, null, /* @__PURE__ */ React86.createElement(
6741
+ /* @__PURE__ */ React88.createElement(ControlActions, null, /* @__PURE__ */ React88.createElement(StyledCard, { variant: "outlined" }, /* @__PURE__ */ React88.createElement(StyledCardMediaContainer, null, /* @__PURE__ */ React88.createElement(
6332
6742
  SvgMediaPreview,
6333
6743
  {
6334
6744
  isFetching,
@@ -6336,8 +6746,8 @@ var SvgMediaControl = createControl(({ showIconLibrary = false }) => {
6336
6746
  iconClassName: selectedIconClass,
6337
6747
  iconLibrary: selectedIconLibrary
6338
6748
  }
6339
- )), /* @__PURE__ */ React86.createElement(
6340
- import_ui68.CardOverlay,
6749
+ )), /* @__PURE__ */ React88.createElement(
6750
+ import_ui70.CardOverlay,
6341
6751
  {
6342
6752
  sx: {
6343
6753
  "&:hover": {
@@ -6345,7 +6755,7 @@ var SvgMediaControl = createControl(({ showIconLibrary = false }) => {
6345
6755
  }
6346
6756
  }
6347
6757
  },
6348
- /* @__PURE__ */ React86.createElement(
6758
+ /* @__PURE__ */ React88.createElement(
6349
6759
  SvgMediaOverlay,
6350
6760
  {
6351
6761
  isAdmin,
@@ -6354,22 +6764,22 @@ var SvgMediaControl = createControl(({ showIconLibrary = false }) => {
6354
6764
  onSelectSvg: handleSelectSvg,
6355
6765
  onUpload: handleUpload,
6356
6766
  onOpenIconLibrary: handleOpenIconLibrary,
6357
- infotipTitle: (0, import_i18n36.__)("Sorry, you can't upload that file yet.", "elementor"),
6358
- infotipDescription: /* @__PURE__ */ React86.createElement(UnfilteredUploadInfotipDescription, null)
6767
+ infotipTitle: (0, import_i18n38.__)("Sorry, you can't upload that file yet.", "elementor"),
6768
+ infotipDescription: /* @__PURE__ */ React88.createElement(UnfilteredUploadInfotipDescription, null)
6359
6769
  }
6360
6770
  )
6361
6771
  )))
6362
6772
  ));
6363
6773
  });
6364
- var UnfilteredUploadInfotipDescription = () => /* @__PURE__ */ React86.createElement(React86.Fragment, null, (0, import_i18n36.__)("To upload them anyway, ask the site administrator to enable unfiltered", "elementor"), /* @__PURE__ */ React86.createElement("br", null), (0, import_i18n36.__)("file uploads.", "elementor"));
6774
+ var UnfilteredUploadInfotipDescription = () => /* @__PURE__ */ React88.createElement(React88.Fragment, null, (0, import_i18n38.__)("To upload them anyway, ask the site administrator to enable unfiltered", "elementor"), /* @__PURE__ */ React88.createElement("br", null), (0, import_i18n38.__)("file uploads.", "elementor"));
6365
6775
 
6366
6776
  // src/controls/video-media-control.tsx
6367
- var React87 = __toESM(require("react"));
6777
+ var React89 = __toESM(require("react"));
6368
6778
  var import_editor_props36 = require("@elementor/editor-props");
6369
- var import_icons24 = require("@elementor/icons");
6370
- var import_ui69 = require("@elementor/ui");
6779
+ var import_icons25 = require("@elementor/icons");
6780
+ var import_ui71 = require("@elementor/ui");
6371
6781
  var import_wp_media3 = require("@elementor/wp-media");
6372
- var import_i18n37 = require("@wordpress/i18n");
6782
+ var import_i18n39 = require("@wordpress/i18n");
6373
6783
  var PLACEHOLDER_IMAGE = window.elementorCommon?.config?.urls?.assets + "/shapes/play-triangle.svg";
6374
6784
  var VideoMediaControl = createControl(() => {
6375
6785
  const { value, setValue, propType } = useBoundProp(import_editor_props36.videoSrcPropTypeUtil);
@@ -6399,8 +6809,8 @@ var VideoMediaControl = createControl(() => {
6399
6809
  });
6400
6810
  }
6401
6811
  });
6402
- return /* @__PURE__ */ React87.createElement(ControlActions, null, /* @__PURE__ */ React87.createElement(import_ui69.Card, { variant: "outlined" }, /* @__PURE__ */ React87.createElement(
6403
- import_ui69.CardMedia,
6812
+ return /* @__PURE__ */ React89.createElement(ControlActions, null, /* @__PURE__ */ React89.createElement(import_ui71.Card, { variant: "outlined" }, /* @__PURE__ */ React89.createElement(
6813
+ import_ui71.CardMedia,
6404
6814
  {
6405
6815
  sx: {
6406
6816
  height: 140,
@@ -6414,46 +6824,46 @@ var VideoMediaControl = createControl(() => {
6414
6824
  alignItems: "center"
6415
6825
  }
6416
6826
  },
6417
- /* @__PURE__ */ React87.createElement(VideoPreview, { isFetching, videoUrl })
6418
- ), /* @__PURE__ */ React87.createElement(import_ui69.CardOverlay, null, /* @__PURE__ */ React87.createElement(import_ui69.Stack, { gap: 1 }, /* @__PURE__ */ React87.createElement(
6419
- import_ui69.Button,
6827
+ /* @__PURE__ */ React89.createElement(VideoPreview, { isFetching, videoUrl })
6828
+ ), /* @__PURE__ */ React89.createElement(import_ui71.CardOverlay, null, /* @__PURE__ */ React89.createElement(import_ui71.Stack, { gap: 1 }, /* @__PURE__ */ React89.createElement(
6829
+ import_ui71.Button,
6420
6830
  {
6421
6831
  size: "tiny",
6422
6832
  color: "inherit",
6423
6833
  variant: "outlined",
6424
6834
  onClick: () => open({ mode: "browse" })
6425
6835
  },
6426
- (0, import_i18n37.__)("Select video", "elementor")
6427
- ), /* @__PURE__ */ React87.createElement(
6428
- import_ui69.Button,
6836
+ (0, import_i18n39.__)("Select video", "elementor")
6837
+ ), /* @__PURE__ */ React89.createElement(
6838
+ import_ui71.Button,
6429
6839
  {
6430
6840
  size: "tiny",
6431
6841
  variant: "text",
6432
6842
  color: "inherit",
6433
- startIcon: /* @__PURE__ */ React87.createElement(import_icons24.UploadIcon, null),
6843
+ startIcon: /* @__PURE__ */ React89.createElement(import_icons25.UploadIcon, null),
6434
6844
  onClick: () => open({ mode: "upload" })
6435
6845
  },
6436
- (0, import_i18n37.__)("Upload", "elementor")
6437
- ), /* @__PURE__ */ React87.createElement(
6438
- import_ui69.Button,
6846
+ (0, import_i18n39.__)("Upload", "elementor")
6847
+ ), /* @__PURE__ */ React89.createElement(
6848
+ import_ui71.Button,
6439
6849
  {
6440
6850
  size: "tiny",
6441
6851
  variant: "text",
6442
6852
  color: "inherit",
6443
6853
  onClick: () => open({ mode: "url", currentUrl: currentUrlForModal })
6444
6854
  },
6445
- (0, import_i18n37.__)("Insert from URL", "elementor")
6855
+ (0, import_i18n39.__)("Insert from URL", "elementor")
6446
6856
  )))));
6447
6857
  });
6448
6858
  var VideoPreview = ({ isFetching = false, videoUrl }) => {
6449
6859
  if (isFetching) {
6450
- return /* @__PURE__ */ React87.createElement(import_ui69.CircularProgress, null);
6860
+ return /* @__PURE__ */ React89.createElement(import_ui71.CircularProgress, null);
6451
6861
  }
6452
6862
  if (videoUrl) {
6453
- return /* @__PURE__ */ React87.createElement(
6863
+ return /* @__PURE__ */ React89.createElement(
6454
6864
  "video",
6455
6865
  {
6456
- "aria-label": (0, import_i18n37.__)("Video preview", "elementor"),
6866
+ "aria-label": (0, import_i18n39.__)("Video preview", "elementor"),
6457
6867
  src: videoUrl,
6458
6868
  muted: true,
6459
6869
  preload: "metadata",
@@ -6466,30 +6876,30 @@ var VideoPreview = ({ isFetching = false, videoUrl }) => {
6466
6876
  }
6467
6877
  );
6468
6878
  }
6469
- return /* @__PURE__ */ React87.createElement("img", { src: PLACEHOLDER_IMAGE, alt: "No video selected" });
6879
+ return /* @__PURE__ */ React89.createElement("img", { src: PLACEHOLDER_IMAGE, alt: "No video selected" });
6470
6880
  };
6471
6881
 
6472
6882
  // src/controls/background-control/background-control.tsx
6473
- var React94 = __toESM(require("react"));
6883
+ var React96 = __toESM(require("react"));
6474
6884
  var import_editor_props42 = require("@elementor/editor-props");
6475
- var import_ui77 = require("@elementor/ui");
6476
- var import_i18n43 = require("@wordpress/i18n");
6885
+ var import_ui79 = require("@elementor/ui");
6886
+ var import_i18n45 = require("@wordpress/i18n");
6477
6887
 
6478
6888
  // src/controls/background-control/background-overlay/background-overlay-repeater-control.tsx
6479
- var React93 = __toESM(require("react"));
6889
+ var React95 = __toESM(require("react"));
6480
6890
  var import_editor_props41 = require("@elementor/editor-props");
6481
- var import_ui76 = require("@elementor/ui");
6891
+ var import_ui78 = require("@elementor/ui");
6482
6892
  var import_wp_media4 = require("@elementor/wp-media");
6483
- var import_i18n42 = require("@wordpress/i18n");
6893
+ var import_i18n44 = require("@wordpress/i18n");
6484
6894
 
6485
6895
  // src/env.ts
6486
6896
  var import_env = require("@elementor/env");
6487
6897
  var { env } = (0, import_env.parseEnv)("@elementor/editor-controls");
6488
6898
 
6489
6899
  // src/controls/background-control/background-gradient-color-control.tsx
6490
- var React88 = __toESM(require("react"));
6900
+ var React90 = __toESM(require("react"));
6491
6901
  var import_editor_props37 = require("@elementor/editor-props");
6492
- var import_ui70 = require("@elementor/ui");
6902
+ var import_ui72 = require("@elementor/ui");
6493
6903
  var BackgroundGradientColorControl = createControl(() => {
6494
6904
  const { value, setValue } = useBoundProp(import_editor_props37.backgroundGradientOverlayPropTypeUtil);
6495
6905
  const handleChange = (newValue) => {
@@ -6527,8 +6937,8 @@ var BackgroundGradientColorControl = createControl(() => {
6527
6937
  positions: positions?.value.split(" ")
6528
6938
  };
6529
6939
  };
6530
- return /* @__PURE__ */ React88.createElement(
6531
- import_ui70.UnstableGradientBox,
6940
+ return /* @__PURE__ */ React90.createElement(
6941
+ import_ui72.UnstableGradientBox,
6532
6942
  {
6533
6943
  sx: { width: "auto", padding: 1.5 },
6534
6944
  value: normalizeValue(),
@@ -6552,53 +6962,53 @@ var initialBackgroundGradientOverlay = import_editor_props37.backgroundGradientO
6552
6962
  });
6553
6963
 
6554
6964
  // src/controls/background-control/background-overlay/background-image-overlay/background-image-overlay-attachment.tsx
6555
- var React89 = __toESM(require("react"));
6556
- var import_icons25 = require("@elementor/icons");
6557
- var import_ui71 = require("@elementor/ui");
6558
- var import_i18n38 = require("@wordpress/i18n");
6965
+ var React91 = __toESM(require("react"));
6966
+ var import_icons26 = require("@elementor/icons");
6967
+ var import_ui73 = require("@elementor/ui");
6968
+ var import_i18n40 = require("@wordpress/i18n");
6559
6969
  var attachmentControlOptions = [
6560
6970
  {
6561
6971
  value: "fixed",
6562
- label: (0, import_i18n38.__)("Fixed", "elementor"),
6563
- renderContent: ({ size }) => /* @__PURE__ */ React89.createElement(import_icons25.PinIcon, { fontSize: size }),
6972
+ label: (0, import_i18n40.__)("Fixed", "elementor"),
6973
+ renderContent: ({ size }) => /* @__PURE__ */ React91.createElement(import_icons26.PinIcon, { fontSize: size }),
6564
6974
  showTooltip: true
6565
6975
  },
6566
6976
  {
6567
6977
  value: "scroll",
6568
- label: (0, import_i18n38.__)("Scroll", "elementor"),
6569
- renderContent: ({ size }) => /* @__PURE__ */ React89.createElement(import_icons25.PinnedOffIcon, { fontSize: size }),
6978
+ label: (0, import_i18n40.__)("Scroll", "elementor"),
6979
+ renderContent: ({ size }) => /* @__PURE__ */ React91.createElement(import_icons26.PinnedOffIcon, { fontSize: size }),
6570
6980
  showTooltip: true
6571
6981
  }
6572
6982
  ];
6573
6983
  var BackgroundImageOverlayAttachment = () => {
6574
- return /* @__PURE__ */ React89.createElement(PopoverGridContainer, null, /* @__PURE__ */ React89.createElement(import_ui71.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React89.createElement(ControlFormLabel, null, (0, import_i18n38.__)("Attachment", "elementor"))), /* @__PURE__ */ React89.createElement(import_ui71.Grid, { item: true, xs: 6, sx: { display: "flex", justifyContent: "flex-end", overflow: "hidden" } }, /* @__PURE__ */ React89.createElement(ToggleControl, { options: attachmentControlOptions })));
6984
+ return /* @__PURE__ */ React91.createElement(PopoverGridContainer, null, /* @__PURE__ */ React91.createElement(import_ui73.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React91.createElement(ControlFormLabel, null, (0, import_i18n40.__)("Attachment", "elementor"))), /* @__PURE__ */ React91.createElement(import_ui73.Grid, { item: true, xs: 6, sx: { display: "flex", justifyContent: "flex-end", overflow: "hidden" } }, /* @__PURE__ */ React91.createElement(ToggleControl, { options: attachmentControlOptions })));
6575
6985
  };
6576
6986
 
6577
6987
  // src/controls/background-control/background-overlay/background-image-overlay/background-image-overlay-position.tsx
6578
- var React90 = __toESM(require("react"));
6579
- var import_react52 = require("react");
6988
+ var React92 = __toESM(require("react"));
6989
+ var import_react54 = require("react");
6580
6990
  var import_editor_props38 = require("@elementor/editor-props");
6581
6991
  var import_editor_ui12 = require("@elementor/editor-ui");
6582
- var import_icons26 = require("@elementor/icons");
6583
- var import_ui72 = require("@elementor/ui");
6584
- var import_i18n39 = require("@wordpress/i18n");
6992
+ var import_icons27 = require("@elementor/icons");
6993
+ var import_ui74 = require("@elementor/ui");
6994
+ var import_i18n41 = require("@wordpress/i18n");
6585
6995
  var backgroundPositionOptions = [
6586
- { label: (0, import_i18n39.__)("Center center", "elementor"), value: "center center" },
6587
- { label: (0, import_i18n39.__)("Center left", "elementor"), value: "center left" },
6588
- { label: (0, import_i18n39.__)("Center right", "elementor"), value: "center right" },
6589
- { label: (0, import_i18n39.__)("Top center", "elementor"), value: "top center" },
6590
- { label: (0, import_i18n39.__)("Top left", "elementor"), value: "top left" },
6591
- { label: (0, import_i18n39.__)("Top right", "elementor"), value: "top right" },
6592
- { label: (0, import_i18n39.__)("Bottom center", "elementor"), value: "bottom center" },
6593
- { label: (0, import_i18n39.__)("Bottom left", "elementor"), value: "bottom left" },
6594
- { label: (0, import_i18n39.__)("Bottom right", "elementor"), value: "bottom right" },
6595
- { label: (0, import_i18n39.__)("Custom", "elementor"), value: "custom" }
6996
+ { label: (0, import_i18n41.__)("Center center", "elementor"), value: "center center" },
6997
+ { label: (0, import_i18n41.__)("Center left", "elementor"), value: "center left" },
6998
+ { label: (0, import_i18n41.__)("Center right", "elementor"), value: "center right" },
6999
+ { label: (0, import_i18n41.__)("Top center", "elementor"), value: "top center" },
7000
+ { label: (0, import_i18n41.__)("Top left", "elementor"), value: "top left" },
7001
+ { label: (0, import_i18n41.__)("Top right", "elementor"), value: "top right" },
7002
+ { label: (0, import_i18n41.__)("Bottom center", "elementor"), value: "bottom center" },
7003
+ { label: (0, import_i18n41.__)("Bottom left", "elementor"), value: "bottom left" },
7004
+ { label: (0, import_i18n41.__)("Bottom right", "elementor"), value: "bottom right" },
7005
+ { label: (0, import_i18n41.__)("Custom", "elementor"), value: "custom" }
6596
7006
  ];
6597
7007
  var BackgroundImageOverlayPosition = () => {
6598
7008
  const backgroundImageOffsetContext = useBoundProp(import_editor_props38.backgroundImagePositionOffsetPropTypeUtil);
6599
7009
  const stringPropContext = useBoundProp(import_editor_props38.stringPropTypeUtil);
6600
7010
  const isCustom = !!backgroundImageOffsetContext.value;
6601
- const rowRef = (0, import_react52.useRef)(null);
7011
+ const rowRef = (0, import_react54.useRef)(null);
6602
7012
  const handlePositionChange = (event) => {
6603
7013
  const value = event.target.value || null;
6604
7014
  if (value === "custom") {
@@ -6607,8 +7017,8 @@ var BackgroundImageOverlayPosition = () => {
6607
7017
  stringPropContext.setValue(value);
6608
7018
  }
6609
7019
  };
6610
- return /* @__PURE__ */ React90.createElement(import_ui72.Grid, { container: true, spacing: 1.5 }, /* @__PURE__ */ React90.createElement(import_ui72.Grid, { item: true, xs: 12 }, /* @__PURE__ */ React90.createElement(PopoverGridContainer, null, /* @__PURE__ */ React90.createElement(import_ui72.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React90.createElement(ControlFormLabel, null, (0, import_i18n39.__)("Position", "elementor"))), /* @__PURE__ */ React90.createElement(import_ui72.Grid, { item: true, xs: 6, sx: { display: "flex", justifyContent: "flex-end", overflow: "hidden" } }, /* @__PURE__ */ React90.createElement(ControlActions, null, /* @__PURE__ */ React90.createElement(
6611
- import_ui72.Select,
7020
+ return /* @__PURE__ */ React92.createElement(import_ui74.Grid, { container: true, spacing: 1.5 }, /* @__PURE__ */ React92.createElement(import_ui74.Grid, { item: true, xs: 12 }, /* @__PURE__ */ React92.createElement(PopoverGridContainer, null, /* @__PURE__ */ React92.createElement(import_ui74.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React92.createElement(ControlFormLabel, null, (0, import_i18n41.__)("Position", "elementor"))), /* @__PURE__ */ React92.createElement(import_ui74.Grid, { item: true, xs: 6, sx: { display: "flex", justifyContent: "flex-end", overflow: "hidden" } }, /* @__PURE__ */ React92.createElement(ControlActions, null, /* @__PURE__ */ React92.createElement(
7021
+ import_ui74.Select,
6612
7022
  {
6613
7023
  fullWidth: true,
6614
7024
  size: "tiny",
@@ -6616,18 +7026,18 @@ var BackgroundImageOverlayPosition = () => {
6616
7026
  disabled: stringPropContext.disabled,
6617
7027
  value: (backgroundImageOffsetContext.value ? "custom" : stringPropContext.value) ?? ""
6618
7028
  },
6619
- backgroundPositionOptions.map(({ label, value }) => /* @__PURE__ */ React90.createElement(import_editor_ui12.MenuListItem, { key: value, value: value ?? "" }, label))
6620
- ))))), isCustom ? /* @__PURE__ */ React90.createElement(PropProvider, { ...backgroundImageOffsetContext }, /* @__PURE__ */ React90.createElement(import_ui72.Grid, { item: true, xs: 12 }, /* @__PURE__ */ React90.createElement(import_ui72.Grid, { container: true, spacing: 1.5, ref: rowRef }, /* @__PURE__ */ React90.createElement(import_ui72.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React90.createElement(PropKeyProvider, { bind: "x" }, /* @__PURE__ */ React90.createElement(
7029
+ backgroundPositionOptions.map(({ label, value }) => /* @__PURE__ */ React92.createElement(import_editor_ui12.MenuListItem, { key: value, value: value ?? "" }, label))
7030
+ ))))), isCustom ? /* @__PURE__ */ React92.createElement(PropProvider, { ...backgroundImageOffsetContext }, /* @__PURE__ */ React92.createElement(import_ui74.Grid, { item: true, xs: 12 }, /* @__PURE__ */ React92.createElement(import_ui74.Grid, { container: true, spacing: 1.5, ref: rowRef }, /* @__PURE__ */ React92.createElement(import_ui74.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React92.createElement(PropKeyProvider, { bind: "x" }, /* @__PURE__ */ React92.createElement(
6621
7031
  SizeControl,
6622
7032
  {
6623
- startIcon: /* @__PURE__ */ React90.createElement(import_icons26.LetterXIcon, { fontSize: "tiny" }),
7033
+ startIcon: /* @__PURE__ */ React92.createElement(import_icons27.LetterXIcon, { fontSize: "tiny" }),
6624
7034
  anchorRef: rowRef,
6625
7035
  min: -Number.MAX_SAFE_INTEGER
6626
7036
  }
6627
- ))), /* @__PURE__ */ React90.createElement(import_ui72.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React90.createElement(PropKeyProvider, { bind: "y" }, /* @__PURE__ */ React90.createElement(
7037
+ ))), /* @__PURE__ */ React92.createElement(import_ui74.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React92.createElement(PropKeyProvider, { bind: "y" }, /* @__PURE__ */ React92.createElement(
6628
7038
  SizeControl,
6629
7039
  {
6630
- startIcon: /* @__PURE__ */ React90.createElement(import_icons26.LetterYIcon, { fontSize: "tiny" }),
7040
+ startIcon: /* @__PURE__ */ React92.createElement(import_icons27.LetterYIcon, { fontSize: "tiny" }),
6631
7041
  anchorRef: rowRef,
6632
7042
  min: -Number.MAX_SAFE_INTEGER
6633
7043
  }
@@ -6635,70 +7045,70 @@ var BackgroundImageOverlayPosition = () => {
6635
7045
  };
6636
7046
 
6637
7047
  // src/controls/background-control/background-overlay/background-image-overlay/background-image-overlay-repeat.tsx
6638
- var React91 = __toESM(require("react"));
6639
- var import_icons27 = require("@elementor/icons");
6640
- var import_ui73 = require("@elementor/ui");
6641
- var import_i18n40 = require("@wordpress/i18n");
7048
+ var React93 = __toESM(require("react"));
7049
+ var import_icons28 = require("@elementor/icons");
7050
+ var import_ui75 = require("@elementor/ui");
7051
+ var import_i18n42 = require("@wordpress/i18n");
6642
7052
  var repeatControlOptions = [
6643
7053
  {
6644
7054
  value: "repeat",
6645
- label: (0, import_i18n40.__)("Repeat", "elementor"),
6646
- renderContent: ({ size }) => /* @__PURE__ */ React91.createElement(import_icons27.GridDotsIcon, { fontSize: size }),
7055
+ label: (0, import_i18n42.__)("Repeat", "elementor"),
7056
+ renderContent: ({ size }) => /* @__PURE__ */ React93.createElement(import_icons28.GridDotsIcon, { fontSize: size }),
6647
7057
  showTooltip: true
6648
7058
  },
6649
7059
  {
6650
7060
  value: "repeat-x",
6651
- label: (0, import_i18n40.__)("Repeat-x", "elementor"),
6652
- renderContent: ({ size }) => /* @__PURE__ */ React91.createElement(import_icons27.DotsHorizontalIcon, { fontSize: size }),
7061
+ label: (0, import_i18n42.__)("Repeat-x", "elementor"),
7062
+ renderContent: ({ size }) => /* @__PURE__ */ React93.createElement(import_icons28.DotsHorizontalIcon, { fontSize: size }),
6653
7063
  showTooltip: true
6654
7064
  },
6655
7065
  {
6656
7066
  value: "repeat-y",
6657
- label: (0, import_i18n40.__)("Repeat-y", "elementor"),
6658
- renderContent: ({ size }) => /* @__PURE__ */ React91.createElement(import_icons27.DotsVerticalIcon, { fontSize: size }),
7067
+ label: (0, import_i18n42.__)("Repeat-y", "elementor"),
7068
+ renderContent: ({ size }) => /* @__PURE__ */ React93.createElement(import_icons28.DotsVerticalIcon, { fontSize: size }),
6659
7069
  showTooltip: true
6660
7070
  },
6661
7071
  {
6662
7072
  value: "no-repeat",
6663
- label: (0, import_i18n40.__)("No-repeat", "elementor"),
6664
- renderContent: ({ size }) => /* @__PURE__ */ React91.createElement(import_icons27.XIcon, { fontSize: size }),
7073
+ label: (0, import_i18n42.__)("No-repeat", "elementor"),
7074
+ renderContent: ({ size }) => /* @__PURE__ */ React93.createElement(import_icons28.XIcon, { fontSize: size }),
6665
7075
  showTooltip: true
6666
7076
  }
6667
7077
  ];
6668
7078
  var BackgroundImageOverlayRepeat = () => {
6669
- return /* @__PURE__ */ React91.createElement(PopoverGridContainer, null, /* @__PURE__ */ React91.createElement(import_ui73.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React91.createElement(ControlFormLabel, null, (0, import_i18n40.__)("Repeat", "elementor"))), /* @__PURE__ */ React91.createElement(import_ui73.Grid, { item: true, xs: 6, sx: { display: "flex", justifyContent: "flex-end" } }, /* @__PURE__ */ React91.createElement(ToggleControl, { options: repeatControlOptions })));
7079
+ return /* @__PURE__ */ React93.createElement(PopoverGridContainer, null, /* @__PURE__ */ React93.createElement(import_ui75.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React93.createElement(ControlFormLabel, null, (0, import_i18n42.__)("Repeat", "elementor"))), /* @__PURE__ */ React93.createElement(import_ui75.Grid, { item: true, xs: 6, sx: { display: "flex", justifyContent: "flex-end" } }, /* @__PURE__ */ React93.createElement(ToggleControl, { options: repeatControlOptions })));
6670
7080
  };
6671
7081
 
6672
7082
  // src/controls/background-control/background-overlay/background-image-overlay/background-image-overlay-size.tsx
6673
- var React92 = __toESM(require("react"));
6674
- var import_react53 = require("react");
7083
+ var React94 = __toESM(require("react"));
7084
+ var import_react55 = require("react");
6675
7085
  var import_editor_props39 = require("@elementor/editor-props");
6676
- var import_icons28 = require("@elementor/icons");
6677
- var import_ui74 = require("@elementor/ui");
6678
- var import_i18n41 = require("@wordpress/i18n");
7086
+ var import_icons29 = require("@elementor/icons");
7087
+ var import_ui76 = require("@elementor/ui");
7088
+ var import_i18n43 = require("@wordpress/i18n");
6679
7089
  var sizeControlOptions = [
6680
7090
  {
6681
7091
  value: "auto",
6682
- label: (0, import_i18n41.__)("Auto", "elementor"),
6683
- renderContent: ({ size }) => /* @__PURE__ */ React92.createElement(import_icons28.LetterAIcon, { fontSize: size }),
7092
+ label: (0, import_i18n43.__)("Auto", "elementor"),
7093
+ renderContent: ({ size }) => /* @__PURE__ */ React94.createElement(import_icons29.LetterAIcon, { fontSize: size }),
6684
7094
  showTooltip: true
6685
7095
  },
6686
7096
  {
6687
7097
  value: "cover",
6688
- label: (0, import_i18n41.__)("Cover", "elementor"),
6689
- renderContent: ({ size }) => /* @__PURE__ */ React92.createElement(import_icons28.ArrowsMaximizeIcon, { fontSize: size }),
7098
+ label: (0, import_i18n43.__)("Cover", "elementor"),
7099
+ renderContent: ({ size }) => /* @__PURE__ */ React94.createElement(import_icons29.ArrowsMaximizeIcon, { fontSize: size }),
6690
7100
  showTooltip: true
6691
7101
  },
6692
7102
  {
6693
7103
  value: "contain",
6694
- label: (0, import_i18n41.__)("Contain", "elementor"),
6695
- renderContent: ({ size }) => /* @__PURE__ */ React92.createElement(import_icons28.ArrowBarBothIcon, { fontSize: size }),
7104
+ label: (0, import_i18n43.__)("Contain", "elementor"),
7105
+ renderContent: ({ size }) => /* @__PURE__ */ React94.createElement(import_icons29.ArrowBarBothIcon, { fontSize: size }),
6696
7106
  showTooltip: true
6697
7107
  },
6698
7108
  {
6699
7109
  value: "custom",
6700
- label: (0, import_i18n41.__)("Custom", "elementor"),
6701
- renderContent: ({ size }) => /* @__PURE__ */ React92.createElement(import_icons28.PencilIcon, { fontSize: size }),
7110
+ label: (0, import_i18n43.__)("Custom", "elementor"),
7111
+ renderContent: ({ size }) => /* @__PURE__ */ React94.createElement(import_icons29.PencilIcon, { fontSize: size }),
6702
7112
  showTooltip: true
6703
7113
  }
6704
7114
  ];
@@ -6706,7 +7116,7 @@ var BackgroundImageOverlaySize = () => {
6706
7116
  const backgroundImageScaleContext = useBoundProp(import_editor_props39.backgroundImageSizeScalePropTypeUtil);
6707
7117
  const stringPropContext = useBoundProp(import_editor_props39.stringPropTypeUtil);
6708
7118
  const isCustom = !!backgroundImageScaleContext.value;
6709
- const rowRef = (0, import_react53.useRef)(null);
7119
+ const rowRef = (0, import_react55.useRef)(null);
6710
7120
  const handleSizeChange = (size) => {
6711
7121
  if (size === "custom") {
6712
7122
  backgroundImageScaleContext.setValue({ width: null, height: null });
@@ -6714,7 +7124,7 @@ var BackgroundImageOverlaySize = () => {
6714
7124
  stringPropContext.setValue(size);
6715
7125
  }
6716
7126
  };
6717
- return /* @__PURE__ */ React92.createElement(import_ui74.Grid, { container: true, spacing: 1.5 }, /* @__PURE__ */ React92.createElement(import_ui74.Grid, { item: true, xs: 12 }, /* @__PURE__ */ React92.createElement(PopoverGridContainer, null, /* @__PURE__ */ React92.createElement(import_ui74.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React92.createElement(ControlFormLabel, null, (0, import_i18n41.__)("Size", "elementor"))), /* @__PURE__ */ React92.createElement(import_ui74.Grid, { item: true, xs: 6, sx: { display: "flex", justifyContent: "flex-end" } }, /* @__PURE__ */ React92.createElement(
7127
+ return /* @__PURE__ */ React94.createElement(import_ui76.Grid, { container: true, spacing: 1.5 }, /* @__PURE__ */ React94.createElement(import_ui76.Grid, { item: true, xs: 12 }, /* @__PURE__ */ React94.createElement(PopoverGridContainer, null, /* @__PURE__ */ React94.createElement(import_ui76.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React94.createElement(ControlFormLabel, null, (0, import_i18n43.__)("Size", "elementor"))), /* @__PURE__ */ React94.createElement(import_ui76.Grid, { item: true, xs: 6, sx: { display: "flex", justifyContent: "flex-end" } }, /* @__PURE__ */ React94.createElement(
6718
7128
  ControlToggleButtonGroup,
6719
7129
  {
6720
7130
  exclusive: true,
@@ -6723,17 +7133,17 @@ var BackgroundImageOverlaySize = () => {
6723
7133
  disabled: stringPropContext.disabled,
6724
7134
  value: backgroundImageScaleContext.value ? "custom" : stringPropContext.value
6725
7135
  }
6726
- )))), isCustom ? /* @__PURE__ */ React92.createElement(PropProvider, { ...backgroundImageScaleContext }, /* @__PURE__ */ React92.createElement(import_ui74.Grid, { item: true, xs: 12, ref: rowRef }, /* @__PURE__ */ React92.createElement(PopoverGridContainer, null, /* @__PURE__ */ React92.createElement(import_ui74.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React92.createElement(PropKeyProvider, { bind: "width" }, /* @__PURE__ */ React92.createElement(
7136
+ )))), isCustom ? /* @__PURE__ */ React94.createElement(PropProvider, { ...backgroundImageScaleContext }, /* @__PURE__ */ React94.createElement(import_ui76.Grid, { item: true, xs: 12, ref: rowRef }, /* @__PURE__ */ React94.createElement(PopoverGridContainer, null, /* @__PURE__ */ React94.createElement(import_ui76.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React94.createElement(PropKeyProvider, { bind: "width" }, /* @__PURE__ */ React94.createElement(
6727
7137
  SizeControl,
6728
7138
  {
6729
- startIcon: /* @__PURE__ */ React92.createElement(import_icons28.ArrowsMoveHorizontalIcon, { fontSize: "tiny" }),
7139
+ startIcon: /* @__PURE__ */ React94.createElement(import_icons29.ArrowsMoveHorizontalIcon, { fontSize: "tiny" }),
6730
7140
  extendedOptions: ["auto"],
6731
7141
  anchorRef: rowRef
6732
7142
  }
6733
- ))), /* @__PURE__ */ React92.createElement(import_ui74.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React92.createElement(PropKeyProvider, { bind: "height" }, /* @__PURE__ */ React92.createElement(
7143
+ ))), /* @__PURE__ */ React94.createElement(import_ui76.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React94.createElement(PropKeyProvider, { bind: "height" }, /* @__PURE__ */ React94.createElement(
6734
7144
  SizeControl,
6735
7145
  {
6736
- startIcon: /* @__PURE__ */ React92.createElement(import_icons28.ArrowsMoveVerticalIcon, { fontSize: "tiny" }),
7146
+ startIcon: /* @__PURE__ */ React94.createElement(import_icons29.ArrowsMoveVerticalIcon, { fontSize: "tiny" }),
6737
7147
  extendedOptions: ["auto"],
6738
7148
  anchorRef: rowRef
6739
7149
  }
@@ -6741,9 +7151,9 @@ var BackgroundImageOverlaySize = () => {
6741
7151
  };
6742
7152
 
6743
7153
  // src/controls/background-control/background-overlay/use-background-tabs-history.ts
6744
- var import_react54 = require("react");
7154
+ var import_react56 = require("react");
6745
7155
  var import_editor_props40 = require("@elementor/editor-props");
6746
- var import_ui75 = require("@elementor/ui");
7156
+ var import_ui77 = require("@elementor/ui");
6747
7157
  var useBackgroundTabsHistory = ({
6748
7158
  color: initialBackgroundColorOverlay2,
6749
7159
  image: initialBackgroundImageOverlay,
@@ -6761,8 +7171,8 @@ var useBackgroundTabsHistory = ({
6761
7171
  }
6762
7172
  return "image";
6763
7173
  };
6764
- const { getTabsProps, getTabProps, getTabPanelProps } = (0, import_ui75.useTabs)(getCurrentOverlayType());
6765
- const valuesHistory = (0, import_react54.useRef)({
7174
+ const { getTabsProps, getTabProps, getTabPanelProps } = (0, import_ui77.useTabs)(getCurrentOverlayType());
7175
+ const valuesHistory = (0, import_react56.useRef)({
6766
7176
  image: initialBackgroundImageOverlay,
6767
7177
  color: initialBackgroundColorOverlay2,
6768
7178
  gradient: initialBackgroundGradientOverlay2
@@ -6830,29 +7240,29 @@ var getInitialBackgroundOverlay = () => ({
6830
7240
  }
6831
7241
  });
6832
7242
  var backgroundResolutionOptions = [
6833
- { label: (0, import_i18n42.__)("Thumbnail - 150 x 150", "elementor"), value: "thumbnail" },
6834
- { label: (0, import_i18n42.__)("Medium - 300 x 300", "elementor"), value: "medium" },
6835
- { label: (0, import_i18n42.__)("Large 1024 x 1024", "elementor"), value: "large" },
6836
- { label: (0, import_i18n42.__)("Full", "elementor"), value: "full" }
7243
+ { label: (0, import_i18n44.__)("Thumbnail - 150 x 150", "elementor"), value: "thumbnail" },
7244
+ { label: (0, import_i18n44.__)("Medium - 300 x 300", "elementor"), value: "medium" },
7245
+ { label: (0, import_i18n44.__)("Large 1024 x 1024", "elementor"), value: "large" },
7246
+ { label: (0, import_i18n44.__)("Full", "elementor"), value: "full" }
6837
7247
  ];
6838
7248
  var BackgroundOverlayRepeaterControl = createControl(() => {
6839
7249
  const { propType, value: overlayValues, setValue } = useBoundProp(import_editor_props41.backgroundOverlayPropTypeUtil);
6840
- return /* @__PURE__ */ React93.createElement(PropProvider, { propType, value: overlayValues, setValue }, /* @__PURE__ */ React93.createElement(
7250
+ return /* @__PURE__ */ React95.createElement(PropProvider, { propType, value: overlayValues, setValue }, /* @__PURE__ */ React95.createElement(
6841
7251
  ControlRepeater,
6842
7252
  {
6843
7253
  initial: getInitialBackgroundOverlay(),
6844
7254
  propTypeUtil: import_editor_props41.backgroundOverlayPropTypeUtil
6845
7255
  },
6846
- /* @__PURE__ */ React93.createElement(RepeaterHeader, { label: (0, import_i18n42.__)("Overlay", "elementor") }, /* @__PURE__ */ React93.createElement(TooltipAddItemAction, { newItemIndex: 0 })),
6847
- /* @__PURE__ */ React93.createElement(ItemsContainer, null, /* @__PURE__ */ React93.createElement(
7256
+ /* @__PURE__ */ React95.createElement(RepeaterHeader, { label: (0, import_i18n44.__)("Overlay", "elementor") }, /* @__PURE__ */ React95.createElement(TooltipAddItemAction, { newItemIndex: 0 })),
7257
+ /* @__PURE__ */ React95.createElement(ItemsContainer, null, /* @__PURE__ */ React95.createElement(
6848
7258
  Item,
6849
7259
  {
6850
7260
  Icon: ItemIcon2,
6851
7261
  Label: ItemLabel3,
6852
- actions: /* @__PURE__ */ React93.createElement(React93.Fragment, null, /* @__PURE__ */ React93.createElement(DuplicateItemAction, null), /* @__PURE__ */ React93.createElement(DisableItemAction, null), /* @__PURE__ */ React93.createElement(RemoveItemAction, null))
7262
+ actions: /* @__PURE__ */ React95.createElement(React95.Fragment, null, /* @__PURE__ */ React95.createElement(DuplicateItemAction, null), /* @__PURE__ */ React95.createElement(DisableItemAction, null), /* @__PURE__ */ React95.createElement(RemoveItemAction, null))
6853
7263
  }
6854
7264
  )),
6855
- /* @__PURE__ */ React93.createElement(EditItemPopover, null, /* @__PURE__ */ React93.createElement(ItemContent2, null))
7265
+ /* @__PURE__ */ React95.createElement(EditItemPopover, null, /* @__PURE__ */ React95.createElement(ItemContent2, null))
6856
7266
  ));
6857
7267
  });
6858
7268
  var ItemContent2 = () => {
@@ -6862,27 +7272,27 @@ var ItemContent2 = () => {
6862
7272
  gradient: initialBackgroundGradientOverlay.value
6863
7273
  });
6864
7274
  const { rowRef } = useRepeaterContext();
6865
- return /* @__PURE__ */ React93.createElement(import_ui76.Box, { sx: { width: "100%" } }, /* @__PURE__ */ React93.createElement(import_ui76.Box, { sx: { borderBottom: 1, borderColor: "divider" } }, /* @__PURE__ */ React93.createElement(
6866
- import_ui76.Tabs,
7275
+ return /* @__PURE__ */ React95.createElement(import_ui78.Box, { sx: { width: "100%" } }, /* @__PURE__ */ React95.createElement(import_ui78.Box, { sx: { borderBottom: 1, borderColor: "divider" } }, /* @__PURE__ */ React95.createElement(
7276
+ import_ui78.Tabs,
6867
7277
  {
6868
7278
  size: "small",
6869
7279
  variant: "fullWidth",
6870
7280
  ...getTabsProps(),
6871
- "aria-label": (0, import_i18n42.__)("Background Overlay", "elementor")
7281
+ "aria-label": (0, import_i18n44.__)("Background Overlay", "elementor")
6872
7282
  },
6873
- /* @__PURE__ */ React93.createElement(import_ui76.Tab, { label: (0, import_i18n42.__)("Image", "elementor"), ...getTabProps("image") }),
6874
- /* @__PURE__ */ React93.createElement(import_ui76.Tab, { label: (0, import_i18n42.__)("Gradient", "elementor"), ...getTabProps("gradient") }),
6875
- /* @__PURE__ */ React93.createElement(import_ui76.Tab, { label: (0, import_i18n42.__)("Color", "elementor"), ...getTabProps("color") })
6876
- )), /* @__PURE__ */ React93.createElement(import_ui76.TabPanel, { sx: { p: 1.5 }, ...getTabPanelProps("image") }, /* @__PURE__ */ React93.createElement(PopoverContent, null, /* @__PURE__ */ React93.createElement(ImageOverlayContent, null))), /* @__PURE__ */ React93.createElement(import_ui76.TabPanel, { sx: { p: 1.5 }, ...getTabPanelProps("gradient") }, /* @__PURE__ */ React93.createElement(BackgroundGradientColorControl, null)), /* @__PURE__ */ React93.createElement(import_ui76.TabPanel, { sx: { p: 1.5 }, ...getTabPanelProps("color") }, /* @__PURE__ */ React93.createElement(PopoverContent, null, /* @__PURE__ */ React93.createElement(ColorOverlayContent, { anchorEl: rowRef }))));
7283
+ /* @__PURE__ */ React95.createElement(import_ui78.Tab, { label: (0, import_i18n44.__)("Image", "elementor"), ...getTabProps("image") }),
7284
+ /* @__PURE__ */ React95.createElement(import_ui78.Tab, { label: (0, import_i18n44.__)("Gradient", "elementor"), ...getTabProps("gradient") }),
7285
+ /* @__PURE__ */ React95.createElement(import_ui78.Tab, { label: (0, import_i18n44.__)("Color", "elementor"), ...getTabProps("color") })
7286
+ )), /* @__PURE__ */ React95.createElement(import_ui78.TabPanel, { sx: { p: 1.5 }, ...getTabPanelProps("image") }, /* @__PURE__ */ React95.createElement(PopoverContent, null, /* @__PURE__ */ React95.createElement(ImageOverlayContent, null))), /* @__PURE__ */ React95.createElement(import_ui78.TabPanel, { sx: { p: 1.5 }, ...getTabPanelProps("gradient") }, /* @__PURE__ */ React95.createElement(BackgroundGradientColorControl, null)), /* @__PURE__ */ React95.createElement(import_ui78.TabPanel, { sx: { p: 1.5 }, ...getTabPanelProps("color") }, /* @__PURE__ */ React95.createElement(PopoverContent, null, /* @__PURE__ */ React95.createElement(ColorOverlayContent, { anchorEl: rowRef }))));
6877
7287
  };
6878
7288
  var ItemIcon2 = ({ value }) => {
6879
7289
  switch (value.$$type) {
6880
7290
  case "background-image-overlay":
6881
- return /* @__PURE__ */ React93.createElement(ItemIconImage, { value });
7291
+ return /* @__PURE__ */ React95.createElement(ItemIconImage, { value });
6882
7292
  case "background-color-overlay":
6883
- return /* @__PURE__ */ React93.createElement(ItemIconColor, { value });
7293
+ return /* @__PURE__ */ React95.createElement(ItemIconColor, { value });
6884
7294
  case "background-gradient-overlay":
6885
- return /* @__PURE__ */ React93.createElement(ItemIconGradient, { value });
7295
+ return /* @__PURE__ */ React95.createElement(ItemIconGradient, { value });
6886
7296
  default:
6887
7297
  return null;
6888
7298
  }
@@ -6895,12 +7305,12 @@ var extractColorFrom = (prop) => {
6895
7305
  };
6896
7306
  var ItemIconColor = ({ value: prop }) => {
6897
7307
  const color = extractColorFrom(prop);
6898
- return /* @__PURE__ */ React93.createElement(StyledUnstableColorIndicator3, { size: "inherit", component: "span", value: color });
7308
+ return /* @__PURE__ */ React95.createElement(StyledUnstableColorIndicator3, { size: "inherit", component: "span", value: color });
6899
7309
  };
6900
7310
  var ItemIconImage = ({ value }) => {
6901
7311
  const { imageUrl } = useImage(value);
6902
- return /* @__PURE__ */ React93.createElement(
6903
- import_ui76.CardMedia,
7312
+ return /* @__PURE__ */ React95.createElement(
7313
+ import_ui78.CardMedia,
6904
7314
  {
6905
7315
  image: imageUrl,
6906
7316
  sx: (theme) => ({
@@ -6914,43 +7324,43 @@ var ItemIconImage = ({ value }) => {
6914
7324
  };
6915
7325
  var ItemIconGradient = ({ value }) => {
6916
7326
  const gradient = getGradientValue(value);
6917
- return /* @__PURE__ */ React93.createElement(StyledUnstableColorIndicator3, { size: "inherit", component: "span", value: gradient });
7327
+ return /* @__PURE__ */ React95.createElement(StyledUnstableColorIndicator3, { size: "inherit", component: "span", value: gradient });
6918
7328
  };
6919
7329
  var ItemLabel3 = ({ value }) => {
6920
7330
  switch (value.$$type) {
6921
7331
  case "background-image-overlay":
6922
- return /* @__PURE__ */ React93.createElement(ItemLabelImage, { value });
7332
+ return /* @__PURE__ */ React95.createElement(ItemLabelImage, { value });
6923
7333
  case "background-color-overlay":
6924
- return /* @__PURE__ */ React93.createElement(ItemLabelColor, { value });
7334
+ return /* @__PURE__ */ React95.createElement(ItemLabelColor, { value });
6925
7335
  case "background-gradient-overlay":
6926
- return /* @__PURE__ */ React93.createElement(ItemLabelGradient, { value });
7336
+ return /* @__PURE__ */ React95.createElement(ItemLabelGradient, { value });
6927
7337
  default:
6928
7338
  return null;
6929
7339
  }
6930
7340
  };
6931
7341
  var ItemLabelColor = ({ value: prop }) => {
6932
7342
  const color = extractColorFrom(prop);
6933
- return /* @__PURE__ */ React93.createElement("span", null, color);
7343
+ return /* @__PURE__ */ React95.createElement("span", null, color);
6934
7344
  };
6935
7345
  var ItemLabelImage = ({ value }) => {
6936
7346
  const { imageTitle } = useImage(value);
6937
- return /* @__PURE__ */ React93.createElement("span", null, imageTitle);
7347
+ return /* @__PURE__ */ React95.createElement("span", null, imageTitle);
6938
7348
  };
6939
7349
  var ItemLabelGradient = ({ value }) => {
6940
7350
  if (value.value.type.value === "linear") {
6941
- return /* @__PURE__ */ React93.createElement("span", null, (0, import_i18n42.__)("Linear Gradient", "elementor"));
7351
+ return /* @__PURE__ */ React95.createElement("span", null, (0, import_i18n44.__)("Linear Gradient", "elementor"));
6942
7352
  }
6943
- return /* @__PURE__ */ React93.createElement("span", null, (0, import_i18n42.__)("Radial Gradient", "elementor"));
7353
+ return /* @__PURE__ */ React95.createElement("span", null, (0, import_i18n44.__)("Radial Gradient", "elementor"));
6944
7354
  };
6945
7355
  var ColorOverlayContent = ({ anchorEl }) => {
6946
7356
  const propContext = useBoundProp(import_editor_props41.backgroundColorOverlayPropTypeUtil);
6947
- return /* @__PURE__ */ React93.createElement(PropProvider, { ...propContext }, /* @__PURE__ */ React93.createElement(PropKeyProvider, { bind: "color" }, /* @__PURE__ */ React93.createElement(ColorControl, { anchorEl })));
7357
+ return /* @__PURE__ */ React95.createElement(PropProvider, { ...propContext }, /* @__PURE__ */ React95.createElement(PropKeyProvider, { bind: "color" }, /* @__PURE__ */ React95.createElement(ColorControl, { anchorEl })));
6948
7358
  };
6949
7359
  var ImageOverlayContent = () => {
6950
7360
  const propContext = useBoundProp(import_editor_props41.backgroundImageOverlayPropTypeUtil);
6951
- return /* @__PURE__ */ React93.createElement(PropProvider, { ...propContext }, /* @__PURE__ */ React93.createElement(PropKeyProvider, { bind: "image" }, /* @__PURE__ */ React93.createElement(ImageControl, { sizes: backgroundResolutionOptions })), /* @__PURE__ */ React93.createElement(PropKeyProvider, { bind: "position" }, /* @__PURE__ */ React93.createElement(BackgroundImageOverlayPosition, null)), /* @__PURE__ */ React93.createElement(PropKeyProvider, { bind: "repeat" }, /* @__PURE__ */ React93.createElement(BackgroundImageOverlayRepeat, null)), /* @__PURE__ */ React93.createElement(PropKeyProvider, { bind: "size" }, /* @__PURE__ */ React93.createElement(BackgroundImageOverlaySize, null)), /* @__PURE__ */ React93.createElement(PropKeyProvider, { bind: "attachment" }, /* @__PURE__ */ React93.createElement(BackgroundImageOverlayAttachment, null)));
7361
+ return /* @__PURE__ */ React95.createElement(PropProvider, { ...propContext }, /* @__PURE__ */ React95.createElement(PropKeyProvider, { bind: "image" }, /* @__PURE__ */ React95.createElement(ImageControl, { sizes: backgroundResolutionOptions })), /* @__PURE__ */ React95.createElement(PropKeyProvider, { bind: "position" }, /* @__PURE__ */ React95.createElement(BackgroundImageOverlayPosition, null)), /* @__PURE__ */ React95.createElement(PropKeyProvider, { bind: "repeat" }, /* @__PURE__ */ React95.createElement(BackgroundImageOverlayRepeat, null)), /* @__PURE__ */ React95.createElement(PropKeyProvider, { bind: "size" }, /* @__PURE__ */ React95.createElement(BackgroundImageOverlaySize, null)), /* @__PURE__ */ React95.createElement(PropKeyProvider, { bind: "attachment" }, /* @__PURE__ */ React95.createElement(BackgroundImageOverlayAttachment, null)));
6952
7362
  };
6953
- var StyledUnstableColorIndicator3 = (0, import_ui76.styled)(import_ui76.UnstableColorIndicator)(({ theme }) => ({
7363
+ var StyledUnstableColorIndicator3 = (0, import_ui78.styled)(import_ui78.UnstableColorIndicator)(({ theme }) => ({
6954
7364
  height: "1rem",
6955
7365
  width: "1rem",
6956
7366
  borderRadius: `${theme.shape.borderRadius / 2}px`
@@ -6989,29 +7399,29 @@ var getGradientValue = (value) => {
6989
7399
 
6990
7400
  // src/controls/background-control/background-control.tsx
6991
7401
  var clipOptions = [
6992
- { label: (0, import_i18n43.__)("Full element", "elementor"), value: "border-box" },
6993
- { label: (0, import_i18n43.__)("Padding edges", "elementor"), value: "padding-box" },
6994
- { label: (0, import_i18n43.__)("Content edges", "elementor"), value: "content-box" },
6995
- { label: (0, import_i18n43.__)("Text", "elementor"), value: "text" }
7402
+ { label: (0, import_i18n45.__)("Full element", "elementor"), value: "border-box" },
7403
+ { label: (0, import_i18n45.__)("Padding edges", "elementor"), value: "padding-box" },
7404
+ { label: (0, import_i18n45.__)("Content edges", "elementor"), value: "content-box" },
7405
+ { label: (0, import_i18n45.__)("Text", "elementor"), value: "text" }
6996
7406
  ];
6997
- var colorLabel = (0, import_i18n43.__)("Color", "elementor");
6998
- var clipLabel = (0, import_i18n43.__)("Clipping", "elementor");
7407
+ var colorLabel = (0, import_i18n45.__)("Color", "elementor");
7408
+ var clipLabel = (0, import_i18n45.__)("Clipping", "elementor");
6999
7409
  var BackgroundControl = createControl(() => {
7000
7410
  const propContext = useBoundProp(import_editor_props42.backgroundPropTypeUtil);
7001
- return /* @__PURE__ */ React94.createElement(PropProvider, { ...propContext }, /* @__PURE__ */ React94.createElement(PropKeyProvider, { bind: "background-overlay" }, /* @__PURE__ */ React94.createElement(BackgroundOverlayRepeaterControl, null)), /* @__PURE__ */ React94.createElement(BackgroundColorField, null), /* @__PURE__ */ React94.createElement(BackgroundClipField, null));
7411
+ return /* @__PURE__ */ React96.createElement(PropProvider, { ...propContext }, /* @__PURE__ */ React96.createElement(PropKeyProvider, { bind: "background-overlay" }, /* @__PURE__ */ React96.createElement(BackgroundOverlayRepeaterControl, null)), /* @__PURE__ */ React96.createElement(BackgroundColorField, null), /* @__PURE__ */ React96.createElement(BackgroundClipField, null));
7002
7412
  });
7003
7413
  var BackgroundColorField = () => {
7004
- return /* @__PURE__ */ React94.createElement(PropKeyProvider, { bind: "color" }, /* @__PURE__ */ React94.createElement(import_ui77.Grid, { container: true, gap: 2, alignItems: "center", flexWrap: "nowrap" }, /* @__PURE__ */ React94.createElement(import_ui77.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React94.createElement(ControlLabel, null, colorLabel)), /* @__PURE__ */ React94.createElement(import_ui77.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React94.createElement(ColorControl, null))));
7414
+ return /* @__PURE__ */ React96.createElement(PropKeyProvider, { bind: "color" }, /* @__PURE__ */ React96.createElement(import_ui79.Grid, { container: true, gap: 2, alignItems: "center", flexWrap: "nowrap" }, /* @__PURE__ */ React96.createElement(import_ui79.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React96.createElement(ControlLabel, null, colorLabel)), /* @__PURE__ */ React96.createElement(import_ui79.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React96.createElement(ColorControl, null))));
7005
7415
  };
7006
7416
  var BackgroundClipField = () => {
7007
- return /* @__PURE__ */ React94.createElement(PropKeyProvider, { bind: "clip" }, /* @__PURE__ */ React94.createElement(import_ui77.Grid, { container: true, gap: 2, alignItems: "center", flexWrap: "nowrap" }, /* @__PURE__ */ React94.createElement(import_ui77.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React94.createElement(ControlLabel, null, clipLabel)), /* @__PURE__ */ React94.createElement(import_ui77.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React94.createElement(SelectControl, { options: clipOptions }))));
7417
+ return /* @__PURE__ */ React96.createElement(PropKeyProvider, { bind: "clip" }, /* @__PURE__ */ React96.createElement(import_ui79.Grid, { container: true, gap: 2, alignItems: "center", flexWrap: "nowrap" }, /* @__PURE__ */ React96.createElement(import_ui79.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React96.createElement(ControlLabel, null, clipLabel)), /* @__PURE__ */ React96.createElement(import_ui79.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React96.createElement(SelectControl, { options: clipOptions }))));
7008
7418
  };
7009
7419
 
7010
7420
  // src/controls/repeatable-control.tsx
7011
- var React95 = __toESM(require("react"));
7012
- var import_react55 = require("react");
7421
+ var React97 = __toESM(require("react"));
7422
+ var import_react57 = require("react");
7013
7423
  var import_editor_props43 = require("@elementor/editor-props");
7014
- var import_ui78 = require("@elementor/ui");
7424
+ var import_ui80 = require("@elementor/ui");
7015
7425
  var PLACEHOLDER_REGEX = /\$\{([^}]+)\}/g;
7016
7426
  var RepeatableControl = createControl(
7017
7427
  ({
@@ -7030,11 +7440,11 @@ var RepeatableControl = createControl(
7030
7440
  if (!childPropTypeUtil) {
7031
7441
  return null;
7032
7442
  }
7033
- const childArrayPropTypeUtil2 = (0, import_react55.useMemo)(
7443
+ const childArrayPropTypeUtil2 = (0, import_react57.useMemo)(
7034
7444
  () => (0, import_editor_props43.createArrayPropUtils)(childPropTypeUtil.key, childPropTypeUtil.schema, propKey),
7035
7445
  [childPropTypeUtil.key, childPropTypeUtil.schema, propKey]
7036
7446
  );
7037
- const contextValue = (0, import_react55.useMemo)(
7447
+ const contextValue = (0, import_react57.useMemo)(
7038
7448
  () => ({
7039
7449
  ...childControlConfig,
7040
7450
  placeholder: placeholder || "",
@@ -7044,14 +7454,14 @@ var RepeatableControl = createControl(
7044
7454
  );
7045
7455
  const { propType, value, setValue } = useBoundProp(childArrayPropTypeUtil2);
7046
7456
  const newItemIndex = addItemTooltipProps?.newItemIndex === null ? void 0 : 0;
7047
- return /* @__PURE__ */ React95.createElement(PropProvider, { propType, value, setValue }, /* @__PURE__ */ React95.createElement(RepeatableControlContext.Provider, { value: contextValue }, /* @__PURE__ */ React95.createElement(
7457
+ return /* @__PURE__ */ React97.createElement(PropProvider, { propType, value, setValue }, /* @__PURE__ */ React97.createElement(RepeatableControlContext.Provider, { value: contextValue }, /* @__PURE__ */ React97.createElement(
7048
7458
  ControlRepeater,
7049
7459
  {
7050
7460
  initial: childPropTypeUtil.create(initialValues || null),
7051
7461
  propTypeUtil: childArrayPropTypeUtil2,
7052
7462
  isItemDisabled: isItemDisabled2
7053
7463
  },
7054
- /* @__PURE__ */ React95.createElement(RepeaterHeader, { label: repeaterLabel }, /* @__PURE__ */ React95.createElement(
7464
+ /* @__PURE__ */ React97.createElement(RepeaterHeader, { label: repeaterLabel }, /* @__PURE__ */ React97.createElement(
7055
7465
  TooltipAddItemAction,
7056
7466
  {
7057
7467
  ...addItemTooltipProps,
@@ -7059,22 +7469,22 @@ var RepeatableControl = createControl(
7059
7469
  ariaLabel: repeaterLabel
7060
7470
  }
7061
7471
  )),
7062
- /* @__PURE__ */ React95.createElement(ItemsContainer, { isSortable }, /* @__PURE__ */ React95.createElement(
7472
+ /* @__PURE__ */ React97.createElement(ItemsContainer, { isSortable }, /* @__PURE__ */ React97.createElement(
7063
7473
  Item,
7064
7474
  {
7065
7475
  Icon: ItemIcon3,
7066
7476
  Label: ItemLabel4,
7067
- actions: /* @__PURE__ */ React95.createElement(React95.Fragment, null, showDuplicate && /* @__PURE__ */ React95.createElement(DuplicateItemAction, null), showToggle && /* @__PURE__ */ React95.createElement(DisableItemAction, null), /* @__PURE__ */ React95.createElement(RemoveItemAction, null))
7477
+ actions: /* @__PURE__ */ React97.createElement(React97.Fragment, null, showDuplicate && /* @__PURE__ */ React97.createElement(DuplicateItemAction, null), showToggle && /* @__PURE__ */ React97.createElement(DisableItemAction, null), /* @__PURE__ */ React97.createElement(RemoveItemAction, null))
7068
7478
  }
7069
7479
  )),
7070
- /* @__PURE__ */ React95.createElement(EditItemPopover, null, /* @__PURE__ */ React95.createElement(Content2, null))
7480
+ /* @__PURE__ */ React97.createElement(EditItemPopover, null, /* @__PURE__ */ React97.createElement(Content2, null))
7071
7481
  )));
7072
7482
  }
7073
7483
  );
7074
- var ItemIcon3 = () => /* @__PURE__ */ React95.createElement(React95.Fragment, null);
7484
+ var ItemIcon3 = () => /* @__PURE__ */ React97.createElement(React97.Fragment, null);
7075
7485
  var Content2 = () => {
7076
7486
  const { component: ChildControl, props = {} } = useRepeatableControlContext();
7077
- return /* @__PURE__ */ React95.createElement(PopoverContent, { p: 1.5 }, /* @__PURE__ */ React95.createElement(PopoverGridContainer, null, /* @__PURE__ */ React95.createElement(ChildControl, { ...props })));
7487
+ return /* @__PURE__ */ React97.createElement(PopoverContent, { p: 1.5 }, /* @__PURE__ */ React97.createElement(PopoverGridContainer, null, /* @__PURE__ */ React97.createElement(ChildControl, { ...props })));
7078
7488
  };
7079
7489
  var interpolate = (template, data) => {
7080
7490
  if (!data) {
@@ -7157,7 +7567,7 @@ var ItemLabel4 = ({ value }) => {
7157
7567
  const label = showPlaceholder ? placeholder : interpolate(patternLabel, value);
7158
7568
  const isReadOnly = !!childProps?.readOnly;
7159
7569
  const color = getTextColor(isReadOnly, showPlaceholder);
7160
- return /* @__PURE__ */ React95.createElement(import_ui78.Box, { component: "span", color }, label);
7570
+ return /* @__PURE__ */ React97.createElement(import_ui80.Box, { component: "span", color }, label);
7161
7571
  };
7162
7572
  var getAllProperties = (pattern) => {
7163
7573
  const properties = pattern.match(PLACEHOLDER_REGEX)?.map((match) => match.slice(2, -1)) || [];
@@ -7165,11 +7575,11 @@ var getAllProperties = (pattern) => {
7165
7575
  };
7166
7576
 
7167
7577
  // src/controls/key-value-control.tsx
7168
- var React96 = __toESM(require("react"));
7169
- var import_react56 = require("react");
7578
+ var React98 = __toESM(require("react"));
7579
+ var import_react58 = require("react");
7170
7580
  var import_editor_props44 = require("@elementor/editor-props");
7171
- var import_ui79 = require("@elementor/ui");
7172
- var import_i18n44 = require("@wordpress/i18n");
7581
+ var import_ui81 = require("@elementor/ui");
7582
+ var import_i18n46 = require("@wordpress/i18n");
7173
7583
 
7174
7584
  // src/utils/escape-html-attr.ts
7175
7585
  var escapeHtmlAttr = (value) => {
@@ -7193,23 +7603,23 @@ var getInitialFieldValue = (fieldValue) => {
7193
7603
  };
7194
7604
  var KeyValueControl = createControl((props = {}) => {
7195
7605
  const { value, setValue, ...propContext } = useBoundProp(import_editor_props44.keyValuePropTypeUtil);
7196
- const [keyError, setKeyError] = (0, import_react56.useState)("");
7197
- const [valueError, setValueError] = (0, import_react56.useState)("");
7198
- const [sessionState, setSessionState] = (0, import_react56.useState)({
7606
+ const [keyError, setKeyError] = (0, import_react58.useState)("");
7607
+ const [valueError, setValueError] = (0, import_react58.useState)("");
7608
+ const [sessionState, setSessionState] = (0, import_react58.useState)({
7199
7609
  key: getInitialFieldValue(value?.key),
7200
7610
  value: getInitialFieldValue(value?.value)
7201
7611
  });
7202
- const keyLabel = props.keyName || (0, import_i18n44.__)("Key", "elementor");
7203
- const valueLabel = props.valueName || (0, import_i18n44.__)("Value", "elementor");
7612
+ const keyLabel = props.keyName || (0, import_i18n46.__)("Key", "elementor");
7613
+ const valueLabel = props.valueName || (0, import_i18n46.__)("Value", "elementor");
7204
7614
  const { keyHelper, valueHelper } = props.getHelperText?.(sessionState.key, sessionState.value) || {
7205
7615
  keyHelper: void 0,
7206
7616
  valueHelper: void 0
7207
7617
  };
7208
- const [keyRegex, valueRegex, errMsg] = (0, import_react56.useMemo)(
7618
+ const [keyRegex, valueRegex, errMsg] = (0, import_react58.useMemo)(
7209
7619
  () => [
7210
7620
  props.regexKey ? new RegExp(props.regexKey) : void 0,
7211
7621
  props.regexValue ? new RegExp(props.regexValue) : void 0,
7212
- props.validationErrorMessage || (0, import_i18n44.__)("Invalid Format", "elementor")
7622
+ props.validationErrorMessage || (0, import_i18n46.__)("Invalid Format", "elementor")
7213
7623
  ],
7214
7624
  [props.regexKey, props.regexValue, props.validationErrorMessage]
7215
7625
  );
@@ -7258,14 +7668,14 @@ var KeyValueControl = createControl((props = {}) => {
7258
7668
  });
7259
7669
  }
7260
7670
  };
7261
- return /* @__PURE__ */ React96.createElement(PropProvider, { ...propContext, value, setValue: handleChange }, /* @__PURE__ */ React96.createElement(import_ui79.Grid, { container: true, gap: 1.5 }, /* @__PURE__ */ React96.createElement(import_ui79.Grid, { item: true, xs: 12, display: "flex", flexDirection: "column" }, /* @__PURE__ */ React96.createElement(import_ui79.FormLabel, { size: "tiny", sx: { pb: 1 } }, keyLabel), /* @__PURE__ */ React96.createElement(PropKeyProvider, { bind: "key" }, /* @__PURE__ */ React96.createElement(
7671
+ return /* @__PURE__ */ React98.createElement(PropProvider, { ...propContext, value, setValue: handleChange }, /* @__PURE__ */ React98.createElement(import_ui81.Grid, { container: true, gap: 1.5 }, /* @__PURE__ */ React98.createElement(import_ui81.Grid, { item: true, xs: 12, display: "flex", flexDirection: "column" }, /* @__PURE__ */ React98.createElement(import_ui81.FormLabel, { size: "tiny", sx: { pb: 1 } }, keyLabel), /* @__PURE__ */ React98.createElement(PropKeyProvider, { bind: "key" }, /* @__PURE__ */ React98.createElement(
7262
7672
  TextControl,
7263
7673
  {
7264
7674
  inputValue: props.escapeHtml ? escapeHtmlAttr(sessionState.key) : sessionState.key,
7265
7675
  error: !!keyError,
7266
7676
  helperText: keyHelper
7267
7677
  }
7268
- )), !!keyError && /* @__PURE__ */ React96.createElement(import_ui79.FormHelperText, { error: true }, keyError)), /* @__PURE__ */ React96.createElement(import_ui79.Grid, { item: true, xs: 12, display: "flex", flexDirection: "column" }, /* @__PURE__ */ React96.createElement(import_ui79.FormLabel, { size: "tiny", sx: { pb: 1 } }, valueLabel), /* @__PURE__ */ React96.createElement(PropKeyProvider, { bind: "value" }, /* @__PURE__ */ React96.createElement(
7678
+ )), !!keyError && /* @__PURE__ */ React98.createElement(import_ui81.FormHelperText, { error: true }, keyError)), /* @__PURE__ */ React98.createElement(import_ui81.Grid, { item: true, xs: 12, display: "flex", flexDirection: "column" }, /* @__PURE__ */ React98.createElement(import_ui81.FormLabel, { size: "tiny", sx: { pb: 1 } }, valueLabel), /* @__PURE__ */ React98.createElement(PropKeyProvider, { bind: "value" }, /* @__PURE__ */ React98.createElement(
7269
7679
  TextControl,
7270
7680
  {
7271
7681
  inputValue: props.escapeHtml ? escapeHtmlAttr(sessionState.value) : sessionState.value,
@@ -7273,27 +7683,27 @@ var KeyValueControl = createControl((props = {}) => {
7273
7683
  inputDisabled: !!keyError,
7274
7684
  helperText: valueHelper
7275
7685
  }
7276
- )), !!valueError && /* @__PURE__ */ React96.createElement(import_ui79.FormHelperText, { error: true }, valueError))));
7686
+ )), !!valueError && /* @__PURE__ */ React98.createElement(import_ui81.FormHelperText, { error: true }, valueError))));
7277
7687
  });
7278
7688
 
7279
7689
  // src/controls/position-control.tsx
7280
- var React97 = __toESM(require("react"));
7690
+ var React99 = __toESM(require("react"));
7281
7691
  var import_editor_props45 = require("@elementor/editor-props");
7282
7692
  var import_editor_ui13 = require("@elementor/editor-ui");
7283
- var import_icons29 = require("@elementor/icons");
7284
- var import_ui80 = require("@elementor/ui");
7285
- var import_i18n45 = require("@wordpress/i18n");
7693
+ var import_icons30 = require("@elementor/icons");
7694
+ var import_ui82 = require("@elementor/ui");
7695
+ var import_i18n47 = require("@wordpress/i18n");
7286
7696
  var positionOptions = [
7287
- { label: (0, import_i18n45.__)("Center center", "elementor"), value: "center center" },
7288
- { label: (0, import_i18n45.__)("Center left", "elementor"), value: "center left" },
7289
- { label: (0, import_i18n45.__)("Center right", "elementor"), value: "center right" },
7290
- { label: (0, import_i18n45.__)("Top center", "elementor"), value: "top center" },
7291
- { label: (0, import_i18n45.__)("Top left", "elementor"), value: "top left" },
7292
- { label: (0, import_i18n45.__)("Top right", "elementor"), value: "top right" },
7293
- { label: (0, import_i18n45.__)("Bottom center", "elementor"), value: "bottom center" },
7294
- { label: (0, import_i18n45.__)("Bottom left", "elementor"), value: "bottom left" },
7295
- { label: (0, import_i18n45.__)("Bottom right", "elementor"), value: "bottom right" },
7296
- { label: (0, import_i18n45.__)("Custom", "elementor"), value: "custom" }
7697
+ { label: (0, import_i18n47.__)("Center center", "elementor"), value: "center center" },
7698
+ { label: (0, import_i18n47.__)("Center left", "elementor"), value: "center left" },
7699
+ { label: (0, import_i18n47.__)("Center right", "elementor"), value: "center right" },
7700
+ { label: (0, import_i18n47.__)("Top center", "elementor"), value: "top center" },
7701
+ { label: (0, import_i18n47.__)("Top left", "elementor"), value: "top left" },
7702
+ { label: (0, import_i18n47.__)("Top right", "elementor"), value: "top right" },
7703
+ { label: (0, import_i18n47.__)("Bottom center", "elementor"), value: "bottom center" },
7704
+ { label: (0, import_i18n47.__)("Bottom left", "elementor"), value: "bottom left" },
7705
+ { label: (0, import_i18n47.__)("Bottom right", "elementor"), value: "bottom right" },
7706
+ { label: (0, import_i18n47.__)("Custom", "elementor"), value: "custom" }
7297
7707
  ];
7298
7708
  var PositionControl = () => {
7299
7709
  const positionContext = useBoundProp(import_editor_props45.positionPropTypeUtil);
@@ -7308,8 +7718,8 @@ var PositionControl = () => {
7308
7718
  stringPropContext.setValue(value);
7309
7719
  }
7310
7720
  };
7311
- return /* @__PURE__ */ React97.createElement(import_ui80.Grid, { container: true, spacing: 1.5 }, /* @__PURE__ */ React97.createElement(import_ui80.Grid, { item: true, xs: 12 }, /* @__PURE__ */ React97.createElement(import_ui80.Grid, { container: true, gap: 2, alignItems: "center", flexWrap: "nowrap" }, /* @__PURE__ */ React97.createElement(import_ui80.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React97.createElement(ControlFormLabel, null, (0, import_i18n45.__)("Object position", "elementor"))), /* @__PURE__ */ React97.createElement(import_ui80.Grid, { item: true, xs: 6, sx: { overflow: "hidden" } }, /* @__PURE__ */ React97.createElement(
7312
- import_ui80.Select,
7721
+ return /* @__PURE__ */ React99.createElement(import_ui82.Grid, { container: true, spacing: 1.5 }, /* @__PURE__ */ React99.createElement(import_ui82.Grid, { item: true, xs: 12 }, /* @__PURE__ */ React99.createElement(import_ui82.Grid, { container: true, gap: 2, alignItems: "center", flexWrap: "nowrap" }, /* @__PURE__ */ React99.createElement(import_ui82.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React99.createElement(ControlFormLabel, null, (0, import_i18n47.__)("Object position", "elementor"))), /* @__PURE__ */ React99.createElement(import_ui82.Grid, { item: true, xs: 6, sx: { overflow: "hidden" } }, /* @__PURE__ */ React99.createElement(
7722
+ import_ui82.Select,
7313
7723
  {
7314
7724
  size: "tiny",
7315
7725
  displayEmpty: true,
@@ -7319,29 +7729,29 @@ var PositionControl = () => {
7319
7729
  renderValue: (selectedValue) => getSelectRenderValue(positionOptions, placeholder, selectedValue),
7320
7730
  fullWidth: true
7321
7731
  },
7322
- positionOptions.map(({ label, value }) => /* @__PURE__ */ React97.createElement(import_editor_ui13.MenuListItem, { key: value, value: value ?? "" }, label))
7323
- )))), isCustom && /* @__PURE__ */ React97.createElement(PropProvider, { ...positionContext }, /* @__PURE__ */ React97.createElement(import_ui80.Grid, { item: true, xs: 12 }, /* @__PURE__ */ React97.createElement(import_ui80.Grid, { container: true, spacing: 1.5 }, /* @__PURE__ */ React97.createElement(import_ui80.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React97.createElement(PropKeyProvider, { bind: "x" }, /* @__PURE__ */ React97.createElement(
7732
+ positionOptions.map(({ label, value }) => /* @__PURE__ */ React99.createElement(import_editor_ui13.MenuListItem, { key: value, value: value ?? "" }, label))
7733
+ )))), isCustom && /* @__PURE__ */ React99.createElement(PropProvider, { ...positionContext }, /* @__PURE__ */ React99.createElement(import_ui82.Grid, { item: true, xs: 12 }, /* @__PURE__ */ React99.createElement(import_ui82.Grid, { container: true, spacing: 1.5 }, /* @__PURE__ */ React99.createElement(import_ui82.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React99.createElement(PropKeyProvider, { bind: "x" }, /* @__PURE__ */ React99.createElement(
7324
7734
  SizeControl,
7325
7735
  {
7326
- startIcon: /* @__PURE__ */ React97.createElement(import_icons29.LetterXIcon, { fontSize: "tiny" }),
7736
+ startIcon: /* @__PURE__ */ React99.createElement(import_icons30.LetterXIcon, { fontSize: "tiny" }),
7327
7737
  min: -Number.MAX_SAFE_INTEGER
7328
7738
  }
7329
- ))), /* @__PURE__ */ React97.createElement(import_ui80.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React97.createElement(PropKeyProvider, { bind: "y" }, /* @__PURE__ */ React97.createElement(
7739
+ ))), /* @__PURE__ */ React99.createElement(import_ui82.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React99.createElement(PropKeyProvider, { bind: "y" }, /* @__PURE__ */ React99.createElement(
7330
7740
  SizeControl,
7331
7741
  {
7332
- startIcon: /* @__PURE__ */ React97.createElement(import_icons29.LetterYIcon, { fontSize: "tiny" }),
7742
+ startIcon: /* @__PURE__ */ React99.createElement(import_icons30.LetterYIcon, { fontSize: "tiny" }),
7333
7743
  min: -Number.MAX_SAFE_INTEGER
7334
7744
  }
7335
7745
  )))))));
7336
7746
  };
7337
7747
 
7338
7748
  // src/controls/transform-control/transform-repeater-control.tsx
7339
- var React110 = __toESM(require("react"));
7340
- var import_react64 = require("react");
7749
+ var React112 = __toESM(require("react"));
7750
+ var import_react66 = require("react");
7341
7751
  var import_editor_props54 = require("@elementor/editor-props");
7342
- var import_icons36 = require("@elementor/icons");
7343
- var import_ui93 = require("@elementor/ui");
7344
- var import_i18n55 = require("@wordpress/i18n");
7752
+ var import_icons37 = require("@elementor/icons");
7753
+ var import_ui95 = require("@elementor/ui");
7754
+ var import_i18n57 = require("@wordpress/i18n");
7345
7755
 
7346
7756
  // src/controls/transform-control/initial-values.ts
7347
7757
  var import_editor_props46 = require("@elementor/editor-props");
@@ -7390,24 +7800,24 @@ var initialSkewValue = import_editor_props46.skewTransformPropTypeUtil.create({
7390
7800
  });
7391
7801
 
7392
7802
  // src/controls/transform-control/transform-content.tsx
7393
- var React104 = __toESM(require("react"));
7394
- var import_ui88 = require("@elementor/ui");
7395
- var import_i18n50 = require("@wordpress/i18n");
7803
+ var React106 = __toESM(require("react"));
7804
+ var import_ui90 = require("@elementor/ui");
7805
+ var import_i18n52 = require("@wordpress/i18n");
7396
7806
 
7397
7807
  // src/controls/transform-control/functions/move.tsx
7398
- var React99 = __toESM(require("react"));
7399
- var import_react57 = require("react");
7808
+ var React101 = __toESM(require("react"));
7809
+ var import_react59 = require("react");
7400
7810
  var import_editor_props47 = require("@elementor/editor-props");
7401
- var import_icons30 = require("@elementor/icons");
7402
- var import_ui82 = require("@elementor/ui");
7403
- var import_i18n46 = require("@wordpress/i18n");
7811
+ var import_icons31 = require("@elementor/icons");
7812
+ var import_ui84 = require("@elementor/ui");
7813
+ var import_i18n48 = require("@wordpress/i18n");
7404
7814
 
7405
7815
  // src/controls/transform-control/functions/axis-row.tsx
7406
- var React98 = __toESM(require("react"));
7407
- var import_ui81 = require("@elementor/ui");
7816
+ var React100 = __toESM(require("react"));
7817
+ var import_ui83 = require("@elementor/ui");
7408
7818
  var AxisRow = ({ label, bind, startIcon, anchorRef, units: units2, variant = "angle" }) => {
7409
7819
  const safeId = label.replace(/\s+/g, "-").toLowerCase();
7410
- return /* @__PURE__ */ React98.createElement(import_ui81.Grid, { item: true, xs: 12 }, /* @__PURE__ */ React98.createElement(PopoverGridContainer, { ref: anchorRef }, /* @__PURE__ */ React98.createElement(import_ui81.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React98.createElement(ControlLabel, { htmlFor: safeId }, label)), /* @__PURE__ */ React98.createElement(import_ui81.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React98.createElement(PropKeyProvider, { bind }, /* @__PURE__ */ React98.createElement(
7820
+ return /* @__PURE__ */ React100.createElement(import_ui83.Grid, { item: true, xs: 12 }, /* @__PURE__ */ React100.createElement(PopoverGridContainer, { ref: anchorRef }, /* @__PURE__ */ React100.createElement(import_ui83.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React100.createElement(ControlLabel, { htmlFor: safeId }, label)), /* @__PURE__ */ React100.createElement(import_ui83.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React100.createElement(PropKeyProvider, { bind }, /* @__PURE__ */ React100.createElement(
7411
7821
  SizeControl,
7412
7822
  {
7413
7823
  anchorRef,
@@ -7423,28 +7833,28 @@ var AxisRow = ({ label, bind, startIcon, anchorRef, units: units2, variant = "an
7423
7833
  // src/controls/transform-control/functions/move.tsx
7424
7834
  var moveAxisControls = [
7425
7835
  {
7426
- label: (0, import_i18n46.__)("Move X", "elementor"),
7836
+ label: (0, import_i18n48.__)("Move X", "elementor"),
7427
7837
  bind: "x",
7428
- startIcon: /* @__PURE__ */ React99.createElement(import_icons30.ArrowRightIcon, { fontSize: "tiny" }),
7838
+ startIcon: /* @__PURE__ */ React101.createElement(import_icons31.ArrowRightIcon, { fontSize: "tiny" }),
7429
7839
  units: ["px", "%", "em", "rem", "vw"]
7430
7840
  },
7431
7841
  {
7432
- label: (0, import_i18n46.__)("Move Y", "elementor"),
7842
+ label: (0, import_i18n48.__)("Move Y", "elementor"),
7433
7843
  bind: "y",
7434
- startIcon: /* @__PURE__ */ React99.createElement(import_icons30.ArrowDownSmallIcon, { fontSize: "tiny" }),
7844
+ startIcon: /* @__PURE__ */ React101.createElement(import_icons31.ArrowDownSmallIcon, { fontSize: "tiny" }),
7435
7845
  units: ["px", "%", "em", "rem", "vh"]
7436
7846
  },
7437
7847
  {
7438
- label: (0, import_i18n46.__)("Move Z", "elementor"),
7848
+ label: (0, import_i18n48.__)("Move Z", "elementor"),
7439
7849
  bind: "z",
7440
- startIcon: /* @__PURE__ */ React99.createElement(import_icons30.ArrowDownLeftIcon, { fontSize: "tiny" }),
7850
+ startIcon: /* @__PURE__ */ React101.createElement(import_icons31.ArrowDownLeftIcon, { fontSize: "tiny" }),
7441
7851
  units: ["px", "%", "em", "rem", "vw", "vh"]
7442
7852
  }
7443
7853
  ];
7444
7854
  var Move = () => {
7445
7855
  const context = useBoundProp(import_editor_props47.moveTransformPropTypeUtil);
7446
- const rowRefs = [(0, import_react57.useRef)(null), (0, import_react57.useRef)(null), (0, import_react57.useRef)(null)];
7447
- return /* @__PURE__ */ React99.createElement(import_ui82.Grid, { container: true, spacing: 1.5 }, /* @__PURE__ */ React99.createElement(PropProvider, { ...context }, /* @__PURE__ */ React99.createElement(PropKeyProvider, { bind: TransformFunctionKeys.move }, moveAxisControls.map((control, index) => /* @__PURE__ */ React99.createElement(
7856
+ const rowRefs = [(0, import_react59.useRef)(null), (0, import_react59.useRef)(null), (0, import_react59.useRef)(null)];
7857
+ return /* @__PURE__ */ React101.createElement(import_ui84.Grid, { container: true, spacing: 1.5 }, /* @__PURE__ */ React101.createElement(PropProvider, { ...context }, /* @__PURE__ */ React101.createElement(PropKeyProvider, { bind: TransformFunctionKeys.move }, moveAxisControls.map((control, index) => /* @__PURE__ */ React101.createElement(
7448
7858
  AxisRow,
7449
7859
  {
7450
7860
  key: control.bind,
@@ -7457,34 +7867,34 @@ var Move = () => {
7457
7867
  };
7458
7868
 
7459
7869
  // src/controls/transform-control/functions/rotate.tsx
7460
- var React100 = __toESM(require("react"));
7461
- var import_react58 = require("react");
7870
+ var React102 = __toESM(require("react"));
7871
+ var import_react60 = require("react");
7462
7872
  var import_editor_props48 = require("@elementor/editor-props");
7463
- var import_icons31 = require("@elementor/icons");
7464
- var import_ui83 = require("@elementor/ui");
7465
- var import_i18n47 = require("@wordpress/i18n");
7873
+ var import_icons32 = require("@elementor/icons");
7874
+ var import_ui85 = require("@elementor/ui");
7875
+ var import_i18n49 = require("@wordpress/i18n");
7466
7876
  var rotateAxisControls = [
7467
7877
  {
7468
- label: (0, import_i18n47.__)("Rotate X", "elementor"),
7878
+ label: (0, import_i18n49.__)("Rotate X", "elementor"),
7469
7879
  bind: "x",
7470
- startIcon: /* @__PURE__ */ React100.createElement(import_icons31.Arrow360Icon, { fontSize: "tiny" })
7880
+ startIcon: /* @__PURE__ */ React102.createElement(import_icons32.Arrow360Icon, { fontSize: "tiny" })
7471
7881
  },
7472
7882
  {
7473
- label: (0, import_i18n47.__)("Rotate Y", "elementor"),
7883
+ label: (0, import_i18n49.__)("Rotate Y", "elementor"),
7474
7884
  bind: "y",
7475
- startIcon: /* @__PURE__ */ React100.createElement(import_icons31.Arrow360Icon, { fontSize: "tiny", style: { transform: "scaleX(-1) rotate(-90deg)" } })
7885
+ startIcon: /* @__PURE__ */ React102.createElement(import_icons32.Arrow360Icon, { fontSize: "tiny", style: { transform: "scaleX(-1) rotate(-90deg)" } })
7476
7886
  },
7477
7887
  {
7478
- label: (0, import_i18n47.__)("Rotate Z", "elementor"),
7888
+ label: (0, import_i18n49.__)("Rotate Z", "elementor"),
7479
7889
  bind: "z",
7480
- startIcon: /* @__PURE__ */ React100.createElement(import_icons31.RotateClockwiseIcon, { fontSize: "tiny" })
7890
+ startIcon: /* @__PURE__ */ React102.createElement(import_icons32.RotateClockwiseIcon, { fontSize: "tiny" })
7481
7891
  }
7482
7892
  ];
7483
7893
  var rotateUnits = ["deg", "rad", "grad", "turn"];
7484
7894
  var Rotate = () => {
7485
7895
  const context = useBoundProp(import_editor_props48.rotateTransformPropTypeUtil);
7486
- const rowRefs = [(0, import_react58.useRef)(null), (0, import_react58.useRef)(null), (0, import_react58.useRef)(null)];
7487
- return /* @__PURE__ */ React100.createElement(import_ui83.Grid, { container: true, spacing: 1.5 }, /* @__PURE__ */ React100.createElement(PropProvider, { ...context }, /* @__PURE__ */ React100.createElement(PropKeyProvider, { bind: TransformFunctionKeys.rotate }, rotateAxisControls.map((control, index) => /* @__PURE__ */ React100.createElement(
7896
+ const rowRefs = [(0, import_react60.useRef)(null), (0, import_react60.useRef)(null), (0, import_react60.useRef)(null)];
7897
+ return /* @__PURE__ */ React102.createElement(import_ui85.Grid, { container: true, spacing: 1.5 }, /* @__PURE__ */ React102.createElement(PropProvider, { ...context }, /* @__PURE__ */ React102.createElement(PropKeyProvider, { bind: TransformFunctionKeys.rotate }, rotateAxisControls.map((control, index) => /* @__PURE__ */ React102.createElement(
7488
7898
  AxisRow,
7489
7899
  {
7490
7900
  key: control.bind,
@@ -7496,68 +7906,68 @@ var Rotate = () => {
7496
7906
  };
7497
7907
 
7498
7908
  // src/controls/transform-control/functions/scale.tsx
7499
- var React102 = __toESM(require("react"));
7500
- var import_react59 = require("react");
7909
+ var React104 = __toESM(require("react"));
7910
+ var import_react61 = require("react");
7501
7911
  var import_editor_props49 = require("@elementor/editor-props");
7502
- var import_icons32 = require("@elementor/icons");
7503
- var import_ui85 = require("@elementor/ui");
7504
- var import_i18n48 = require("@wordpress/i18n");
7912
+ var import_icons33 = require("@elementor/icons");
7913
+ var import_ui87 = require("@elementor/ui");
7914
+ var import_i18n50 = require("@wordpress/i18n");
7505
7915
 
7506
7916
  // src/controls/transform-control/functions/scale-axis-row.tsx
7507
- var React101 = __toESM(require("react"));
7508
- var import_ui84 = require("@elementor/ui");
7917
+ var React103 = __toESM(require("react"));
7918
+ var import_ui86 = require("@elementor/ui");
7509
7919
  var ScaleAxisRow = ({ label, bind, startIcon, anchorRef }) => {
7510
- return /* @__PURE__ */ React101.createElement(import_ui84.Grid, { item: true, xs: 12 }, /* @__PURE__ */ React101.createElement(PopoverGridContainer, { ref: anchorRef }, /* @__PURE__ */ React101.createElement(import_ui84.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React101.createElement(ControlLabel, null, label)), /* @__PURE__ */ React101.createElement(import_ui84.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React101.createElement(PropKeyProvider, { bind }, /* @__PURE__ */ React101.createElement(NumberControl, { step: 0.1, placeholder: "1", startIcon })))));
7920
+ return /* @__PURE__ */ React103.createElement(import_ui86.Grid, { item: true, xs: 12 }, /* @__PURE__ */ React103.createElement(PopoverGridContainer, { ref: anchorRef }, /* @__PURE__ */ React103.createElement(import_ui86.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React103.createElement(ControlLabel, null, label)), /* @__PURE__ */ React103.createElement(import_ui86.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React103.createElement(PropKeyProvider, { bind }, /* @__PURE__ */ React103.createElement(NumberControl, { step: 0.1, placeholder: "1", startIcon })))));
7511
7921
  };
7512
7922
 
7513
7923
  // src/controls/transform-control/functions/scale.tsx
7514
7924
  var scaleAxisControls = [
7515
7925
  {
7516
- label: (0, import_i18n48.__)("Scale X", "elementor"),
7926
+ label: (0, import_i18n50.__)("Scale X", "elementor"),
7517
7927
  bind: "x",
7518
- startIcon: /* @__PURE__ */ React102.createElement(import_icons32.ArrowRightIcon, { fontSize: "tiny" })
7928
+ startIcon: /* @__PURE__ */ React104.createElement(import_icons33.ArrowRightIcon, { fontSize: "tiny" })
7519
7929
  },
7520
7930
  {
7521
- label: (0, import_i18n48.__)("Scale Y", "elementor"),
7931
+ label: (0, import_i18n50.__)("Scale Y", "elementor"),
7522
7932
  bind: "y",
7523
- startIcon: /* @__PURE__ */ React102.createElement(import_icons32.ArrowDownSmallIcon, { fontSize: "tiny" })
7933
+ startIcon: /* @__PURE__ */ React104.createElement(import_icons33.ArrowDownSmallIcon, { fontSize: "tiny" })
7524
7934
  },
7525
7935
  {
7526
- label: (0, import_i18n48.__)("Scale Z", "elementor"),
7936
+ label: (0, import_i18n50.__)("Scale Z", "elementor"),
7527
7937
  bind: "z",
7528
- startIcon: /* @__PURE__ */ React102.createElement(import_icons32.ArrowDownLeftIcon, { fontSize: "tiny" })
7938
+ startIcon: /* @__PURE__ */ React104.createElement(import_icons33.ArrowDownLeftIcon, { fontSize: "tiny" })
7529
7939
  }
7530
7940
  ];
7531
7941
  var Scale = () => {
7532
7942
  const context = useBoundProp(import_editor_props49.scaleTransformPropTypeUtil);
7533
- const rowRefs = [(0, import_react59.useRef)(null), (0, import_react59.useRef)(null), (0, import_react59.useRef)(null)];
7534
- return /* @__PURE__ */ React102.createElement(import_ui85.Grid, { container: true, spacing: 1.5 }, /* @__PURE__ */ React102.createElement(PropProvider, { ...context }, /* @__PURE__ */ React102.createElement(PropKeyProvider, { bind: TransformFunctionKeys.scale }, scaleAxisControls.map((control, index) => /* @__PURE__ */ React102.createElement(ScaleAxisRow, { key: control.bind, ...control, anchorRef: rowRefs[index] })))));
7943
+ const rowRefs = [(0, import_react61.useRef)(null), (0, import_react61.useRef)(null), (0, import_react61.useRef)(null)];
7944
+ return /* @__PURE__ */ React104.createElement(import_ui87.Grid, { container: true, spacing: 1.5 }, /* @__PURE__ */ React104.createElement(PropProvider, { ...context }, /* @__PURE__ */ React104.createElement(PropKeyProvider, { bind: TransformFunctionKeys.scale }, scaleAxisControls.map((control, index) => /* @__PURE__ */ React104.createElement(ScaleAxisRow, { key: control.bind, ...control, anchorRef: rowRefs[index] })))));
7535
7945
  };
7536
7946
 
7537
7947
  // src/controls/transform-control/functions/skew.tsx
7538
- var React103 = __toESM(require("react"));
7539
- var import_react60 = require("react");
7948
+ var React105 = __toESM(require("react"));
7949
+ var import_react62 = require("react");
7540
7950
  var import_editor_props50 = require("@elementor/editor-props");
7541
- var import_icons33 = require("@elementor/icons");
7542
- var import_ui86 = require("@elementor/ui");
7543
- var import_i18n49 = require("@wordpress/i18n");
7951
+ var import_icons34 = require("@elementor/icons");
7952
+ var import_ui88 = require("@elementor/ui");
7953
+ var import_i18n51 = require("@wordpress/i18n");
7544
7954
  var skewAxisControls = [
7545
7955
  {
7546
- label: (0, import_i18n49.__)("Skew X", "elementor"),
7956
+ label: (0, import_i18n51.__)("Skew X", "elementor"),
7547
7957
  bind: "x",
7548
- startIcon: /* @__PURE__ */ React103.createElement(import_icons33.ArrowRightIcon, { fontSize: "tiny" })
7958
+ startIcon: /* @__PURE__ */ React105.createElement(import_icons34.ArrowRightIcon, { fontSize: "tiny" })
7549
7959
  },
7550
7960
  {
7551
- label: (0, import_i18n49.__)("Skew Y", "elementor"),
7961
+ label: (0, import_i18n51.__)("Skew Y", "elementor"),
7552
7962
  bind: "y",
7553
- startIcon: /* @__PURE__ */ React103.createElement(import_icons33.ArrowLeftIcon, { fontSize: "tiny", style: { transform: "scaleX(-1) rotate(-90deg)" } })
7963
+ startIcon: /* @__PURE__ */ React105.createElement(import_icons34.ArrowLeftIcon, { fontSize: "tiny", style: { transform: "scaleX(-1) rotate(-90deg)" } })
7554
7964
  }
7555
7965
  ];
7556
7966
  var skewUnits = ["deg", "rad", "grad", "turn"];
7557
7967
  var Skew = () => {
7558
7968
  const context = useBoundProp(import_editor_props50.skewTransformPropTypeUtil);
7559
- const rowRefs = [(0, import_react60.useRef)(null), (0, import_react60.useRef)(null), (0, import_react60.useRef)(null)];
7560
- return /* @__PURE__ */ React103.createElement(import_ui86.Grid, { container: true, spacing: 1.5 }, /* @__PURE__ */ React103.createElement(PropProvider, { ...context }, /* @__PURE__ */ React103.createElement(PropKeyProvider, { bind: TransformFunctionKeys.skew }, skewAxisControls.map((control, index) => /* @__PURE__ */ React103.createElement(
7969
+ const rowRefs = [(0, import_react62.useRef)(null), (0, import_react62.useRef)(null), (0, import_react62.useRef)(null)];
7970
+ return /* @__PURE__ */ React105.createElement(import_ui88.Grid, { container: true, spacing: 1.5 }, /* @__PURE__ */ React105.createElement(PropProvider, { ...context }, /* @__PURE__ */ React105.createElement(PropKeyProvider, { bind: TransformFunctionKeys.skew }, skewAxisControls.map((control, index) => /* @__PURE__ */ React105.createElement(
7561
7971
  AxisRow,
7562
7972
  {
7563
7973
  key: control.bind,
@@ -7569,9 +7979,9 @@ var Skew = () => {
7569
7979
  };
7570
7980
 
7571
7981
  // src/controls/transform-control/use-transform-tabs-history.tsx
7572
- var import_react61 = require("react");
7982
+ var import_react63 = require("react");
7573
7983
  var import_editor_props51 = require("@elementor/editor-props");
7574
- var import_ui87 = require("@elementor/ui");
7984
+ var import_ui89 = require("@elementor/ui");
7575
7985
  var useTransformTabsHistory = ({
7576
7986
  move: initialMove,
7577
7987
  scale: initialScale,
@@ -7595,8 +8005,8 @@ var useTransformTabsHistory = ({
7595
8005
  return TransformFunctionKeys.move;
7596
8006
  }
7597
8007
  };
7598
- const { getTabsProps, getTabProps, getTabPanelProps } = (0, import_ui87.useTabs)(getCurrentTransformType());
7599
- const valuesHistory = (0, import_react61.useRef)({
8008
+ const { getTabsProps, getTabProps, getTabPanelProps } = (0, import_ui89.useTabs)(getCurrentTransformType());
8009
+ const valuesHistory = (0, import_react63.useRef)({
7600
8010
  move: initialMove,
7601
8011
  scale: initialScale,
7602
8012
  rotate: initialRotate,
@@ -7657,8 +8067,8 @@ var TransformContent = () => {
7657
8067
  rotate: initialRotateValue.value,
7658
8068
  skew: initialSkewValue.value
7659
8069
  });
7660
- return /* @__PURE__ */ React104.createElement(PopoverContent, null, /* @__PURE__ */ React104.createElement(import_ui88.Box, { sx: { width: "100%" } }, /* @__PURE__ */ React104.createElement(import_ui88.Box, { sx: { borderBottom: 1, borderColor: "divider" } }, /* @__PURE__ */ React104.createElement(
7661
- import_ui88.Tabs,
8070
+ return /* @__PURE__ */ React106.createElement(PopoverContent, null, /* @__PURE__ */ React106.createElement(import_ui90.Box, { sx: { width: "100%" } }, /* @__PURE__ */ React106.createElement(import_ui90.Box, { sx: { borderBottom: 1, borderColor: "divider" } }, /* @__PURE__ */ React106.createElement(
8071
+ import_ui90.Tabs,
7662
8072
  {
7663
8073
  size: "small",
7664
8074
  variant: "fullWidth",
@@ -7668,37 +8078,37 @@ var TransformContent = () => {
7668
8078
  }
7669
8079
  },
7670
8080
  ...getTabsProps(),
7671
- "aria-label": (0, import_i18n50.__)("Transform", "elementor")
8081
+ "aria-label": (0, import_i18n52.__)("Transform", "elementor")
7672
8082
  },
7673
- /* @__PURE__ */ React104.createElement(import_ui88.Tab, { label: (0, import_i18n50.__)("Move", "elementor"), ...getTabProps(TransformFunctionKeys.move) }),
7674
- /* @__PURE__ */ React104.createElement(import_ui88.Tab, { label: (0, import_i18n50.__)("Scale", "elementor"), ...getTabProps(TransformFunctionKeys.scale) }),
7675
- /* @__PURE__ */ React104.createElement(import_ui88.Tab, { label: (0, import_i18n50.__)("Rotate", "elementor"), ...getTabProps(TransformFunctionKeys.rotate) }),
7676
- /* @__PURE__ */ React104.createElement(import_ui88.Tab, { label: (0, import_i18n50.__)("Skew", "elementor"), ...getTabProps(TransformFunctionKeys.skew) })
7677
- )), /* @__PURE__ */ React104.createElement(import_ui88.TabPanel, { sx: { p: 1.5 }, ...getTabPanelProps(TransformFunctionKeys.move) }, /* @__PURE__ */ React104.createElement(Move, null)), /* @__PURE__ */ React104.createElement(import_ui88.TabPanel, { sx: { p: 1.5 }, ...getTabPanelProps(TransformFunctionKeys.scale) }, /* @__PURE__ */ React104.createElement(Scale, null)), /* @__PURE__ */ React104.createElement(import_ui88.TabPanel, { sx: { p: 1.5 }, ...getTabPanelProps(TransformFunctionKeys.rotate) }, /* @__PURE__ */ React104.createElement(Rotate, null)), /* @__PURE__ */ React104.createElement(import_ui88.TabPanel, { sx: { p: 1.5 }, ...getTabPanelProps(TransformFunctionKeys.skew) }, /* @__PURE__ */ React104.createElement(Skew, null))));
8083
+ /* @__PURE__ */ React106.createElement(import_ui90.Tab, { label: (0, import_i18n52.__)("Move", "elementor"), ...getTabProps(TransformFunctionKeys.move) }),
8084
+ /* @__PURE__ */ React106.createElement(import_ui90.Tab, { label: (0, import_i18n52.__)("Scale", "elementor"), ...getTabProps(TransformFunctionKeys.scale) }),
8085
+ /* @__PURE__ */ React106.createElement(import_ui90.Tab, { label: (0, import_i18n52.__)("Rotate", "elementor"), ...getTabProps(TransformFunctionKeys.rotate) }),
8086
+ /* @__PURE__ */ React106.createElement(import_ui90.Tab, { label: (0, import_i18n52.__)("Skew", "elementor"), ...getTabProps(TransformFunctionKeys.skew) })
8087
+ )), /* @__PURE__ */ React106.createElement(import_ui90.TabPanel, { sx: { p: 1.5 }, ...getTabPanelProps(TransformFunctionKeys.move) }, /* @__PURE__ */ React106.createElement(Move, null)), /* @__PURE__ */ React106.createElement(import_ui90.TabPanel, { sx: { p: 1.5 }, ...getTabPanelProps(TransformFunctionKeys.scale) }, /* @__PURE__ */ React106.createElement(Scale, null)), /* @__PURE__ */ React106.createElement(import_ui90.TabPanel, { sx: { p: 1.5 }, ...getTabPanelProps(TransformFunctionKeys.rotate) }, /* @__PURE__ */ React106.createElement(Rotate, null)), /* @__PURE__ */ React106.createElement(import_ui90.TabPanel, { sx: { p: 1.5 }, ...getTabPanelProps(TransformFunctionKeys.skew) }, /* @__PURE__ */ React106.createElement(Skew, null))));
7678
8088
  };
7679
8089
 
7680
8090
  // src/controls/transform-control/transform-icon.tsx
7681
- var React105 = __toESM(require("react"));
7682
- var import_icons34 = require("@elementor/icons");
8091
+ var React107 = __toESM(require("react"));
8092
+ var import_icons35 = require("@elementor/icons");
7683
8093
  var TransformIcon = ({ value }) => {
7684
8094
  switch (value.$$type) {
7685
8095
  case TransformFunctionKeys.move:
7686
- return /* @__PURE__ */ React105.createElement(import_icons34.ArrowsMaximizeIcon, { fontSize: "tiny" });
8096
+ return /* @__PURE__ */ React107.createElement(import_icons35.ArrowsMaximizeIcon, { fontSize: "tiny" });
7687
8097
  case TransformFunctionKeys.scale:
7688
- return /* @__PURE__ */ React105.createElement(import_icons34.ArrowAutofitHeightIcon, { fontSize: "tiny" });
8098
+ return /* @__PURE__ */ React107.createElement(import_icons35.ArrowAutofitHeightIcon, { fontSize: "tiny" });
7689
8099
  case TransformFunctionKeys.rotate:
7690
- return /* @__PURE__ */ React105.createElement(import_icons34.RotateClockwise2Icon, { fontSize: "tiny" });
8100
+ return /* @__PURE__ */ React107.createElement(import_icons35.RotateClockwise2Icon, { fontSize: "tiny" });
7691
8101
  case TransformFunctionKeys.skew:
7692
- return /* @__PURE__ */ React105.createElement(import_icons34.SkewXIcon, { fontSize: "tiny" });
8102
+ return /* @__PURE__ */ React107.createElement(import_icons35.SkewXIcon, { fontSize: "tiny" });
7693
8103
  default:
7694
8104
  return null;
7695
8105
  }
7696
8106
  };
7697
8107
 
7698
8108
  // src/controls/transform-control/transform-label.tsx
7699
- var React106 = __toESM(require("react"));
7700
- var import_ui89 = require("@elementor/ui");
7701
- var import_i18n51 = require("@wordpress/i18n");
8109
+ var React108 = __toESM(require("react"));
8110
+ var import_ui91 = require("@elementor/ui");
8111
+ var import_i18n53 = require("@wordpress/i18n");
7702
8112
  var orderedAxis = ["x", "y", "z"];
7703
8113
  var formatLabel = (value, functionType) => {
7704
8114
  return orderedAxis.map((axisKey) => {
@@ -7716,98 +8126,98 @@ var TransformLabel = (props) => {
7716
8126
  const { $$type, value } = props.value;
7717
8127
  switch ($$type) {
7718
8128
  case TransformFunctionKeys.move:
7719
- return /* @__PURE__ */ React106.createElement(Label2, { label: (0, import_i18n51.__)("Move", "elementor"), value: formatLabel(value, "move") });
8129
+ return /* @__PURE__ */ React108.createElement(Label2, { label: (0, import_i18n53.__)("Move", "elementor"), value: formatLabel(value, "move") });
7720
8130
  case TransformFunctionKeys.scale:
7721
- return /* @__PURE__ */ React106.createElement(Label2, { label: (0, import_i18n51.__)("Scale", "elementor"), value: formatLabel(value, "scale") });
8131
+ return /* @__PURE__ */ React108.createElement(Label2, { label: (0, import_i18n53.__)("Scale", "elementor"), value: formatLabel(value, "scale") });
7722
8132
  case TransformFunctionKeys.rotate:
7723
- return /* @__PURE__ */ React106.createElement(Label2, { label: (0, import_i18n51.__)("Rotate", "elementor"), value: formatLabel(value, "rotate") });
8133
+ return /* @__PURE__ */ React108.createElement(Label2, { label: (0, import_i18n53.__)("Rotate", "elementor"), value: formatLabel(value, "rotate") });
7724
8134
  case TransformFunctionKeys.skew:
7725
- return /* @__PURE__ */ React106.createElement(Label2, { label: (0, import_i18n51.__)("Skew", "elementor"), value: formatLabel(value, "skew") });
8135
+ return /* @__PURE__ */ React108.createElement(Label2, { label: (0, import_i18n53.__)("Skew", "elementor"), value: formatLabel(value, "skew") });
7726
8136
  default:
7727
8137
  return "";
7728
8138
  }
7729
8139
  };
7730
8140
  var Label2 = ({ label, value }) => {
7731
- return /* @__PURE__ */ React106.createElement(import_ui89.Box, { component: "span" }, label, ": ", value);
8141
+ return /* @__PURE__ */ React108.createElement(import_ui91.Box, { component: "span" }, label, ": ", value);
7732
8142
  };
7733
8143
 
7734
8144
  // src/controls/transform-control/transform-settings-control.tsx
7735
- var React109 = __toESM(require("react"));
8145
+ var React111 = __toESM(require("react"));
7736
8146
  var import_editor_ui14 = require("@elementor/editor-ui");
7737
- var import_icons35 = require("@elementor/icons");
7738
- var import_ui92 = require("@elementor/ui");
7739
- var import_i18n54 = require("@wordpress/i18n");
8147
+ var import_icons36 = require("@elementor/icons");
8148
+ var import_ui94 = require("@elementor/ui");
8149
+ var import_i18n56 = require("@wordpress/i18n");
7740
8150
 
7741
8151
  // src/controls/transform-control/transform-base-controls/children-perspective-control.tsx
7742
- var React107 = __toESM(require("react"));
7743
- var import_react62 = require("react");
8152
+ var React109 = __toESM(require("react"));
8153
+ var import_react64 = require("react");
7744
8154
  var import_editor_props52 = require("@elementor/editor-props");
7745
- var import_ui90 = require("@elementor/ui");
7746
- var import_i18n52 = require("@wordpress/i18n");
8155
+ var import_ui92 = require("@elementor/ui");
8156
+ var import_i18n54 = require("@wordpress/i18n");
7747
8157
  var ORIGIN_UNITS = ["px", "%", "em", "rem"];
7748
8158
  var PERSPECTIVE_CONTROL_FIELD = {
7749
- label: (0, import_i18n52.__)("Perspective", "elementor"),
8159
+ label: (0, import_i18n54.__)("Perspective", "elementor"),
7750
8160
  bind: "perspective",
7751
8161
  units: ["px", "em", "rem", "vw", "vh"]
7752
8162
  };
7753
8163
  var CHILDREN_PERSPECTIVE_FIELDS = [
7754
8164
  {
7755
- label: (0, import_i18n52.__)("Origin X", "elementor"),
8165
+ label: (0, import_i18n54.__)("Origin X", "elementor"),
7756
8166
  bind: "x",
7757
8167
  units: ORIGIN_UNITS
7758
8168
  },
7759
8169
  {
7760
- label: (0, import_i18n52.__)("Origin Y", "elementor"),
8170
+ label: (0, import_i18n54.__)("Origin Y", "elementor"),
7761
8171
  bind: "y",
7762
8172
  units: ORIGIN_UNITS
7763
8173
  }
7764
8174
  ];
7765
8175
  var ChildrenPerspectiveControl = () => {
7766
- return /* @__PURE__ */ React107.createElement(import_ui90.Stack, { direction: "column", spacing: 1.5 }, /* @__PURE__ */ React107.createElement(ControlFormLabel, null, (0, import_i18n52.__)("Children perspective", "elementor")), /* @__PURE__ */ React107.createElement(PerspectiveControl, null), /* @__PURE__ */ React107.createElement(PerspectiveOriginControl, null));
8176
+ return /* @__PURE__ */ React109.createElement(import_ui92.Stack, { direction: "column", spacing: 1.5 }, /* @__PURE__ */ React109.createElement(ControlFormLabel, null, (0, import_i18n54.__)("Children perspective", "elementor")), /* @__PURE__ */ React109.createElement(PerspectiveControl, null), /* @__PURE__ */ React109.createElement(PerspectiveOriginControl, null));
7767
8177
  };
7768
- var PerspectiveControl = () => /* @__PURE__ */ React107.createElement(PropKeyProvider, { bind: "perspective" }, /* @__PURE__ */ React107.createElement(ControlFields, { control: PERSPECTIVE_CONTROL_FIELD, key: PERSPECTIVE_CONTROL_FIELD.bind }));
7769
- var PerspectiveOriginControl = () => /* @__PURE__ */ React107.createElement(PropKeyProvider, { bind: "perspective-origin" }, /* @__PURE__ */ React107.createElement(PerspectiveOriginControlProvider, null));
8178
+ var PerspectiveControl = () => /* @__PURE__ */ React109.createElement(PropKeyProvider, { bind: "perspective" }, /* @__PURE__ */ React109.createElement(ControlFields, { control: PERSPECTIVE_CONTROL_FIELD, key: PERSPECTIVE_CONTROL_FIELD.bind }));
8179
+ var PerspectiveOriginControl = () => /* @__PURE__ */ React109.createElement(PropKeyProvider, { bind: "perspective-origin" }, /* @__PURE__ */ React109.createElement(PerspectiveOriginControlProvider, null));
7770
8180
  var PerspectiveOriginControlProvider = () => {
7771
8181
  const context = useBoundProp(import_editor_props52.perspectiveOriginPropTypeUtil);
7772
- return /* @__PURE__ */ React107.createElement(PropProvider, { ...context }, CHILDREN_PERSPECTIVE_FIELDS.map((control) => /* @__PURE__ */ React107.createElement(PropKeyProvider, { bind: control.bind, key: control.bind }, /* @__PURE__ */ React107.createElement(ControlFields, { control }))));
8182
+ return /* @__PURE__ */ React109.createElement(PropProvider, { ...context }, CHILDREN_PERSPECTIVE_FIELDS.map((control) => /* @__PURE__ */ React109.createElement(PropKeyProvider, { bind: control.bind, key: control.bind }, /* @__PURE__ */ React109.createElement(ControlFields, { control }))));
7773
8183
  };
7774
8184
  var ControlFields = ({ control }) => {
7775
- const rowRef = (0, import_react62.useRef)(null);
7776
- return /* @__PURE__ */ React107.createElement(PopoverGridContainer, { ref: rowRef }, /* @__PURE__ */ React107.createElement(import_ui90.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React107.createElement(ControlFormLabel, null, control.label)), /* @__PURE__ */ React107.createElement(import_ui90.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React107.createElement(SizeControl, { variant: "length", units: control.units, anchorRef: rowRef, disableCustom: true })));
8185
+ const rowRef = (0, import_react64.useRef)(null);
8186
+ return /* @__PURE__ */ React109.createElement(PopoverGridContainer, { ref: rowRef }, /* @__PURE__ */ React109.createElement(import_ui92.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React109.createElement(ControlFormLabel, null, control.label)), /* @__PURE__ */ React109.createElement(import_ui92.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React109.createElement(SizeControl, { variant: "length", units: control.units, anchorRef: rowRef, disableCustom: true })));
7777
8187
  };
7778
8188
 
7779
8189
  // src/controls/transform-control/transform-base-controls/transform-origin-control.tsx
7780
- var React108 = __toESM(require("react"));
7781
- var import_react63 = require("react");
8190
+ var React110 = __toESM(require("react"));
8191
+ var import_react65 = require("react");
7782
8192
  var import_editor_props53 = require("@elementor/editor-props");
7783
- var import_ui91 = require("@elementor/ui");
7784
- var import_i18n53 = require("@wordpress/i18n");
8193
+ var import_ui93 = require("@elementor/ui");
8194
+ var import_i18n55 = require("@wordpress/i18n");
7785
8195
  var TRANSFORM_ORIGIN_UNITS = ["px", "%", "em", "rem"];
7786
8196
  var TRANSFORM_ORIGIN_UNITS_Z_AXIS = TRANSFORM_ORIGIN_UNITS.filter((unit) => unit !== "%");
7787
8197
  var TRANSFORM_ORIGIN_FIELDS = [
7788
8198
  {
7789
- label: (0, import_i18n53.__)("Origin X", "elementor"),
8199
+ label: (0, import_i18n55.__)("Origin X", "elementor"),
7790
8200
  bind: "x",
7791
8201
  units: TRANSFORM_ORIGIN_UNITS
7792
8202
  },
7793
8203
  {
7794
- label: (0, import_i18n53.__)("Origin Y", "elementor"),
8204
+ label: (0, import_i18n55.__)("Origin Y", "elementor"),
7795
8205
  bind: "y",
7796
8206
  units: TRANSFORM_ORIGIN_UNITS
7797
8207
  },
7798
8208
  {
7799
- label: (0, import_i18n53.__)("Origin Z", "elementor"),
8209
+ label: (0, import_i18n55.__)("Origin Z", "elementor"),
7800
8210
  bind: "z",
7801
8211
  units: TRANSFORM_ORIGIN_UNITS_Z_AXIS
7802
8212
  }
7803
8213
  ];
7804
8214
  var TransformOriginControl = () => {
7805
- return /* @__PURE__ */ React108.createElement(import_ui91.Stack, { direction: "column", spacing: 1.5 }, /* @__PURE__ */ React108.createElement(ControlFormLabel, null, (0, import_i18n53.__)("Transform", "elementor")), TRANSFORM_ORIGIN_FIELDS.map((control) => /* @__PURE__ */ React108.createElement(ControlFields2, { control, key: control.bind })));
8215
+ return /* @__PURE__ */ React110.createElement(import_ui93.Stack, { direction: "column", spacing: 1.5 }, /* @__PURE__ */ React110.createElement(ControlFormLabel, null, (0, import_i18n55.__)("Transform", "elementor")), TRANSFORM_ORIGIN_FIELDS.map((control) => /* @__PURE__ */ React110.createElement(ControlFields2, { control, key: control.bind })));
7806
8216
  };
7807
8217
  var ControlFields2 = ({ control }) => {
7808
8218
  const context = useBoundProp(import_editor_props53.transformOriginPropTypeUtil);
7809
- const rowRef = (0, import_react63.useRef)(null);
7810
- return /* @__PURE__ */ React108.createElement(PropProvider, { ...context }, /* @__PURE__ */ React108.createElement(PropKeyProvider, { bind: control.bind }, /* @__PURE__ */ React108.createElement(PopoverGridContainer, { ref: rowRef }, /* @__PURE__ */ React108.createElement(import_ui91.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React108.createElement(ControlFormLabel, null, control.label)), /* @__PURE__ */ React108.createElement(import_ui91.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React108.createElement(SizeControl, { variant: "length", units: control.units, anchorRef: rowRef })))));
8219
+ const rowRef = (0, import_react65.useRef)(null);
8220
+ return /* @__PURE__ */ React110.createElement(PropProvider, { ...context }, /* @__PURE__ */ React110.createElement(PropKeyProvider, { bind: control.bind }, /* @__PURE__ */ React110.createElement(PopoverGridContainer, { ref: rowRef }, /* @__PURE__ */ React110.createElement(import_ui93.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React110.createElement(ControlFormLabel, null, control.label)), /* @__PURE__ */ React110.createElement(import_ui93.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React110.createElement(SizeControl, { variant: "length", units: control.units, anchorRef: rowRef })))));
7811
8221
  };
7812
8222
 
7813
8223
  // src/controls/transform-control/transform-settings-control.tsx
@@ -7817,12 +8227,12 @@ var TransformSettingsControl = ({
7817
8227
  anchorRef,
7818
8228
  showChildrenPerspective
7819
8229
  }) => {
7820
- const popupProps = (0, import_ui92.bindPopover)({
8230
+ const popupProps = (0, import_ui94.bindPopover)({
7821
8231
  ...popupState,
7822
8232
  anchorEl: anchorRef.current ?? void 0
7823
8233
  });
7824
- return /* @__PURE__ */ React109.createElement(
7825
- import_ui92.Popover,
8234
+ return /* @__PURE__ */ React111.createElement(
8235
+ import_ui94.Popover,
7826
8236
  {
7827
8237
  disablePortal: true,
7828
8238
  anchorOrigin: { vertical: "bottom", horizontal: "left" },
@@ -7836,16 +8246,16 @@ var TransformSettingsControl = ({
7836
8246
  },
7837
8247
  ...popupProps
7838
8248
  },
7839
- /* @__PURE__ */ React109.createElement(
8249
+ /* @__PURE__ */ React111.createElement(
7840
8250
  import_editor_ui14.PopoverHeader,
7841
8251
  {
7842
- title: (0, import_i18n54.__)("Transform settings", "elementor"),
8252
+ title: (0, import_i18n56.__)("Transform settings", "elementor"),
7843
8253
  onClose: popupState.close,
7844
- icon: /* @__PURE__ */ React109.createElement(import_icons35.AdjustmentsIcon, { fontSize: SIZE10 })
8254
+ icon: /* @__PURE__ */ React111.createElement(import_icons36.AdjustmentsIcon, { fontSize: SIZE10 })
7845
8255
  }
7846
8256
  ),
7847
- /* @__PURE__ */ React109.createElement(import_ui92.Divider, null),
7848
- /* @__PURE__ */ React109.createElement(PopoverContent, { sx: { px: 2, py: 1.5 } }, /* @__PURE__ */ React109.createElement(PropKeyProvider, { bind: "transform-origin" }, /* @__PURE__ */ React109.createElement(TransformOriginControl, null)), showChildrenPerspective && /* @__PURE__ */ React109.createElement(React109.Fragment, null, /* @__PURE__ */ React109.createElement(import_ui92.Box, { sx: { my: 0.5 } }, /* @__PURE__ */ React109.createElement(import_ui92.Divider, null)), /* @__PURE__ */ React109.createElement(ChildrenPerspectiveControl, null)))
8257
+ /* @__PURE__ */ React111.createElement(import_ui94.Divider, null),
8258
+ /* @__PURE__ */ React111.createElement(PopoverContent, { sx: { px: 2, py: 1.5 } }, /* @__PURE__ */ React111.createElement(PropKeyProvider, { bind: "transform-origin" }, /* @__PURE__ */ React111.createElement(TransformOriginControl, null)), showChildrenPerspective && /* @__PURE__ */ React111.createElement(React111.Fragment, null, /* @__PURE__ */ React111.createElement(import_ui94.Box, { sx: { my: 0.5 } }, /* @__PURE__ */ React111.createElement(import_ui94.Divider, null)), /* @__PURE__ */ React111.createElement(ChildrenPerspectiveControl, null)))
7849
8259
  );
7850
8260
  };
7851
8261
 
@@ -7854,27 +8264,27 @@ var SIZE11 = "tiny";
7854
8264
  var TransformRepeaterControl = createControl(
7855
8265
  ({ showChildrenPerspective }) => {
7856
8266
  const context = useBoundProp(import_editor_props54.transformPropTypeUtil);
7857
- const headerRef = (0, import_react64.useRef)(null);
7858
- const popupState = (0, import_ui93.usePopupState)({ variant: "popover" });
7859
- return /* @__PURE__ */ React110.createElement(PropProvider, { ...context }, /* @__PURE__ */ React110.createElement(
8267
+ const headerRef = (0, import_react66.useRef)(null);
8268
+ const popupState = (0, import_ui95.usePopupState)({ variant: "popover" });
8269
+ return /* @__PURE__ */ React112.createElement(PropProvider, { ...context }, /* @__PURE__ */ React112.createElement(
7860
8270
  TransformSettingsControl,
7861
8271
  {
7862
8272
  popupState,
7863
8273
  anchorRef: headerRef,
7864
8274
  showChildrenPerspective
7865
8275
  }
7866
- ), /* @__PURE__ */ React110.createElement(PropKeyProvider, { bind: "transform-functions" }, /* @__PURE__ */ React110.createElement(Repeater2, { headerRef, propType: context.propType, popupState })));
8276
+ ), /* @__PURE__ */ React112.createElement(PropKeyProvider, { bind: "transform-functions" }, /* @__PURE__ */ React112.createElement(Repeater2, { headerRef, propType: context.propType, popupState })));
7867
8277
  }
7868
8278
  );
7869
- var ToolTip = /* @__PURE__ */ React110.createElement(
7870
- import_ui93.Box,
8279
+ var ToolTip = /* @__PURE__ */ React112.createElement(
8280
+ import_ui95.Box,
7871
8281
  {
7872
8282
  component: "span",
7873
8283
  "aria-label": void 0,
7874
8284
  sx: { display: "flex", gap: 0.5, p: 2, width: 320, borderRadius: 1 }
7875
8285
  },
7876
- /* @__PURE__ */ React110.createElement(import_icons36.InfoCircleFilledIcon, { sx: { color: "secondary.main" } }),
7877
- /* @__PURE__ */ React110.createElement(import_ui93.Typography, { variant: "body2", color: "text.secondary", fontSize: "14px" }, (0, import_i18n55.__)("You can use each kind of transform only once per element.", "elementor"))
8286
+ /* @__PURE__ */ React112.createElement(import_icons37.InfoCircleFilledIcon, { sx: { color: "secondary.main" } }),
8287
+ /* @__PURE__ */ React112.createElement(import_ui95.Typography, { variant: "body2", color: "text.secondary", fontSize: "14px" }, (0, import_i18n57.__)("You can use each kind of transform only once per element.", "elementor"))
7878
8288
  );
7879
8289
  var Repeater2 = ({
7880
8290
  headerRef,
@@ -7888,21 +8298,21 @@ var Repeater2 = ({
7888
8298
  return availableValues.find((value) => !transformValues?.some((item) => item.$$type === value.$$type));
7889
8299
  };
7890
8300
  const shouldDisableAddItem = !getInitialValue2();
7891
- return /* @__PURE__ */ React110.createElement(PropProvider, { ...transformFunctionsContext }, /* @__PURE__ */ React110.createElement(
8301
+ return /* @__PURE__ */ React112.createElement(PropProvider, { ...transformFunctionsContext }, /* @__PURE__ */ React112.createElement(
7892
8302
  ControlRepeater,
7893
8303
  {
7894
8304
  initial: getInitialValue2() ?? initialTransformValue,
7895
8305
  propTypeUtil: import_editor_props54.transformFunctionsPropTypeUtil
7896
8306
  },
7897
- /* @__PURE__ */ React110.createElement(
8307
+ /* @__PURE__ */ React112.createElement(
7898
8308
  RepeaterHeader,
7899
8309
  {
7900
- label: (0, import_i18n55.__)("Transform", "elementor"),
7901
- adornment: () => /* @__PURE__ */ React110.createElement(ControlAdornments, { customContext: { path: ["transform"], propType } }),
8310
+ label: (0, import_i18n57.__)("Transform", "elementor"),
8311
+ adornment: () => /* @__PURE__ */ React112.createElement(ControlAdornments, { customContext: { path: ["transform"], propType } }),
7902
8312
  ref: headerRef
7903
8313
  },
7904
- /* @__PURE__ */ React110.createElement(TransformBasePopoverTrigger, { popupState, repeaterBindKey: bind }),
7905
- /* @__PURE__ */ React110.createElement(
8314
+ /* @__PURE__ */ React112.createElement(TransformBasePopoverTrigger, { popupState, repeaterBindKey: bind }),
8315
+ /* @__PURE__ */ React112.createElement(
7906
8316
  TooltipAddItemAction,
7907
8317
  {
7908
8318
  disabled: shouldDisableAddItem,
@@ -7912,15 +8322,15 @@ var Repeater2 = ({
7912
8322
  }
7913
8323
  )
7914
8324
  ),
7915
- /* @__PURE__ */ React110.createElement(ItemsContainer, null, /* @__PURE__ */ React110.createElement(
8325
+ /* @__PURE__ */ React112.createElement(ItemsContainer, null, /* @__PURE__ */ React112.createElement(
7916
8326
  Item,
7917
8327
  {
7918
8328
  Icon: TransformIcon,
7919
8329
  Label: TransformLabel,
7920
- actions: /* @__PURE__ */ React110.createElement(React110.Fragment, null, /* @__PURE__ */ React110.createElement(DisableItemAction, null), /* @__PURE__ */ React110.createElement(RemoveItemAction, null))
8330
+ actions: /* @__PURE__ */ React112.createElement(React112.Fragment, null, /* @__PURE__ */ React112.createElement(DisableItemAction, null), /* @__PURE__ */ React112.createElement(RemoveItemAction, null))
7921
8331
  }
7922
8332
  )),
7923
- /* @__PURE__ */ React110.createElement(EditItemPopover, null, /* @__PURE__ */ React110.createElement(TransformContent, null))
8333
+ /* @__PURE__ */ React112.createElement(EditItemPopover, null, /* @__PURE__ */ React112.createElement(TransformContent, null))
7924
8334
  ));
7925
8335
  };
7926
8336
  var TransformBasePopoverTrigger = ({
@@ -7928,30 +8338,30 @@ var TransformBasePopoverTrigger = ({
7928
8338
  repeaterBindKey
7929
8339
  }) => {
7930
8340
  const { bind } = useBoundProp();
7931
- const titleLabel = (0, import_i18n55.__)("Transform settings", "elementor");
7932
- return bind !== repeaterBindKey ? null : /* @__PURE__ */ React110.createElement(import_ui93.Tooltip, { title: titleLabel, placement: "top" }, /* @__PURE__ */ React110.createElement(import_ui93.IconButton, { size: SIZE11, "aria-label": titleLabel, ...(0, import_ui93.bindTrigger)(popupState) }, /* @__PURE__ */ React110.createElement(import_icons36.AdjustmentsIcon, { fontSize: SIZE11 })));
8341
+ const titleLabel = (0, import_i18n57.__)("Transform settings", "elementor");
8342
+ return bind !== repeaterBindKey ? null : /* @__PURE__ */ React112.createElement(import_ui95.Tooltip, { title: titleLabel, placement: "top" }, /* @__PURE__ */ React112.createElement(import_ui95.IconButton, { size: SIZE11, "aria-label": titleLabel, ...(0, import_ui95.bindTrigger)(popupState) }, /* @__PURE__ */ React112.createElement(import_icons37.AdjustmentsIcon, { fontSize: SIZE11 })));
7933
8343
  };
7934
8344
 
7935
8345
  // src/controls/transition-control/transition-repeater-control.tsx
7936
- var React113 = __toESM(require("react"));
7937
- var import_react67 = require("react");
8346
+ var React115 = __toESM(require("react"));
8347
+ var import_react69 = require("react");
7938
8348
  var import_editor_props57 = require("@elementor/editor-props");
7939
- var import_icons38 = require("@elementor/icons");
7940
- var import_ui96 = require("@elementor/ui");
8349
+ var import_icons39 = require("@elementor/icons");
8350
+ var import_ui98 = require("@elementor/ui");
7941
8351
  var import_utils8 = require("@elementor/utils");
7942
- var import_i18n58 = require("@wordpress/i18n");
8352
+ var import_i18n60 = require("@wordpress/i18n");
7943
8353
 
7944
8354
  // src/controls/selection-size-control.tsx
7945
- var React111 = __toESM(require("react"));
7946
- var import_react65 = require("react");
8355
+ var React113 = __toESM(require("react"));
8356
+ var import_react67 = require("react");
7947
8357
  var import_editor_props55 = require("@elementor/editor-props");
7948
- var import_ui94 = require("@elementor/ui");
8358
+ var import_ui96 = require("@elementor/ui");
7949
8359
  var SelectionSizeControl = createControl(
7950
8360
  ({ selectionLabel, sizeLabel, selectionConfig, sizeConfigMap }) => {
7951
8361
  const { value, setValue, propType } = useBoundProp(import_editor_props55.selectionSizePropTypeUtil);
7952
- const rowRef = (0, import_react65.useRef)(null);
8362
+ const rowRef = (0, import_react67.useRef)(null);
7953
8363
  const sizeFieldId = sizeLabel.replace(/\s+/g, "-").toLowerCase();
7954
- const currentSizeConfig = (0, import_react65.useMemo)(() => {
8364
+ const currentSizeConfig = (0, import_react67.useMemo)(() => {
7955
8365
  switch (value.selection.$$type) {
7956
8366
  case "key-value":
7957
8367
  return sizeConfigMap[value?.selection?.value.value.value || ""];
@@ -7962,7 +8372,7 @@ var SelectionSizeControl = createControl(
7962
8372
  }
7963
8373
  }, [value, sizeConfigMap]);
7964
8374
  const SelectionComponent = selectionConfig.component;
7965
- return /* @__PURE__ */ React111.createElement(PropProvider, { value, setValue, propType }, /* @__PURE__ */ React111.createElement(import_ui94.Grid, { container: true, spacing: 1.5, ref: rowRef }, /* @__PURE__ */ React111.createElement(import_ui94.Grid, { item: true, xs: 6, sx: { display: "flex", alignItems: "center" } }, /* @__PURE__ */ React111.createElement(ControlFormLabel, null, selectionLabel)), /* @__PURE__ */ React111.createElement(import_ui94.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React111.createElement(PropKeyProvider, { bind: "selection" }, /* @__PURE__ */ React111.createElement(SelectionComponent, { ...selectionConfig.props }))), currentSizeConfig && /* @__PURE__ */ React111.createElement(React111.Fragment, null, /* @__PURE__ */ React111.createElement(import_ui94.Grid, { item: true, xs: 6, sx: { display: "flex", alignItems: "center" } }, /* @__PURE__ */ React111.createElement(ControlFormLabel, { htmlFor: sizeFieldId }, sizeLabel)), /* @__PURE__ */ React111.createElement(import_ui94.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React111.createElement(PropKeyProvider, { bind: "size" }, /* @__PURE__ */ React111.createElement(
8375
+ return /* @__PURE__ */ React113.createElement(PropProvider, { value, setValue, propType }, /* @__PURE__ */ React113.createElement(import_ui96.Grid, { container: true, spacing: 1.5, ref: rowRef }, /* @__PURE__ */ React113.createElement(import_ui96.Grid, { item: true, xs: 6, sx: { display: "flex", alignItems: "center" } }, /* @__PURE__ */ React113.createElement(ControlFormLabel, null, selectionLabel)), /* @__PURE__ */ React113.createElement(import_ui96.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React113.createElement(PropKeyProvider, { bind: "selection" }, /* @__PURE__ */ React113.createElement(SelectionComponent, { ...selectionConfig.props }))), currentSizeConfig && /* @__PURE__ */ React113.createElement(React113.Fragment, null, /* @__PURE__ */ React113.createElement(import_ui96.Grid, { item: true, xs: 6, sx: { display: "flex", alignItems: "center" } }, /* @__PURE__ */ React113.createElement(ControlFormLabel, { htmlFor: sizeFieldId }, sizeLabel)), /* @__PURE__ */ React113.createElement(import_ui96.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React113.createElement(PropKeyProvider, { bind: "size" }, /* @__PURE__ */ React113.createElement(
7966
8376
  SizeControl,
7967
8377
  {
7968
8378
  anchorRef: rowRef,
@@ -7977,12 +8387,12 @@ var SelectionSizeControl = createControl(
7977
8387
 
7978
8388
  // src/controls/transition-control/data.ts
7979
8389
  var import_utils7 = require("@elementor/utils");
7980
- var import_i18n56 = require("@wordpress/i18n");
8390
+ var import_i18n58 = require("@wordpress/i18n");
7981
8391
  var initialTransitionValue = {
7982
8392
  selection: {
7983
8393
  $$type: "key-value",
7984
8394
  value: {
7985
- key: { value: (0, import_i18n56.__)("All properties", "elementor"), $$type: "string" },
8395
+ key: { value: (0, import_i18n58.__)("All properties", "elementor"), $$type: "string" },
7986
8396
  value: { value: "all", $$type: "string" }
7987
8397
  }
7988
8398
  },
@@ -8006,128 +8416,128 @@ var createTransitionPropertiesList = () => {
8006
8416
  const isSiteRtl = getIsSiteRtl();
8007
8417
  const baseProperties = [
8008
8418
  {
8009
- label: (0, import_i18n56.__)("Default", "elementor"),
8419
+ label: (0, import_i18n58.__)("Default", "elementor"),
8010
8420
  type: "category",
8011
- properties: [{ label: (0, import_i18n56.__)("All properties", "elementor"), value: "all" }]
8421
+ properties: [{ label: (0, import_i18n58.__)("All properties", "elementor"), value: "all" }]
8012
8422
  },
8013
8423
  {
8014
- label: (0, import_i18n56.__)("Margin", "elementor"),
8424
+ label: (0, import_i18n58.__)("Margin", "elementor"),
8015
8425
  type: "category",
8016
8426
  properties: [
8017
- { label: (0, import_i18n56.__)("Margin (all)", "elementor"), value: "margin", isDisabled: true },
8018
- { label: (0, import_i18n56.__)("Margin bottom", "elementor"), value: "margin-block-end", isDisabled: true },
8427
+ { label: (0, import_i18n58.__)("Margin (all)", "elementor"), value: "margin", isDisabled: true },
8428
+ { label: (0, import_i18n58.__)("Margin bottom", "elementor"), value: "margin-block-end", isDisabled: true },
8019
8429
  {
8020
- label: isSiteRtl ? (0, import_i18n56.__)("Margin right", "elementor") : (0, import_i18n56.__)("Margin left", "elementor"),
8430
+ label: isSiteRtl ? (0, import_i18n58.__)("Margin right", "elementor") : (0, import_i18n58.__)("Margin left", "elementor"),
8021
8431
  value: "margin-inline-start",
8022
8432
  isDisabled: true
8023
8433
  },
8024
8434
  {
8025
- label: isSiteRtl ? (0, import_i18n56.__)("Margin left", "elementor") : (0, import_i18n56.__)("Margin right", "elementor"),
8435
+ label: isSiteRtl ? (0, import_i18n58.__)("Margin left", "elementor") : (0, import_i18n58.__)("Margin right", "elementor"),
8026
8436
  value: "margin-inline-end",
8027
8437
  isDisabled: true
8028
8438
  },
8029
- { label: (0, import_i18n56.__)("Margin top", "elementor"), value: "margin-block-start", isDisabled: true }
8439
+ { label: (0, import_i18n58.__)("Margin top", "elementor"), value: "margin-block-start", isDisabled: true }
8030
8440
  ]
8031
8441
  },
8032
8442
  {
8033
- label: (0, import_i18n56.__)("Padding", "elementor"),
8443
+ label: (0, import_i18n58.__)("Padding", "elementor"),
8034
8444
  type: "category",
8035
8445
  properties: [
8036
- { label: (0, import_i18n56.__)("Padding (all)", "elementor"), value: "padding", isDisabled: true },
8037
- { label: (0, import_i18n56.__)("Padding bottom", "elementor"), value: "padding-block-end", isDisabled: true },
8446
+ { label: (0, import_i18n58.__)("Padding (all)", "elementor"), value: "padding", isDisabled: true },
8447
+ { label: (0, import_i18n58.__)("Padding bottom", "elementor"), value: "padding-block-end", isDisabled: true },
8038
8448
  {
8039
- label: isSiteRtl ? (0, import_i18n56.__)("Padding right", "elementor") : (0, import_i18n56.__)("Padding left", "elementor"),
8449
+ label: isSiteRtl ? (0, import_i18n58.__)("Padding right", "elementor") : (0, import_i18n58.__)("Padding left", "elementor"),
8040
8450
  value: "padding-inline-start",
8041
8451
  isDisabled: true
8042
8452
  },
8043
8453
  {
8044
- label: isSiteRtl ? (0, import_i18n56.__)("Padding left", "elementor") : (0, import_i18n56.__)("Padding right", "elementor"),
8454
+ label: isSiteRtl ? (0, import_i18n58.__)("Padding left", "elementor") : (0, import_i18n58.__)("Padding right", "elementor"),
8045
8455
  value: "padding-inline-end",
8046
8456
  isDisabled: true
8047
8457
  },
8048
- { label: (0, import_i18n56.__)("Padding top", "elementor"), value: "padding-block-start", isDisabled: true }
8458
+ { label: (0, import_i18n58.__)("Padding top", "elementor"), value: "padding-block-start", isDisabled: true }
8049
8459
  ]
8050
8460
  },
8051
8461
  {
8052
- label: (0, import_i18n56.__)("Flex", "elementor"),
8462
+ label: (0, import_i18n58.__)("Flex", "elementor"),
8053
8463
  type: "category",
8054
8464
  properties: [
8055
- { label: (0, import_i18n56.__)("Flex (all)", "elementor"), value: "flex", isDisabled: true },
8056
- { label: (0, import_i18n56.__)("Flex grow", "elementor"), value: "flex-grow", isDisabled: true },
8057
- { label: (0, import_i18n56.__)("Flex shrink", "elementor"), value: "flex-shrink", isDisabled: true },
8058
- { label: (0, import_i18n56.__)("Flex basis", "elementor"), value: "flex-basis", isDisabled: true }
8465
+ { label: (0, import_i18n58.__)("Flex (all)", "elementor"), value: "flex", isDisabled: true },
8466
+ { label: (0, import_i18n58.__)("Flex grow", "elementor"), value: "flex-grow", isDisabled: true },
8467
+ { label: (0, import_i18n58.__)("Flex shrink", "elementor"), value: "flex-shrink", isDisabled: true },
8468
+ { label: (0, import_i18n58.__)("Flex basis", "elementor"), value: "flex-basis", isDisabled: true }
8059
8469
  ]
8060
8470
  },
8061
8471
  {
8062
- label: (0, import_i18n56.__)("Size", "elementor"),
8472
+ label: (0, import_i18n58.__)("Size", "elementor"),
8063
8473
  type: "category",
8064
8474
  properties: [
8065
- { label: (0, import_i18n56.__)("Width", "elementor"), value: "width", isDisabled: true },
8066
- { label: (0, import_i18n56.__)("Height", "elementor"), value: "height", isDisabled: true },
8067
- { label: (0, import_i18n56.__)("Max height", "elementor"), value: "max-height", isDisabled: true },
8068
- { label: (0, import_i18n56.__)("Max width", "elementor"), value: "max-width", isDisabled: true },
8069
- { label: (0, import_i18n56.__)("Min height", "elementor"), value: "min-height", isDisabled: true },
8070
- { label: (0, import_i18n56.__)("Min width", "elementor"), value: "min-width", isDisabled: true }
8475
+ { label: (0, import_i18n58.__)("Width", "elementor"), value: "width", isDisabled: true },
8476
+ { label: (0, import_i18n58.__)("Height", "elementor"), value: "height", isDisabled: true },
8477
+ { label: (0, import_i18n58.__)("Max height", "elementor"), value: "max-height", isDisabled: true },
8478
+ { label: (0, import_i18n58.__)("Max width", "elementor"), value: "max-width", isDisabled: true },
8479
+ { label: (0, import_i18n58.__)("Min height", "elementor"), value: "min-height", isDisabled: true },
8480
+ { label: (0, import_i18n58.__)("Min width", "elementor"), value: "min-width", isDisabled: true }
8071
8481
  ]
8072
8482
  },
8073
8483
  {
8074
- label: (0, import_i18n56.__)("Position", "elementor"),
8484
+ label: (0, import_i18n58.__)("Position", "elementor"),
8075
8485
  type: "category",
8076
8486
  properties: [
8077
- { label: (0, import_i18n56.__)("Top", "elementor"), value: "inset-block-start", isDisabled: true },
8487
+ { label: (0, import_i18n58.__)("Top", "elementor"), value: "inset-block-start", isDisabled: true },
8078
8488
  {
8079
- label: isSiteRtl ? (0, import_i18n56.__)("Right", "elementor") : (0, import_i18n56.__)("Left", "elementor"),
8489
+ label: isSiteRtl ? (0, import_i18n58.__)("Right", "elementor") : (0, import_i18n58.__)("Left", "elementor"),
8080
8490
  value: "inset-inline-start",
8081
8491
  isDisabled: true
8082
8492
  },
8083
8493
  {
8084
- label: isSiteRtl ? (0, import_i18n56.__)("Left", "elementor") : (0, import_i18n56.__)("Right", "elementor"),
8494
+ label: isSiteRtl ? (0, import_i18n58.__)("Left", "elementor") : (0, import_i18n58.__)("Right", "elementor"),
8085
8495
  value: "inset-inline-end",
8086
8496
  isDisabled: true
8087
8497
  },
8088
- { label: (0, import_i18n56.__)("Bottom", "elementor"), value: "inset-block-end", isDisabled: true },
8089
- { label: (0, import_i18n56.__)("Z-index", "elementor"), value: "z-index", isDisabled: true }
8498
+ { label: (0, import_i18n58.__)("Bottom", "elementor"), value: "inset-block-end", isDisabled: true },
8499
+ { label: (0, import_i18n58.__)("Z-index", "elementor"), value: "z-index", isDisabled: true }
8090
8500
  ]
8091
8501
  },
8092
8502
  {
8093
- label: (0, import_i18n56.__)("Typography", "elementor"),
8503
+ label: (0, import_i18n58.__)("Typography", "elementor"),
8094
8504
  type: "category",
8095
8505
  properties: [
8096
- { label: (0, import_i18n56.__)("Font color", "elementor"), value: "color", isDisabled: true },
8097
- { label: (0, import_i18n56.__)("Font size", "elementor"), value: "font-size", isDisabled: true },
8098
- { label: (0, import_i18n56.__)("Line height", "elementor"), value: "line-height", isDisabled: true },
8099
- { label: (0, import_i18n56.__)("Letter spacing", "elementor"), value: "letter-spacing", isDisabled: true },
8100
- { label: (0, import_i18n56.__)("Word spacing", "elementor"), value: "word-spacing", isDisabled: true },
8101
- { label: (0, import_i18n56.__)("Font variations", "elementor"), value: "font-variation-settings", isDisabled: true },
8102
- { label: (0, import_i18n56.__)("Text stroke color", "elementor"), value: "-webkit-text-stroke-color", isDisabled: true }
8506
+ { label: (0, import_i18n58.__)("Font color", "elementor"), value: "color", isDisabled: true },
8507
+ { label: (0, import_i18n58.__)("Font size", "elementor"), value: "font-size", isDisabled: true },
8508
+ { label: (0, import_i18n58.__)("Line height", "elementor"), value: "line-height", isDisabled: true },
8509
+ { label: (0, import_i18n58.__)("Letter spacing", "elementor"), value: "letter-spacing", isDisabled: true },
8510
+ { label: (0, import_i18n58.__)("Word spacing", "elementor"), value: "word-spacing", isDisabled: true },
8511
+ { label: (0, import_i18n58.__)("Font variations", "elementor"), value: "font-variation-settings", isDisabled: true },
8512
+ { label: (0, import_i18n58.__)("Text stroke color", "elementor"), value: "-webkit-text-stroke-color", isDisabled: true }
8103
8513
  ]
8104
8514
  },
8105
8515
  {
8106
- label: (0, import_i18n56.__)("Background", "elementor"),
8516
+ label: (0, import_i18n58.__)("Background", "elementor"),
8107
8517
  type: "category",
8108
8518
  properties: [
8109
- { label: (0, import_i18n56.__)("Background color", "elementor"), value: "background-color", isDisabled: true },
8110
- { label: (0, import_i18n56.__)("Background position", "elementor"), value: "background-position", isDisabled: true },
8111
- { label: (0, import_i18n56.__)("Box shadow", "elementor"), value: "box-shadow", isDisabled: true }
8519
+ { label: (0, import_i18n58.__)("Background color", "elementor"), value: "background-color", isDisabled: true },
8520
+ { label: (0, import_i18n58.__)("Background position", "elementor"), value: "background-position", isDisabled: true },
8521
+ { label: (0, import_i18n58.__)("Box shadow", "elementor"), value: "box-shadow", isDisabled: true }
8112
8522
  ]
8113
8523
  },
8114
8524
  {
8115
- label: (0, import_i18n56.__)("Border", "elementor"),
8525
+ label: (0, import_i18n58.__)("Border", "elementor"),
8116
8526
  type: "category",
8117
8527
  properties: [
8118
- { label: (0, import_i18n56.__)("Border (all)", "elementor"), value: "border", isDisabled: true },
8119
- { label: (0, import_i18n56.__)("Border radius", "elementor"), value: "border-radius", isDisabled: true },
8120
- { label: (0, import_i18n56.__)("Border color", "elementor"), value: "border-color", isDisabled: true },
8121
- { label: (0, import_i18n56.__)("Border width", "elementor"), value: "border-width", isDisabled: true }
8528
+ { label: (0, import_i18n58.__)("Border (all)", "elementor"), value: "border", isDisabled: true },
8529
+ { label: (0, import_i18n58.__)("Border radius", "elementor"), value: "border-radius", isDisabled: true },
8530
+ { label: (0, import_i18n58.__)("Border color", "elementor"), value: "border-color", isDisabled: true },
8531
+ { label: (0, import_i18n58.__)("Border width", "elementor"), value: "border-width", isDisabled: true }
8122
8532
  ]
8123
8533
  },
8124
8534
  {
8125
- label: (0, import_i18n56.__)("Effects", "elementor"),
8535
+ label: (0, import_i18n58.__)("Effects", "elementor"),
8126
8536
  type: "category",
8127
8537
  properties: [
8128
- { label: (0, import_i18n56.__)("Opacity", "elementor"), value: "opacity", isDisabled: true },
8129
- { label: (0, import_i18n56.__)("Transform (all)", "elementor"), value: "transform", isDisabled: true },
8130
- { label: (0, import_i18n56.__)("Filter (all)", "elementor"), value: "filter", isDisabled: true }
8538
+ { label: (0, import_i18n58.__)("Opacity", "elementor"), value: "opacity", isDisabled: true },
8539
+ { label: (0, import_i18n58.__)("Transform (all)", "elementor"), value: "transform", isDisabled: true },
8540
+ { label: (0, import_i18n58.__)("Filter (all)", "elementor"), value: "filter", isDisabled: true }
8131
8541
  ]
8132
8542
  }
8133
8543
  ];
@@ -8163,13 +8573,13 @@ function subscribeToTransitionEvent() {
8163
8573
  }
8164
8574
 
8165
8575
  // src/controls/transition-control/transition-selector.tsx
8166
- var React112 = __toESM(require("react"));
8167
- var import_react66 = require("react");
8576
+ var React114 = __toESM(require("react"));
8577
+ var import_react68 = require("react");
8168
8578
  var import_editor_props56 = require("@elementor/editor-props");
8169
8579
  var import_editor_ui15 = require("@elementor/editor-ui");
8170
- var import_icons37 = require("@elementor/icons");
8171
- var import_ui95 = require("@elementor/ui");
8172
- var import_i18n57 = require("@wordpress/i18n");
8580
+ var import_icons38 = require("@elementor/icons");
8581
+ var import_ui97 = require("@elementor/ui");
8582
+ var import_i18n59 = require("@wordpress/i18n");
8173
8583
 
8174
8584
  // src/utils/tracking.ts
8175
8585
  var import_editor_elements6 = require("@elementor/editor-elements");
@@ -8250,9 +8660,9 @@ var TransitionSelector = ({
8250
8660
  const {
8251
8661
  key: { value: transitionLabel }
8252
8662
  } = value;
8253
- const defaultRef = (0, import_react66.useRef)(null);
8254
- const popoverState = (0, import_ui95.usePopupState)({ variant: "popover" });
8255
- const disabledCategories = (0, import_react66.useMemo)(() => {
8663
+ const defaultRef = (0, import_react68.useRef)(null);
8664
+ const popoverState = (0, import_ui97.usePopupState)({ variant: "popover" });
8665
+ const disabledCategories = (0, import_react68.useMemo)(() => {
8256
8666
  return new Set(
8257
8667
  transitionProperties.filter((cat) => cat.properties.some((prop) => prop.isDisabled)).map((cat) => cat.label)
8258
8668
  );
@@ -8272,7 +8682,7 @@ var TransitionSelector = ({
8272
8682
  return [
8273
8683
  first,
8274
8684
  {
8275
- label: (0, import_i18n57.__)("Recently Used", "elementor"),
8685
+ label: (0, import_i18n59.__)("Recently Used", "elementor"),
8276
8686
  items: recentItems
8277
8687
  },
8278
8688
  ...rest
@@ -8296,27 +8706,27 @@ var TransitionSelector = ({
8296
8706
  left: rect.right + 36
8297
8707
  };
8298
8708
  };
8299
- return /* @__PURE__ */ React112.createElement(import_ui95.Box, { ref: defaultRef }, /* @__PURE__ */ React112.createElement(ControlActions, null, /* @__PURE__ */ React112.createElement(
8300
- import_ui95.UnstableTag,
8709
+ return /* @__PURE__ */ React114.createElement(import_ui97.Box, { ref: defaultRef }, /* @__PURE__ */ React114.createElement(ControlActions, null, /* @__PURE__ */ React114.createElement(
8710
+ import_ui97.UnstableTag,
8301
8711
  {
8302
8712
  variant: "outlined",
8303
8713
  label: transitionLabel,
8304
- endIcon: /* @__PURE__ */ React112.createElement(import_icons37.ChevronDownIcon, { fontSize: "tiny" }),
8305
- ...(0, import_ui95.bindTrigger)(popoverState),
8714
+ endIcon: /* @__PURE__ */ React114.createElement(import_icons38.ChevronDownIcon, { fontSize: "tiny" }),
8715
+ ...(0, import_ui97.bindTrigger)(popoverState),
8306
8716
  fullWidth: true
8307
8717
  }
8308
- )), /* @__PURE__ */ React112.createElement(
8309
- import_ui95.Popover,
8718
+ )), /* @__PURE__ */ React114.createElement(
8719
+ import_ui97.Popover,
8310
8720
  {
8311
8721
  disablePortal: true,
8312
8722
  disableScrollLock: true,
8313
- ...(0, import_ui95.bindPopover)(popoverState),
8723
+ ...(0, import_ui97.bindPopover)(popoverState),
8314
8724
  anchorReference: "anchorPosition",
8315
8725
  anchorPosition: getAnchorPosition(),
8316
8726
  anchorOrigin: { vertical: "top", horizontal: "right" },
8317
8727
  transformOrigin: { vertical: "top", horizontal: "left" }
8318
8728
  },
8319
- /* @__PURE__ */ React112.createElement(
8729
+ /* @__PURE__ */ React114.createElement(
8320
8730
  ItemSelector,
8321
8731
  {
8322
8732
  itemsList: getItemList(),
@@ -8324,11 +8734,11 @@ var TransitionSelector = ({
8324
8734
  onItemChange: handleTransitionPropertyChange,
8325
8735
  onClose: popoverState.close,
8326
8736
  sectionWidth: 268,
8327
- title: (0, import_i18n57.__)("Transition Property", "elementor"),
8328
- icon: import_icons37.VariationsIcon,
8737
+ title: (0, import_i18n59.__)("Transition Property", "elementor"),
8738
+ icon: import_icons38.VariationsIcon,
8329
8739
  disabledItems: includeCurrentValueInOptions(value, disabledItems),
8330
- categoryItemContentTemplate: (item) => /* @__PURE__ */ React112.createElement(
8331
- import_ui95.Box,
8740
+ categoryItemContentTemplate: (item) => /* @__PURE__ */ React114.createElement(
8741
+ import_ui97.Box,
8332
8742
  {
8333
8743
  sx: {
8334
8744
  display: "flex",
@@ -8337,13 +8747,13 @@ var TransitionSelector = ({
8337
8747
  width: "100%"
8338
8748
  }
8339
8749
  },
8340
- /* @__PURE__ */ React112.createElement("span", null, item.value),
8341
- showPromotion && disabledCategories.has(item.value) && /* @__PURE__ */ React112.createElement(import_editor_ui15.PromotionChip, null)
8750
+ /* @__PURE__ */ React114.createElement("span", null, item.value),
8751
+ showPromotion && disabledCategories.has(item.value) && /* @__PURE__ */ React114.createElement(import_editor_ui15.PromotionChip, null)
8342
8752
  ),
8343
- footer: showPromotion ? /* @__PURE__ */ React112.createElement(
8753
+ footer: showPromotion ? /* @__PURE__ */ React114.createElement(
8344
8754
  import_editor_ui15.PromotionAlert,
8345
8755
  {
8346
- message: (0, import_i18n57.__)(
8756
+ message: (0, import_i18n59.__)(
8347
8757
  "Upgrade to customize transition properties and control effects.",
8348
8758
  "elementor"
8349
8759
  ),
@@ -8382,8 +8792,8 @@ var areAllPropertiesUsed = (value = []) => {
8382
8792
  };
8383
8793
  var getSelectionSizeProps = (recentlyUsedList, disabledItems, showPromotion) => {
8384
8794
  return {
8385
- selectionLabel: (0, import_i18n58.__)("Type", "elementor"),
8386
- sizeLabel: (0, import_i18n58.__)("Duration", "elementor"),
8795
+ selectionLabel: (0, import_i18n60.__)("Type", "elementor"),
8796
+ sizeLabel: (0, import_i18n60.__)("Duration", "elementor"),
8387
8797
  selectionConfig: {
8388
8798
  component: TransitionSelector,
8389
8799
  props: {
@@ -8459,18 +8869,18 @@ var getInitialValue = (values = []) => {
8459
8869
  }
8460
8870
  return initialTransitionValue;
8461
8871
  };
8462
- var disableAddItemTooltipContent = /* @__PURE__ */ React113.createElement(
8463
- import_ui96.Alert,
8872
+ var disableAddItemTooltipContent = /* @__PURE__ */ React115.createElement(
8873
+ import_ui98.Alert,
8464
8874
  {
8465
8875
  sx: {
8466
8876
  width: 280,
8467
8877
  gap: 0.5
8468
8878
  },
8469
8879
  color: "secondary",
8470
- icon: /* @__PURE__ */ React113.createElement(import_icons38.InfoCircleFilledIcon, null)
8880
+ icon: /* @__PURE__ */ React115.createElement(import_icons39.InfoCircleFilledIcon, null)
8471
8881
  },
8472
- /* @__PURE__ */ React113.createElement(import_ui96.AlertTitle, null, (0, import_i18n58.__)("Transitions", "elementor")),
8473
- /* @__PURE__ */ React113.createElement(import_ui96.Box, { component: "span" }, /* @__PURE__ */ React113.createElement(import_ui96.Typography, { variant: "body2" }, (0, import_i18n58.__)("Switch to 'Normal' state to add a transition.", "elementor")))
8882
+ /* @__PURE__ */ React115.createElement(import_ui98.AlertTitle, null, (0, import_i18n60.__)("Transitions", "elementor")),
8883
+ /* @__PURE__ */ React115.createElement(import_ui98.Box, { component: "span" }, /* @__PURE__ */ React115.createElement(import_ui98.Typography, { variant: "body2" }, (0, import_i18n60.__)("Switch to 'Normal' state to add a transition.", "elementor")))
8474
8884
  );
8475
8885
  var TransitionRepeaterControl = createControl(
8476
8886
  ({
@@ -8478,14 +8888,14 @@ var TransitionRepeaterControl = createControl(
8478
8888
  currentStyleState
8479
8889
  }) => {
8480
8890
  const currentStyleIsNormal = currentStyleState === null;
8481
- const [recentlyUsedList, setRecentlyUsedList] = (0, import_react67.useState)([]);
8891
+ const [recentlyUsedList, setRecentlyUsedList] = (0, import_react69.useState)([]);
8482
8892
  const proInstalled = (0, import_utils8.hasProInstalled)();
8483
8893
  const { value, setValue } = useBoundProp(childArrayPropTypeUtil);
8484
- const { allDisabled: disabledItems, proDisabled: proDisabledItems } = (0, import_react67.useMemo)(
8894
+ const { allDisabled: disabledItems, proDisabled: proDisabledItems } = (0, import_react69.useMemo)(
8485
8895
  () => getDisabledItemLabels(value),
8486
8896
  [value]
8487
8897
  );
8488
- const allowedTransitionSet = (0, import_react67.useMemo)(() => {
8898
+ const allowedTransitionSet = (0, import_react69.useMemo)(() => {
8489
8899
  const set = /* @__PURE__ */ new Set();
8490
8900
  transitionProperties.forEach((category) => {
8491
8901
  category.properties.forEach((prop) => {
@@ -8496,7 +8906,7 @@ var TransitionRepeaterControl = createControl(
8496
8906
  });
8497
8907
  return set;
8498
8908
  }, [proInstalled]);
8499
- (0, import_react67.useEffect)(() => {
8909
+ (0, import_react69.useEffect)(() => {
8500
8910
  if (!value || value.length === 0) {
8501
8911
  return;
8502
8912
  }
@@ -8508,18 +8918,18 @@ var TransitionRepeaterControl = createControl(
8508
8918
  setValue(sanitized);
8509
8919
  }
8510
8920
  }, [allowedTransitionSet]);
8511
- (0, import_react67.useEffect)(() => {
8921
+ (0, import_react69.useEffect)(() => {
8512
8922
  recentlyUsedListGetter().then(setRecentlyUsedList);
8513
8923
  }, [recentlyUsedListGetter]);
8514
- const allPropertiesUsed = (0, import_react67.useMemo)(() => areAllPropertiesUsed(value), [value]);
8924
+ const allPropertiesUsed = (0, import_react69.useMemo)(() => areAllPropertiesUsed(value), [value]);
8515
8925
  const isAddItemDisabled = !currentStyleIsNormal || allPropertiesUsed;
8516
- return /* @__PURE__ */ React113.createElement(
8926
+ return /* @__PURE__ */ React115.createElement(
8517
8927
  RepeatableControl,
8518
8928
  {
8519
- label: (0, import_i18n58.__)("Transitions", "elementor"),
8520
- repeaterLabel: (0, import_i18n58.__)("Transitions", "elementor"),
8929
+ label: (0, import_i18n60.__)("Transitions", "elementor"),
8930
+ repeaterLabel: (0, import_i18n60.__)("Transitions", "elementor"),
8521
8931
  patternLabel: "${value.selection.value.key.value}: ${value.size.value.size}${value.size.value.unit}",
8522
- placeholder: (0, import_i18n58.__)("Empty Transition", "elementor"),
8932
+ placeholder: (0, import_i18n60.__)("Empty Transition", "elementor"),
8523
8933
  showDuplicate: false,
8524
8934
  showToggle: true,
8525
8935
  initialValues: getInitialValue(value),
@@ -8540,11 +8950,11 @@ var TransitionRepeaterControl = createControl(
8540
8950
  );
8541
8951
 
8542
8952
  // src/controls/date-time-control.tsx
8543
- var React114 = __toESM(require("react"));
8953
+ var React116 = __toESM(require("react"));
8544
8954
  var dayjs = __toESM(require("dayjs"));
8545
8955
  var import_editor_props58 = require("@elementor/editor-props");
8546
8956
  var import_editor_props59 = require("@elementor/editor-props");
8547
- var import_ui97 = require("@elementor/ui");
8957
+ var import_ui99 = require("@elementor/ui");
8548
8958
  var DATE_FORMAT = "YYYY-MM-DD";
8549
8959
  var TIME_FORMAT = "HH:mm";
8550
8960
  var DateTimeControl = createControl(({ inputDisabled }) => {
@@ -8588,8 +8998,8 @@ var DateTimeControl = createControl(({ inputDisabled }) => {
8588
8998
  const base = dayjs.default();
8589
8999
  return base.hour(h).minute(m).second(0).millisecond(0);
8590
9000
  };
8591
- return /* @__PURE__ */ React114.createElement(PropProvider, { ...propContext, value, setValue }, /* @__PURE__ */ React114.createElement(ControlActions, null, /* @__PURE__ */ React114.createElement(import_ui97.LocalizationProvider, null, /* @__PURE__ */ React114.createElement(import_ui97.Box, { display: "flex", gap: 1, alignItems: "center" }, /* @__PURE__ */ React114.createElement(PropKeyProvider, { bind: "date" }, /* @__PURE__ */ React114.createElement(
8592
- import_ui97.DatePicker,
9001
+ return /* @__PURE__ */ React116.createElement(PropProvider, { ...propContext, value, setValue }, /* @__PURE__ */ React116.createElement(ControlActions, null, /* @__PURE__ */ React116.createElement(import_ui99.LocalizationProvider, null, /* @__PURE__ */ React116.createElement(import_ui99.Box, { display: "flex", gap: 1, alignItems: "center" }, /* @__PURE__ */ React116.createElement(PropKeyProvider, { bind: "date" }, /* @__PURE__ */ React116.createElement(
9002
+ import_ui99.DatePicker,
8593
9003
  {
8594
9004
  value: parseDateValue(import_editor_props58.stringPropTypeUtil.extract(value?.date)),
8595
9005
  onChange: (v) => handleChange({ date: v }, { bind: "date" }),
@@ -8600,8 +9010,8 @@ var DateTimeControl = createControl(({ inputDisabled }) => {
8600
9010
  openPickerIcon: { fontSize: "tiny" }
8601
9011
  }
8602
9012
  }
8603
- )), /* @__PURE__ */ React114.createElement(PropKeyProvider, { bind: "time" }, /* @__PURE__ */ React114.createElement(
8604
- import_ui97.TimePicker,
9013
+ )), /* @__PURE__ */ React116.createElement(PropKeyProvider, { bind: "time" }, /* @__PURE__ */ React116.createElement(
9014
+ import_ui99.TimePicker,
8605
9015
  {
8606
9016
  value: parseTimeValue(import_editor_props58.stringPropTypeUtil.extract(value?.time)),
8607
9017
  onChange: (v) => handleChange({ time: v }, { bind: "time" }),
@@ -8616,15 +9026,15 @@ var DateTimeControl = createControl(({ inputDisabled }) => {
8616
9026
  });
8617
9027
 
8618
9028
  // src/controls/date-range-control.tsx
8619
- var React116 = __toESM(require("react"));
9029
+ var React118 = __toESM(require("react"));
8620
9030
  var import_editor_props61 = require("@elementor/editor-props");
8621
- var import_ui99 = require("@elementor/ui");
8622
- var import_i18n59 = require("@wordpress/i18n");
9031
+ var import_ui101 = require("@elementor/ui");
9032
+ var import_i18n61 = require("@wordpress/i18n");
8623
9033
 
8624
9034
  // src/controls/date-string-control.tsx
8625
- var React115 = __toESM(require("react"));
9035
+ var React117 = __toESM(require("react"));
8626
9036
  var import_editor_props60 = require("@elementor/editor-props");
8627
- var import_ui98 = require("@elementor/ui");
9037
+ var import_ui100 = require("@elementor/ui");
8628
9038
 
8629
9039
  // src/utils/date-time.ts
8630
9040
  var dayjs2 = __toESM(require("dayjs"));
@@ -8681,8 +9091,8 @@ var DateStringControl = createControl(
8681
9091
  }
8682
9092
  setValue(newValue.format(format));
8683
9093
  };
8684
- return /* @__PURE__ */ React115.createElement(import_ui98.LocalizationProvider, null, /* @__PURE__ */ React115.createElement(ControlActions, null, /* @__PURE__ */ React115.createElement(
8685
- import_ui98.DatePicker,
9094
+ return /* @__PURE__ */ React117.createElement(import_ui100.LocalizationProvider, null, /* @__PURE__ */ React117.createElement(ControlActions, null, /* @__PURE__ */ React117.createElement(
9095
+ import_ui100.DatePicker,
8686
9096
  {
8687
9097
  value: parseDateString(value ?? ""),
8688
9098
  onChange: (newValue) => handleChange(newValue, DATE_FORMAT2),
@@ -8695,8 +9105,8 @@ var DateStringControl = createControl(
8695
9105
 
8696
9106
  // src/controls/date-range-control.tsx
8697
9107
  var RANGE_LABELS = {
8698
- min: (0, import_i18n59.__)("Min date", "elementor"),
8699
- max: (0, import_i18n59.__)("Max date", "elementor")
9108
+ min: (0, import_i18n61.__)("Min date", "elementor"),
9109
+ max: (0, import_i18n61.__)("Max date", "elementor")
8700
9110
  };
8701
9111
  var isMaxBeforeMin = (minIso, maxIso) => {
8702
9112
  if (!minIso || !maxIso) {
@@ -8704,40 +9114,40 @@ var isMaxBeforeMin = (minIso, maxIso) => {
8704
9114
  }
8705
9115
  return maxIso < minIso;
8706
9116
  };
8707
- var RANGE_ERROR_MESSAGE = (0, import_i18n59.__)("Max date must be on or after Min date", "elementor");
9117
+ var RANGE_ERROR_MESSAGE = (0, import_i18n61.__)("Max date must be on or after Min date", "elementor");
8708
9118
  var DateRangeControl = createControl(() => {
8709
9119
  const { value, setValue, ...propContext } = useBoundProp(import_editor_props61.dateRangePropTypeUtil);
8710
9120
  const minString = import_editor_props61.dateStringPropTypeUtil.extract(value?.min);
8711
9121
  const maxString = import_editor_props61.dateStringPropTypeUtil.extract(value?.max);
8712
9122
  const hasInvalidRange = isMaxBeforeMin(minString, maxString);
8713
- return /* @__PURE__ */ React116.createElement(PropProvider, { ...propContext, value, setValue }, /* @__PURE__ */ React116.createElement(import_ui99.Stack, { gap: 0.75 }, /* @__PURE__ */ React116.createElement(import_ui99.Stack, { direction: "row", gap: 2, flexWrap: "nowrap" }, /* @__PURE__ */ React116.createElement(import_ui99.Grid, { container: true, gap: 0.75, alignItems: "center" }, /* @__PURE__ */ React116.createElement(import_ui99.Grid, { item: true, xs: 12 }, /* @__PURE__ */ React116.createElement(ControlFormLabel, null, RANGE_LABELS.min)), /* @__PURE__ */ React116.createElement(import_ui99.Grid, { item: true, xs: 12 }, /* @__PURE__ */ React116.createElement(
9123
+ return /* @__PURE__ */ React118.createElement(PropProvider, { ...propContext, value, setValue }, /* @__PURE__ */ React118.createElement(import_ui101.Stack, { gap: 0.75 }, /* @__PURE__ */ React118.createElement(import_ui101.Stack, { direction: "row", gap: 2, flexWrap: "nowrap" }, /* @__PURE__ */ React118.createElement(import_ui101.Grid, { container: true, gap: 0.75, alignItems: "center" }, /* @__PURE__ */ React118.createElement(import_ui101.Grid, { item: true, xs: 12 }, /* @__PURE__ */ React118.createElement(ControlFormLabel, null, RANGE_LABELS.min)), /* @__PURE__ */ React118.createElement(import_ui101.Grid, { item: true, xs: 12 }, /* @__PURE__ */ React118.createElement(
8714
9124
  BoundDateStringControl,
8715
9125
  {
8716
9126
  bind: "min",
8717
9127
  ariaLabel: RANGE_LABELS.min,
8718
9128
  error: hasInvalidRange
8719
9129
  }
8720
- ))), /* @__PURE__ */ React116.createElement(import_ui99.Grid, { container: true, gap: 0.75, alignItems: "center" }, /* @__PURE__ */ React116.createElement(import_ui99.Grid, { item: true, xs: 12 }, /* @__PURE__ */ React116.createElement(ControlFormLabel, null, RANGE_LABELS.max)), /* @__PURE__ */ React116.createElement(import_ui99.Grid, { item: true, xs: 12 }, /* @__PURE__ */ React116.createElement(
9130
+ ))), /* @__PURE__ */ React118.createElement(import_ui101.Grid, { container: true, gap: 0.75, alignItems: "center" }, /* @__PURE__ */ React118.createElement(import_ui101.Grid, { item: true, xs: 12 }, /* @__PURE__ */ React118.createElement(ControlFormLabel, null, RANGE_LABELS.max)), /* @__PURE__ */ React118.createElement(import_ui101.Grid, { item: true, xs: 12 }, /* @__PURE__ */ React118.createElement(
8721
9131
  BoundDateStringControl,
8722
9132
  {
8723
9133
  bind: "max",
8724
9134
  ariaLabel: RANGE_LABELS.max,
8725
9135
  error: hasInvalidRange
8726
9136
  }
8727
- )))), hasInvalidRange && /* @__PURE__ */ React116.createElement(import_ui99.FormHelperText, { error: true }, RANGE_ERROR_MESSAGE)));
9137
+ )))), hasInvalidRange && /* @__PURE__ */ React118.createElement(import_ui101.FormHelperText, { error: true }, RANGE_ERROR_MESSAGE)));
8728
9138
  });
8729
9139
  var BoundDateStringControl = ({
8730
9140
  bind,
8731
9141
  ariaLabel,
8732
9142
  error
8733
9143
  }) => {
8734
- return /* @__PURE__ */ React116.createElement(PropKeyProvider, { bind }, /* @__PURE__ */ React116.createElement(DateStringControl, { ariaLabel, error, coerceInvalidToNull: true }));
9144
+ return /* @__PURE__ */ React118.createElement(PropKeyProvider, { bind }, /* @__PURE__ */ React118.createElement(DateStringControl, { ariaLabel, error, coerceInvalidToNull: true }));
8735
9145
  };
8736
9146
 
8737
9147
  // src/controls/time-string-control.tsx
8738
- var React117 = __toESM(require("react"));
9148
+ var React119 = __toESM(require("react"));
8739
9149
  var import_editor_props62 = require("@elementor/editor-props");
8740
- var import_ui100 = require("@elementor/ui");
9150
+ var import_ui102 = require("@elementor/ui");
8741
9151
  var TimeStringControl = createControl(
8742
9152
  ({ inputDisabled, ariaLabel, error, coerceInvalidToNull = false }) => {
8743
9153
  const { value, setValue, disabled } = useBoundProp(import_editor_props62.timeStringPropTypeUtil);
@@ -8763,8 +9173,8 @@ var TimeStringControl = createControl(
8763
9173
  }
8764
9174
  setValue(newValue.format(format));
8765
9175
  };
8766
- return /* @__PURE__ */ React117.createElement(import_ui100.LocalizationProvider, null, /* @__PURE__ */ React117.createElement(ControlActions, null, /* @__PURE__ */ React117.createElement(
8767
- import_ui100.TimePicker,
9176
+ return /* @__PURE__ */ React119.createElement(import_ui102.LocalizationProvider, null, /* @__PURE__ */ React119.createElement(ControlActions, null, /* @__PURE__ */ React119.createElement(
9177
+ import_ui102.TimePicker,
8768
9178
  {
8769
9179
  value: parseTimeString(value ?? ""),
8770
9180
  onChange: (newValue) => handleChange(newValue, TIME_FORMAT2),
@@ -8776,32 +9186,32 @@ var TimeStringControl = createControl(
8776
9186
  );
8777
9187
 
8778
9188
  // src/controls/time-range-control.tsx
8779
- var React118 = __toESM(require("react"));
9189
+ var React120 = __toESM(require("react"));
8780
9190
  var import_editor_props63 = require("@elementor/editor-props");
8781
- var import_ui101 = require("@elementor/ui");
8782
- var import_i18n60 = require("@wordpress/i18n");
9191
+ var import_ui103 = require("@elementor/ui");
9192
+ var import_i18n62 = require("@wordpress/i18n");
8783
9193
  var RANGE_LABELS2 = {
8784
- min: (0, import_i18n60.__)("Start time", "elementor"),
8785
- max: (0, import_i18n60.__)("End time", "elementor")
9194
+ min: (0, import_i18n62.__)("Start time", "elementor"),
9195
+ max: (0, import_i18n62.__)("End time", "elementor")
8786
9196
  };
8787
9197
  var TimeRangeControl = createControl(() => {
8788
9198
  const { value, setValue, ...propContext } = useBoundProp(import_editor_props63.timeRangePropTypeUtil);
8789
- return /* @__PURE__ */ React118.createElement(PropProvider, { ...propContext, value, setValue }, /* @__PURE__ */ React118.createElement(import_ui101.Stack, { direction: "row", gap: 2, flexWrap: "nowrap" }, /* @__PURE__ */ React118.createElement(import_ui101.Grid, { container: true, gap: 0.75, alignItems: "center" }, /* @__PURE__ */ React118.createElement(import_ui101.Grid, { item: true, xs: 12 }, /* @__PURE__ */ React118.createElement(ControlFormLabel, null, RANGE_LABELS2.min)), /* @__PURE__ */ React118.createElement(import_ui101.Grid, { item: true, xs: 12 }, /* @__PURE__ */ React118.createElement(BoundTimeStringControl, { bind: "min", ariaLabel: RANGE_LABELS2.min }))), /* @__PURE__ */ React118.createElement(import_ui101.Grid, { container: true, gap: 0.75, alignItems: "center" }, /* @__PURE__ */ React118.createElement(import_ui101.Grid, { item: true, xs: 12 }, /* @__PURE__ */ React118.createElement(ControlFormLabel, null, RANGE_LABELS2.max)), /* @__PURE__ */ React118.createElement(import_ui101.Grid, { item: true, xs: 12 }, /* @__PURE__ */ React118.createElement(BoundTimeStringControl, { bind: "max", ariaLabel: RANGE_LABELS2.max })))));
9199
+ return /* @__PURE__ */ React120.createElement(PropProvider, { ...propContext, value, setValue }, /* @__PURE__ */ React120.createElement(import_ui103.Stack, { direction: "row", gap: 2, flexWrap: "nowrap" }, /* @__PURE__ */ React120.createElement(import_ui103.Grid, { container: true, gap: 0.75, alignItems: "center" }, /* @__PURE__ */ React120.createElement(import_ui103.Grid, { item: true, xs: 12 }, /* @__PURE__ */ React120.createElement(ControlFormLabel, null, RANGE_LABELS2.min)), /* @__PURE__ */ React120.createElement(import_ui103.Grid, { item: true, xs: 12 }, /* @__PURE__ */ React120.createElement(BoundTimeStringControl, { bind: "min", ariaLabel: RANGE_LABELS2.min }))), /* @__PURE__ */ React120.createElement(import_ui103.Grid, { container: true, gap: 0.75, alignItems: "center" }, /* @__PURE__ */ React120.createElement(import_ui103.Grid, { item: true, xs: 12 }, /* @__PURE__ */ React120.createElement(ControlFormLabel, null, RANGE_LABELS2.max)), /* @__PURE__ */ React120.createElement(import_ui103.Grid, { item: true, xs: 12 }, /* @__PURE__ */ React120.createElement(BoundTimeStringControl, { bind: "max", ariaLabel: RANGE_LABELS2.max })))));
8790
9200
  });
8791
9201
  var BoundTimeStringControl = ({ bind, ariaLabel }) => {
8792
- return /* @__PURE__ */ React118.createElement(PropKeyProvider, { bind }, /* @__PURE__ */ React118.createElement(TimeStringControl, { ariaLabel, coerceInvalidToNull: true }));
9202
+ return /* @__PURE__ */ React120.createElement(PropKeyProvider, { bind }, /* @__PURE__ */ React120.createElement(TimeStringControl, { ariaLabel, coerceInvalidToNull: true }));
8793
9203
  };
8794
9204
 
8795
9205
  // src/controls/inline-editing-control.tsx
8796
- var React122 = __toESM(require("react"));
8797
- var import_react73 = require("react");
9206
+ var React124 = __toESM(require("react"));
9207
+ var import_react75 = require("react");
8798
9208
  var import_editor_props65 = require("@elementor/editor-props");
8799
- var import_ui105 = require("@elementor/ui");
9209
+ var import_ui107 = require("@elementor/ui");
8800
9210
 
8801
9211
  // src/components/inline-editor.tsx
8802
- var React119 = __toESM(require("react"));
8803
- var import_react68 = require("react");
8804
- var import_ui102 = require("@elementor/ui");
9212
+ var React121 = __toESM(require("react"));
9213
+ var import_react70 = require("react");
9214
+ var import_ui104 = require("@elementor/ui");
8805
9215
  var import_extension_bold = __toESM(require("@tiptap/extension-bold"));
8806
9216
  var import_extension_document = __toESM(require("@tiptap/extension-document"));
8807
9217
  var import_extension_hard_break = __toESM(require("@tiptap/extension-hard-break"));
@@ -8814,7 +9224,7 @@ var import_extension_subscript = __toESM(require("@tiptap/extension-subscript"))
8814
9224
  var import_extension_superscript = __toESM(require("@tiptap/extension-superscript"));
8815
9225
  var import_extension_text = __toESM(require("@tiptap/extension-text"));
8816
9226
  var import_extension_underline = __toESM(require("@tiptap/extension-underline"));
8817
- var import_react69 = require("@tiptap/react");
9227
+ var import_react71 = require("@tiptap/react");
8818
9228
 
8819
9229
  // src/utils/inline-editing.ts
8820
9230
  var import_editor_props64 = require("@elementor/editor-props");
@@ -8846,7 +9256,7 @@ function extractInlineHtmlContent(propValue) {
8846
9256
  var ITALIC_KEYBOARD_SHORTCUT = "i";
8847
9257
  var BOLD_KEYBOARD_SHORTCUT = "b";
8848
9258
  var UNDERLINE_KEYBOARD_SHORTCUT = "u";
8849
- var InlineEditor = React119.forwardRef((props, ref) => {
9259
+ var InlineEditor = React121.forwardRef((props, ref) => {
8850
9260
  const {
8851
9261
  value,
8852
9262
  setValue,
@@ -8863,8 +9273,8 @@ var InlineEditor = React119.forwardRef((props, ref) => {
8863
9273
  onSelectionEnd,
8864
9274
  mountElement = null
8865
9275
  } = props;
8866
- const containerRef = (0, import_react68.useRef)(null);
8867
- const onBlurRef = (0, import_react68.useRef)(onBlur);
9276
+ const containerRef = (0, import_react70.useRef)(null);
9277
+ const onBlurRef = (0, import_react70.useRef)(onBlur);
8868
9278
  onBlurRef.current = onBlur;
8869
9279
  const documentContentSettings = !!expectedTag ? "block+" : "inline*";
8870
9280
  const onUpdate = ({ editor: updatedEditor }) => {
@@ -8886,7 +9296,7 @@ var InlineEditor = React119.forwardRef((props, ref) => {
8886
9296
  ...HTMLAttributes,
8887
9297
  class: elementClasses
8888
9298
  });
8889
- const editor = (0, import_react69.useEditor)({
9299
+ const editor = (0, import_react71.useEditor)({
8890
9300
  ...mountElement ? { element: mountElement } : {},
8891
9301
  extensions: [
8892
9302
  import_extension_document.default.extend({
@@ -8959,11 +9369,11 @@ var InlineEditor = React119.forwardRef((props, ref) => {
8959
9369
  if (mountElement) {
8960
9370
  return null;
8961
9371
  }
8962
- return /* @__PURE__ */ React119.createElement(import_ui102.Box, { ref: containerRef, sx, className: wrapperClassName }, /* @__PURE__ */ React119.createElement(import_react69.EditorContent, { ref, editor }));
9372
+ return /* @__PURE__ */ React121.createElement(import_ui104.Box, { ref: containerRef, sx, className: wrapperClassName }, /* @__PURE__ */ React121.createElement(import_react71.EditorContent, { ref, editor }));
8963
9373
  });
8964
9374
  var useOnUpdate = (callback, dependencies) => {
8965
- const hasMounted = (0, import_react68.useRef)(false);
8966
- (0, import_react68.useEffect)(() => {
9375
+ const hasMounted = (0, import_react70.useRef)(false);
9376
+ (0, import_react70.useEffect)(() => {
8967
9377
  if (hasMounted.current) {
8968
9378
  callback();
8969
9379
  } else {
@@ -8973,20 +9383,20 @@ var useOnUpdate = (callback, dependencies) => {
8973
9383
  };
8974
9384
 
8975
9385
  // src/components/inline-editor-toolbar.tsx
8976
- var React121 = __toESM(require("react"));
8977
- var import_react71 = require("react");
9386
+ var React123 = __toESM(require("react"));
9387
+ var import_react73 = require("react");
8978
9388
  var import_editor_elements7 = require("@elementor/editor-elements");
8979
- var import_icons40 = require("@elementor/icons");
8980
- var import_ui104 = require("@elementor/ui");
8981
- var import_react72 = require("@tiptap/react");
8982
- var import_i18n62 = require("@wordpress/i18n");
9389
+ var import_icons41 = require("@elementor/icons");
9390
+ var import_ui106 = require("@elementor/ui");
9391
+ var import_react74 = require("@tiptap/react");
9392
+ var import_i18n64 = require("@wordpress/i18n");
8983
9393
 
8984
9394
  // src/components/url-popover.tsx
8985
- var React120 = __toESM(require("react"));
8986
- var import_react70 = require("react");
8987
- var import_icons39 = require("@elementor/icons");
8988
- var import_ui103 = require("@elementor/ui");
8989
- var import_i18n61 = require("@wordpress/i18n");
9395
+ var React122 = __toESM(require("react"));
9396
+ var import_react72 = require("react");
9397
+ var import_icons40 = require("@elementor/icons");
9398
+ var import_ui105 = require("@elementor/ui");
9399
+ var import_i18n63 = require("@wordpress/i18n");
8990
9400
  var UrlPopover = ({
8991
9401
  popupState,
8992
9402
  restoreValue,
@@ -8996,8 +9406,8 @@ var UrlPopover = ({
8996
9406
  openInNewTab,
8997
9407
  onToggleNewTab
8998
9408
  }) => {
8999
- const inputRef = (0, import_react70.useRef)(null);
9000
- (0, import_react70.useEffect)(() => {
9409
+ const inputRef = (0, import_react72.useRef)(null);
9410
+ (0, import_react72.useEffect)(() => {
9001
9411
  if (popupState.isOpen) {
9002
9412
  requestAnimationFrame(() => inputRef.current?.focus());
9003
9413
  }
@@ -9006,41 +9416,41 @@ var UrlPopover = ({
9006
9416
  restoreValue();
9007
9417
  popupState.close();
9008
9418
  };
9009
- return /* @__PURE__ */ React120.createElement(
9010
- import_ui103.Popover,
9419
+ return /* @__PURE__ */ React122.createElement(
9420
+ import_ui105.Popover,
9011
9421
  {
9012
9422
  slotProps: {
9013
9423
  paper: { sx: { borderRadius: "16px", width: anchorRef.current?.offsetWidth + "px", marginTop: -1 } }
9014
9424
  },
9015
- ...(0, import_ui103.bindPopover)(popupState),
9425
+ ...(0, import_ui105.bindPopover)(popupState),
9016
9426
  anchorOrigin: { vertical: "top", horizontal: "left" },
9017
9427
  transformOrigin: { vertical: "top", horizontal: "left" },
9018
9428
  onClose: handleClose
9019
9429
  },
9020
- /* @__PURE__ */ React120.createElement(import_ui103.Stack, { direction: "row", alignItems: "center", gap: 1, sx: { p: 1.5 } }, /* @__PURE__ */ React120.createElement(
9021
- import_ui103.TextField,
9430
+ /* @__PURE__ */ React122.createElement(import_ui105.Stack, { direction: "row", alignItems: "center", gap: 1, sx: { p: 1.5 } }, /* @__PURE__ */ React122.createElement(
9431
+ import_ui105.TextField,
9022
9432
  {
9023
9433
  value,
9024
9434
  onChange,
9025
9435
  size: "tiny",
9026
9436
  fullWidth: true,
9027
- placeholder: (0, import_i18n61.__)("Type a URL", "elementor"),
9437
+ placeholder: (0, import_i18n63.__)("Type a URL", "elementor"),
9028
9438
  inputProps: { ref: inputRef },
9029
9439
  color: "secondary",
9030
9440
  InputProps: { sx: { borderRadius: "8px" } },
9031
9441
  onKeyUp: (event) => event.key === "Enter" && handleClose()
9032
9442
  }
9033
- ), /* @__PURE__ */ React120.createElement(import_ui103.Tooltip, { title: (0, import_i18n61.__)("Open in a new tab", "elementor") }, /* @__PURE__ */ React120.createElement(
9034
- import_ui103.ToggleButton,
9443
+ ), /* @__PURE__ */ React122.createElement(import_ui105.Tooltip, { title: (0, import_i18n63.__)("Open in a new tab", "elementor") }, /* @__PURE__ */ React122.createElement(
9444
+ import_ui105.ToggleButton,
9035
9445
  {
9036
9446
  size: "tiny",
9037
9447
  value: "newTab",
9038
9448
  selected: openInNewTab,
9039
9449
  onClick: onToggleNewTab,
9040
- "aria-label": (0, import_i18n61.__)("Open in a new tab", "elementor"),
9450
+ "aria-label": (0, import_i18n63.__)("Open in a new tab", "elementor"),
9041
9451
  sx: { borderRadius: "8px" }
9042
9452
  },
9043
- /* @__PURE__ */ React120.createElement(import_icons39.ExternalLinkIcon, { fontSize: "tiny" })
9453
+ /* @__PURE__ */ React122.createElement(import_icons40.ExternalLinkIcon, { fontSize: "tiny" })
9044
9454
  )))
9045
9455
  );
9046
9456
  };
@@ -9052,16 +9462,16 @@ var InlineEditorToolbar = ({
9052
9462
  sx = {},
9053
9463
  inControlPanel = false
9054
9464
  }) => {
9055
- const [urlValue, setUrlValue] = (0, import_react71.useState)("");
9056
- const [openInNewTab, setOpenInNewTab] = (0, import_react71.useState)(false);
9057
- const toolbarRef = (0, import_react71.useRef)(null);
9058
- const linkPopupState = (0, import_ui104.usePopupState)({ variant: "popover" });
9465
+ const [urlValue, setUrlValue] = (0, import_react73.useState)("");
9466
+ const [openInNewTab, setOpenInNewTab] = (0, import_react73.useState)(false);
9467
+ const toolbarRef = (0, import_react73.useRef)(null);
9468
+ const linkPopupState = (0, import_ui106.usePopupState)({ variant: "popover" });
9059
9469
  const isElementClickable = elementId ? checkIfElementIsClickable(elementId) : false;
9060
- const editorState = (0, import_react72.useEditorState)({
9470
+ const editorState = (0, import_react74.useEditorState)({
9061
9471
  editor,
9062
9472
  selector: (ctx) => possibleFormats.filter((format) => ctx.editor.isActive(format))
9063
9473
  });
9064
- const formatButtonsList = (0, import_react71.useMemo)(() => {
9474
+ const formatButtonsList = (0, import_react73.useMemo)(() => {
9065
9475
  const buttons = Object.values(formatButtons);
9066
9476
  if (isElementClickable) {
9067
9477
  return buttons.filter((button) => button.action !== "link");
@@ -9098,13 +9508,13 @@ var InlineEditorToolbar = ({
9098
9508
  }
9099
9509
  linkPopupState.close();
9100
9510
  };
9101
- (0, import_react71.useEffect)(() => {
9511
+ (0, import_react73.useEffect)(() => {
9102
9512
  if (!inControlPanel) {
9103
9513
  editor?.commands?.focus();
9104
9514
  }
9105
9515
  }, [editor, inControlPanel]);
9106
- return /* @__PURE__ */ React121.createElement(
9107
- import_ui104.Box,
9516
+ return /* @__PURE__ */ React123.createElement(
9517
+ import_ui106.Box,
9108
9518
  {
9109
9519
  ref: toolbarRef,
9110
9520
  sx: {
@@ -9137,9 +9547,9 @@ var InlineEditorToolbar = ({
9137
9547
  }
9138
9548
  }
9139
9549
  },
9140
- /* @__PURE__ */ React121.createElement(import_ui104.Tooltip, { title: clearButton.label, placement: "top", sx: { borderRadius: "8px" } }, /* @__PURE__ */ React121.createElement(import_ui104.IconButton, { "aria-label": clearButton.label, onClick: () => clearButton.method(editor), size: "tiny" }, clearButton.icon)),
9141
- /* @__PURE__ */ React121.createElement(
9142
- import_ui104.ToggleButtonGroup,
9550
+ /* @__PURE__ */ React123.createElement(import_ui106.Tooltip, { title: clearButton.label, placement: "top", sx: { borderRadius: "8px" } }, /* @__PURE__ */ React123.createElement(import_ui106.IconButton, { "aria-label": clearButton.label, onClick: () => clearButton.method(editor), size: "tiny" }, clearButton.icon)),
9551
+ /* @__PURE__ */ React123.createElement(
9552
+ import_ui106.ToggleButtonGroup,
9143
9553
  {
9144
9554
  value: editorState,
9145
9555
  size: "tiny",
@@ -9147,7 +9557,7 @@ var InlineEditorToolbar = ({
9147
9557
  display: "flex",
9148
9558
  gap: 0.5,
9149
9559
  border: "none",
9150
- [`& .${import_ui104.toggleButtonGroupClasses.firstButton}, & .${import_ui104.toggleButtonGroupClasses.middleButton}, & .${import_ui104.toggleButtonGroupClasses.lastButton}`]: {
9560
+ [`& .${import_ui106.toggleButtonGroupClasses.firstButton}, & .${import_ui106.toggleButtonGroupClasses.middleButton}, & .${import_ui106.toggleButtonGroupClasses.lastButton}`]: {
9151
9561
  borderRadius: "8px",
9152
9562
  border: "none",
9153
9563
  marginLeft: 0,
@@ -9168,8 +9578,8 @@ var InlineEditorToolbar = ({
9168
9578
  }
9169
9579
  }
9170
9580
  },
9171
- formatButtonsList.map((button) => /* @__PURE__ */ React121.createElement(import_ui104.Tooltip, { title: button.label, key: button.action, placement: "top" }, /* @__PURE__ */ React121.createElement(
9172
- import_ui104.ToggleButton,
9581
+ formatButtonsList.map((button) => /* @__PURE__ */ React123.createElement(import_ui106.Tooltip, { title: button.label, key: button.action, placement: "top" }, /* @__PURE__ */ React123.createElement(
9582
+ import_ui106.ToggleButton,
9173
9583
  {
9174
9584
  value: button.action,
9175
9585
  "aria-label": button.label,
@@ -9186,7 +9596,7 @@ var InlineEditorToolbar = ({
9186
9596
  button.icon
9187
9597
  )))
9188
9598
  ),
9189
- /* @__PURE__ */ React121.createElement(
9599
+ /* @__PURE__ */ React123.createElement(
9190
9600
  UrlPopover,
9191
9601
  {
9192
9602
  popupState: linkPopupState,
@@ -9209,64 +9619,64 @@ var checkIfElementIsClickable = (elementId) => {
9209
9619
  };
9210
9620
  var toolbarButtons = {
9211
9621
  clear: {
9212
- label: (0, import_i18n62.__)("Clear", "elementor"),
9213
- icon: /* @__PURE__ */ React121.createElement(import_icons40.MinusIcon, { fontSize: "tiny" }),
9622
+ label: (0, import_i18n64.__)("Clear", "elementor"),
9623
+ icon: /* @__PURE__ */ React123.createElement(import_icons41.MinusIcon, { fontSize: "tiny" }),
9214
9624
  action: "clear",
9215
9625
  method: (editor) => {
9216
9626
  editor.chain().focus().clearNodes().unsetAllMarks().run();
9217
9627
  }
9218
9628
  },
9219
9629
  bold: {
9220
- label: (0, import_i18n62.__)("Bold", "elementor"),
9221
- icon: /* @__PURE__ */ React121.createElement(import_icons40.BoldIcon, { fontSize: "tiny" }),
9630
+ label: (0, import_i18n64.__)("Bold", "elementor"),
9631
+ icon: /* @__PURE__ */ React123.createElement(import_icons41.BoldIcon, { fontSize: "tiny" }),
9222
9632
  action: "bold",
9223
9633
  method: (editor) => {
9224
9634
  editor.chain().focus().toggleBold().run();
9225
9635
  }
9226
9636
  },
9227
9637
  italic: {
9228
- label: (0, import_i18n62.__)("Italic", "elementor"),
9229
- icon: /* @__PURE__ */ React121.createElement(import_icons40.ItalicIcon, { fontSize: "tiny" }),
9638
+ label: (0, import_i18n64.__)("Italic", "elementor"),
9639
+ icon: /* @__PURE__ */ React123.createElement(import_icons41.ItalicIcon, { fontSize: "tiny" }),
9230
9640
  action: "italic",
9231
9641
  method: (editor) => {
9232
9642
  editor.chain().focus().toggleItalic().run();
9233
9643
  }
9234
9644
  },
9235
9645
  underline: {
9236
- label: (0, import_i18n62.__)("Underline", "elementor"),
9237
- icon: /* @__PURE__ */ React121.createElement(import_icons40.UnderlineIcon, { fontSize: "tiny" }),
9646
+ label: (0, import_i18n64.__)("Underline", "elementor"),
9647
+ icon: /* @__PURE__ */ React123.createElement(import_icons41.UnderlineIcon, { fontSize: "tiny" }),
9238
9648
  action: "underline",
9239
9649
  method: (editor) => {
9240
9650
  editor.chain().focus().toggleUnderline().run();
9241
9651
  }
9242
9652
  },
9243
9653
  strike: {
9244
- label: (0, import_i18n62.__)("Strikethrough", "elementor"),
9245
- icon: /* @__PURE__ */ React121.createElement(import_icons40.StrikethroughIcon, { fontSize: "tiny" }),
9654
+ label: (0, import_i18n64.__)("Strikethrough", "elementor"),
9655
+ icon: /* @__PURE__ */ React123.createElement(import_icons41.StrikethroughIcon, { fontSize: "tiny" }),
9246
9656
  action: "strike",
9247
9657
  method: (editor) => {
9248
9658
  editor.chain().focus().toggleStrike().run();
9249
9659
  }
9250
9660
  },
9251
9661
  superscript: {
9252
- label: (0, import_i18n62.__)("Superscript", "elementor"),
9253
- icon: /* @__PURE__ */ React121.createElement(import_icons40.SuperscriptIcon, { fontSize: "tiny" }),
9662
+ label: (0, import_i18n64.__)("Superscript", "elementor"),
9663
+ icon: /* @__PURE__ */ React123.createElement(import_icons41.SuperscriptIcon, { fontSize: "tiny" }),
9254
9664
  action: "superscript",
9255
9665
  method: (editor) => {
9256
9666
  editor.chain().focus().toggleSuperscript().run();
9257
9667
  }
9258
9668
  },
9259
9669
  subscript: {
9260
- label: (0, import_i18n62.__)("Subscript", "elementor"),
9261
- icon: /* @__PURE__ */ React121.createElement(import_icons40.SubscriptIcon, { fontSize: "tiny" }),
9670
+ label: (0, import_i18n64.__)("Subscript", "elementor"),
9671
+ icon: /* @__PURE__ */ React123.createElement(import_icons41.SubscriptIcon, { fontSize: "tiny" }),
9262
9672
  action: "subscript",
9263
9673
  method: (editor) => {
9264
9674
  editor.chain().focus().toggleSubscript().run();
9265
9675
  }
9266
9676
  },
9267
9677
  link: {
9268
- label: (0, import_i18n62.__)("Link", "elementor"),
9269
- icon: /* @__PURE__ */ React121.createElement(import_icons40.LinkIcon, { fontSize: "tiny" }),
9678
+ label: (0, import_i18n64.__)("Link", "elementor"),
9679
+ icon: /* @__PURE__ */ React123.createElement(import_icons41.LinkIcon, { fontSize: "tiny" }),
9270
9680
  action: "link",
9271
9681
  method: null
9272
9682
  }
@@ -9279,15 +9689,15 @@ var InlineEditingControl = createControl(({ sx, attributes, props, context: { el
9279
9689
  const { setValue, placeholder, value } = useBoundProp(import_editor_props65.escapedHtmlPropTypeUtil);
9280
9690
  const { value: rawValue } = usePropKeyContext();
9281
9691
  const content = value ?? extractInlineHtmlContent(rawValue);
9282
- const [editor, setEditor] = (0, import_react73.useState)(null);
9283
- const handleChange = (0, import_react73.useCallback)(
9692
+ const [editor, setEditor] = (0, import_react75.useState)(null);
9693
+ const handleChange = (0, import_react75.useCallback)(
9284
9694
  (newValue) => {
9285
9695
  const html = newValue ?? "";
9286
9696
  setValue(html);
9287
9697
  },
9288
9698
  [setValue]
9289
9699
  );
9290
- return /* @__PURE__ */ React122.createElement(ControlActions, null, /* @__PURE__ */ React122.createElement(import_ui105.Box, { sx: { position: "relative" } }, editor && editor.isEditable && /* @__PURE__ */ React122.createElement(
9700
+ return /* @__PURE__ */ React124.createElement(ControlActions, null, /* @__PURE__ */ React124.createElement(import_ui107.Box, { sx: { position: "relative" } }, editor && editor.isEditable && /* @__PURE__ */ React124.createElement(
9291
9701
  InlineEditorToolbar,
9292
9702
  {
9293
9703
  editor,
@@ -9300,8 +9710,8 @@ var InlineEditingControl = createControl(({ sx, attributes, props, context: { el
9300
9710
  }),
9301
9711
  inControlPanel: true
9302
9712
  }
9303
- ), /* @__PURE__ */ React122.createElement(
9304
- import_ui105.Box,
9713
+ ), /* @__PURE__ */ React124.createElement(
9714
+ import_ui107.Box,
9305
9715
  {
9306
9716
  sx: (theme) => ({
9307
9717
  p: 0.8,
@@ -9345,7 +9755,7 @@ var InlineEditingControl = createControl(({ sx, attributes, props, context: { el
9345
9755
  ...attributes,
9346
9756
  ...props
9347
9757
  },
9348
- /* @__PURE__ */ React122.createElement(
9758
+ /* @__PURE__ */ React124.createElement(
9349
9759
  InlineEditor,
9350
9760
  {
9351
9761
  value: content,
@@ -9362,17 +9772,17 @@ var InlineEditingControl = createControl(({ sx, attributes, props, context: { el
9362
9772
  });
9363
9773
 
9364
9774
  // src/controls/email-form-action-control/index.tsx
9365
- var React126 = __toESM(require("react"));
9775
+ var React128 = __toESM(require("react"));
9366
9776
  var import_editor_props68 = require("@elementor/editor-props");
9367
9777
  var import_editor_ui17 = require("@elementor/editor-ui");
9368
- var import_ui109 = require("@elementor/ui");
9369
- var import_i18n64 = require("@wordpress/i18n");
9778
+ var import_ui111 = require("@elementor/ui");
9779
+ var import_i18n66 = require("@wordpress/i18n");
9370
9780
 
9371
9781
  // src/controls/email-form-action-control/fields.tsx
9372
- var React125 = __toESM(require("react"));
9782
+ var React127 = __toESM(require("react"));
9373
9783
  var import_editor_ui16 = require("@elementor/editor-ui");
9374
- var import_ui108 = require("@elementor/ui");
9375
- var import_i18n63 = require("@wordpress/i18n");
9784
+ var import_ui110 = require("@elementor/ui");
9785
+ var import_i18n65 = require("@wordpress/i18n");
9376
9786
 
9377
9787
  // src/hooks/use-form-field-suggestions.ts
9378
9788
  var import_editor_elements8 = require("@elementor/editor-elements");
@@ -9461,10 +9871,10 @@ function useFormFieldSuggestions(options) {
9461
9871
  }
9462
9872
 
9463
9873
  // src/controls/email-form-action-control/email-chips-field.tsx
9464
- var React123 = __toESM(require("react"));
9465
- var import_react74 = require("react");
9874
+ var React125 = __toESM(require("react"));
9875
+ var import_react76 = require("react");
9466
9876
  var import_editor_props67 = require("@elementor/editor-props");
9467
- var import_ui106 = require("@elementor/ui");
9877
+ var import_ui108 = require("@elementor/ui");
9468
9878
 
9469
9879
  // src/controls/email-form-action-control/utils.ts
9470
9880
  var import_schema = require("@elementor/schema");
@@ -9500,10 +9910,10 @@ function resolveMention(raw, suggestions) {
9500
9910
  }
9501
9911
  var EmailChipsControl = createControl(({ placeholder, suggestions = [] }) => {
9502
9912
  const { value, setValue, disabled } = useBoundProp(import_editor_props67.stringArrayPropTypeUtil);
9503
- const [inputValue, setInputValue] = (0, import_react74.useState)("");
9913
+ const [inputValue, setInputValue] = (0, import_react76.useState)("");
9504
9914
  const items2 = value || [];
9505
9915
  const selectedValues = items2.map((item) => import_editor_props67.stringPropTypeUtil.extract(item)).filter((val) => val !== null);
9506
- const suggestionOptions = (0, import_react74.useMemo)(
9916
+ const suggestionOptions = (0, import_react76.useMemo)(
9507
9917
  () => suggestions.map((suggestion) => `[${suggestion.value}]`),
9508
9918
  [suggestions]
9509
9919
  );
@@ -9538,8 +9948,8 @@ var EmailChipsControl = createControl(({ placeholder, suggestions = [] }) => {
9538
9948
  tryAddChip(inputValue);
9539
9949
  }
9540
9950
  };
9541
- return /* @__PURE__ */ React123.createElement(ControlActions, null, /* @__PURE__ */ React123.createElement(
9542
- import_ui106.Autocomplete,
9951
+ return /* @__PURE__ */ React125.createElement(ControlActions, null, /* @__PURE__ */ React125.createElement(
9952
+ import_ui108.Autocomplete,
9543
9953
  {
9544
9954
  fullWidth: true,
9545
9955
  multiple: true,
@@ -9563,99 +9973,99 @@ var EmailChipsControl = createControl(({ placeholder, suggestions = [] }) => {
9563
9973
  onBlur: handleBlur,
9564
9974
  getOptionLabel: (option) => option,
9565
9975
  isOptionEqualToValue: (option, val) => option === val,
9566
- renderInput: (params) => /* @__PURE__ */ React123.createElement(import_ui106.TextField, { ...params, placeholder, onKeyDown: handleKeyDown }),
9567
- renderTags: (tagValues, getTagProps) => /* @__PURE__ */ React123.createElement(ChipsList, { getLabel: (option) => option, getTagProps, values: tagValues })
9976
+ renderInput: (params) => /* @__PURE__ */ React125.createElement(import_ui108.TextField, { ...params, placeholder, onKeyDown: handleKeyDown }),
9977
+ renderTags: (tagValues, getTagProps) => /* @__PURE__ */ React125.createElement(ChipsList, { getLabel: (option) => option, getTagProps, values: tagValues })
9568
9978
  }
9569
9979
  ));
9570
9980
  });
9571
- var EmailChipsField = ({ fieldLabel, placeholder, suggestions }) => /* @__PURE__ */ React123.createElement(import_ui106.Grid, { container: true, direction: "column", gap: 0.5 }, /* @__PURE__ */ React123.createElement(import_ui106.Grid, { item: true }, /* @__PURE__ */ React123.createElement(ControlFormLabel, null, fieldLabel)), /* @__PURE__ */ React123.createElement(import_ui106.Grid, { item: true }, /* @__PURE__ */ React123.createElement(EmailChipsControl, { placeholder, suggestions })));
9981
+ var EmailChipsField = ({ fieldLabel, placeholder, suggestions }) => /* @__PURE__ */ React125.createElement(import_ui108.Grid, { container: true, direction: "column", gap: 0.5 }, /* @__PURE__ */ React125.createElement(import_ui108.Grid, { item: true }, /* @__PURE__ */ React125.createElement(ControlFormLabel, null, fieldLabel)), /* @__PURE__ */ React125.createElement(import_ui108.Grid, { item: true }, /* @__PURE__ */ React125.createElement(EmailChipsControl, { placeholder, suggestions })));
9572
9982
 
9573
9983
  // src/controls/email-form-action-control/email-field.tsx
9574
- var React124 = __toESM(require("react"));
9575
- var import_ui107 = require("@elementor/ui");
9576
- var EmailField = ({ bind, label, placeholder }) => /* @__PURE__ */ React124.createElement(PropKeyProvider, { bind }, /* @__PURE__ */ React124.createElement(import_ui107.Grid, { container: true, direction: "column", gap: 0.5 }, /* @__PURE__ */ React124.createElement(import_ui107.Grid, { item: true }, /* @__PURE__ */ React124.createElement(ControlFormLabel, null, label)), /* @__PURE__ */ React124.createElement(import_ui107.Grid, { item: true }, /* @__PURE__ */ React124.createElement(TextControl, { placeholder }))));
9984
+ var React126 = __toESM(require("react"));
9985
+ var import_ui109 = require("@elementor/ui");
9986
+ var EmailField = ({ bind, label, placeholder }) => /* @__PURE__ */ React126.createElement(PropKeyProvider, { bind }, /* @__PURE__ */ React126.createElement(import_ui109.Grid, { container: true, direction: "column", gap: 0.5 }, /* @__PURE__ */ React126.createElement(import_ui109.Grid, { item: true }, /* @__PURE__ */ React126.createElement(ControlFormLabel, null, label)), /* @__PURE__ */ React126.createElement(import_ui109.Grid, { item: true }, /* @__PURE__ */ React126.createElement(TextControl, { placeholder }))));
9577
9987
 
9578
9988
  // src/controls/email-form-action-control/fields.tsx
9579
9989
  var SendToField = ({ placeholder }) => {
9580
9990
  const suggestions = useFormFieldSuggestions({ inputType: "email" });
9581
- return /* @__PURE__ */ React125.createElement(PropKeyProvider, { bind: "to" }, /* @__PURE__ */ React125.createElement(import_ui108.Stack, { gap: 0.5 }, /* @__PURE__ */ React125.createElement(
9991
+ return /* @__PURE__ */ React127.createElement(PropKeyProvider, { bind: "to" }, /* @__PURE__ */ React127.createElement(import_ui110.Stack, { gap: 0.5 }, /* @__PURE__ */ React127.createElement(
9582
9992
  EmailChipsField,
9583
9993
  {
9584
- fieldLabel: (0, import_i18n63.__)("Send to", "elementor"),
9994
+ fieldLabel: (0, import_i18n65.__)("Send to", "elementor"),
9585
9995
  placeholder,
9586
9996
  suggestions
9587
9997
  }
9588
- ), shouldShowMentionsInfo() && /* @__PURE__ */ React125.createElement(import_editor_ui16.InfoAlert, null, (0, import_i18n63.__)("Type @ or an email field name to insert its submitted value.", "elementor"))));
9998
+ ), shouldShowMentionsInfo() && /* @__PURE__ */ React127.createElement(import_editor_ui16.InfoAlert, null, (0, import_i18n65.__)("Type @ or an email field name to insert its submitted value.", "elementor"))));
9589
9999
  };
9590
- var SubjectField = () => /* @__PURE__ */ React125.createElement(
10000
+ var SubjectField = () => /* @__PURE__ */ React127.createElement(
9591
10001
  EmailField,
9592
10002
  {
9593
10003
  bind: "subject",
9594
- label: (0, import_i18n63.__)("Email subject", "elementor"),
9595
- placeholder: (0, import_i18n63.__)("New form submission", "elementor")
10004
+ label: (0, import_i18n65.__)("Email subject", "elementor"),
10005
+ placeholder: (0, import_i18n65.__)("New form submission", "elementor")
9596
10006
  }
9597
10007
  );
9598
10008
  var MessageField = () => {
9599
10009
  const suggestions = useFormFieldSuggestions();
9600
- return /* @__PURE__ */ React125.createElement(PropKeyProvider, { bind: "message" }, /* @__PURE__ */ React125.createElement(import_ui108.Grid, { container: true, direction: "column", gap: 0.5 }, /* @__PURE__ */ React125.createElement(import_ui108.Grid, { item: true }, /* @__PURE__ */ React125.createElement(ControlFormLabel, null, (0, import_i18n63.__)("Message", "elementor"))), /* @__PURE__ */ React125.createElement(import_ui108.Grid, { item: true }, /* @__PURE__ */ React125.createElement(MentionTextAreaControl, { suggestions })), /* @__PURE__ */ React125.createElement(import_ui108.Grid, { item: true }, /* @__PURE__ */ React125.createElement(import_editor_ui16.InfoAlert, null, shouldShowMentionsInfo() ? (0, import_i18n63.__)(
10010
+ return /* @__PURE__ */ React127.createElement(PropKeyProvider, { bind: "message" }, /* @__PURE__ */ React127.createElement(import_ui110.Grid, { container: true, direction: "column", gap: 0.5 }, /* @__PURE__ */ React127.createElement(import_ui110.Grid, { item: true }, /* @__PURE__ */ React127.createElement(ControlFormLabel, null, (0, import_i18n65.__)("Message", "elementor"))), /* @__PURE__ */ React127.createElement(import_ui110.Grid, { item: true }, /* @__PURE__ */ React127.createElement(MentionTextAreaControl, { suggestions })), /* @__PURE__ */ React127.createElement(import_ui110.Grid, { item: true }, /* @__PURE__ */ React127.createElement(import_editor_ui16.InfoAlert, null, shouldShowMentionsInfo() ? (0, import_i18n65.__)(
9601
10011
  "[all-fields] shortcode sends all fields. Type @ to insert specific fields and customize your message.",
9602
10012
  "elementor"
9603
- ) : (0, import_i18n63.__)("[all-fields] shortcode sends all fields.", "elementor")))));
10013
+ ) : (0, import_i18n65.__)("[all-fields] shortcode sends all fields.", "elementor")))));
9604
10014
  };
9605
- var FromEmailField = () => /* @__PURE__ */ React125.createElement(
10015
+ var FromEmailField = () => /* @__PURE__ */ React127.createElement(
9606
10016
  EmailField,
9607
10017
  {
9608
10018
  bind: "from",
9609
- label: (0, import_i18n63.__)("From email", "elementor"),
9610
- placeholder: (0, import_i18n63.__)("What email should appear as the sender?", "elementor")
10019
+ label: (0, import_i18n65.__)("From email", "elementor"),
10020
+ placeholder: (0, import_i18n65.__)("What email should appear as the sender?", "elementor")
9611
10021
  }
9612
10022
  );
9613
- var FromNameField = () => /* @__PURE__ */ React125.createElement(
10023
+ var FromNameField = () => /* @__PURE__ */ React127.createElement(
9614
10024
  EmailField,
9615
10025
  {
9616
10026
  bind: "from-name",
9617
- label: (0, import_i18n63.__)("From name", "elementor"),
9618
- placeholder: (0, import_i18n63.__)("What name should appear as the sender?", "elementor")
10027
+ label: (0, import_i18n65.__)("From name", "elementor"),
10028
+ placeholder: (0, import_i18n65.__)("What name should appear as the sender?", "elementor")
9619
10029
  }
9620
10030
  );
9621
10031
  var ReplyToField = () => {
9622
10032
  const emailSuggestions = useFormFieldSuggestions({ inputType: "email" });
9623
- return /* @__PURE__ */ React125.createElement(PropKeyProvider, { bind: "reply-to" }, /* @__PURE__ */ React125.createElement(import_ui108.Grid, { container: true, direction: "column", gap: 0.5 }, /* @__PURE__ */ React125.createElement(import_ui108.Grid, { item: true }, /* @__PURE__ */ React125.createElement(ControlFormLabel, null, (0, import_i18n63.__)("Reply-to", "elementor"))), /* @__PURE__ */ React125.createElement(import_ui108.Grid, { item: true }, /* @__PURE__ */ React125.createElement(
10033
+ return /* @__PURE__ */ React127.createElement(PropKeyProvider, { bind: "reply-to" }, /* @__PURE__ */ React127.createElement(import_ui110.Grid, { container: true, direction: "column", gap: 0.5 }, /* @__PURE__ */ React127.createElement(import_ui110.Grid, { item: true }, /* @__PURE__ */ React127.createElement(ControlFormLabel, null, (0, import_i18n65.__)("Reply-to", "elementor"))), /* @__PURE__ */ React127.createElement(import_ui110.Grid, { item: true }, /* @__PURE__ */ React127.createElement(
9624
10034
  MentionTextAreaControl,
9625
10035
  {
9626
10036
  suggestions: emailSuggestions,
9627
10037
  rows: 1,
9628
10038
  triggerPosition: "start",
9629
- placeholder: (0, import_i18n63.__)("You can type @ to insert an email field", "elementor")
10039
+ placeholder: (0, import_i18n65.__)("You can type @ to insert an email field", "elementor")
9630
10040
  }
9631
10041
  ))));
9632
10042
  };
9633
10043
  var CcField = () => {
9634
10044
  const suggestions = useFormFieldSuggestions({ inputType: "email" });
9635
- return /* @__PURE__ */ React125.createElement(PropKeyProvider, { bind: "cc" }, /* @__PURE__ */ React125.createElement(EmailChipsField, { fieldLabel: (0, import_i18n63.__)("Cc", "elementor"), suggestions }));
10045
+ return /* @__PURE__ */ React127.createElement(PropKeyProvider, { bind: "cc" }, /* @__PURE__ */ React127.createElement(EmailChipsField, { fieldLabel: (0, import_i18n65.__)("Cc", "elementor"), suggestions }));
9636
10046
  };
9637
10047
  var BccField = () => {
9638
10048
  const suggestions = useFormFieldSuggestions({ inputType: "email" });
9639
- return /* @__PURE__ */ React125.createElement(PropKeyProvider, { bind: "bcc" }, /* @__PURE__ */ React125.createElement(EmailChipsField, { fieldLabel: (0, import_i18n63.__)("Bcc", "elementor"), suggestions }));
10049
+ return /* @__PURE__ */ React127.createElement(PropKeyProvider, { bind: "bcc" }, /* @__PURE__ */ React127.createElement(EmailChipsField, { fieldLabel: (0, import_i18n65.__)("Bcc", "elementor"), suggestions }));
9640
10050
  };
9641
- var MetaDataField = () => /* @__PURE__ */ React125.createElement(PropKeyProvider, { bind: "meta-data" }, /* @__PURE__ */ React125.createElement(import_ui108.Stack, { gap: 0.5 }, /* @__PURE__ */ React125.createElement(ControlFormLabel, null, (0, import_i18n63.__)("Metadata", "elementor")), /* @__PURE__ */ React125.createElement(
10051
+ var MetaDataField = () => /* @__PURE__ */ React127.createElement(PropKeyProvider, { bind: "meta-data" }, /* @__PURE__ */ React127.createElement(import_ui110.Stack, { gap: 0.5 }, /* @__PURE__ */ React127.createElement(ControlFormLabel, null, (0, import_i18n65.__)("Metadata", "elementor")), /* @__PURE__ */ React127.createElement(
9642
10052
  ChipsControl,
9643
10053
  {
9644
10054
  options: [
9645
- { label: (0, import_i18n63.__)("Date", "elementor"), value: "date" },
9646
- { label: (0, import_i18n63.__)("Time", "elementor"), value: "time" },
9647
- { label: (0, import_i18n63.__)("Page URL", "elementor"), value: "page-url" },
9648
- { label: (0, import_i18n63.__)("User agent", "elementor"), value: "user-agent" },
9649
- { label: (0, import_i18n63.__)("Credit", "elementor"), value: "credit" }
10055
+ { label: (0, import_i18n65.__)("Date", "elementor"), value: "date" },
10056
+ { label: (0, import_i18n65.__)("Time", "elementor"), value: "time" },
10057
+ { label: (0, import_i18n65.__)("Page URL", "elementor"), value: "page-url" },
10058
+ { label: (0, import_i18n65.__)("User agent", "elementor"), value: "user-agent" },
10059
+ { label: (0, import_i18n65.__)("Credit", "elementor"), value: "credit" }
9650
10060
  ]
9651
10061
  }
9652
10062
  )));
9653
- var SendAsField = () => /* @__PURE__ */ React125.createElement(PropKeyProvider, { bind: "send-as" }, /* @__PURE__ */ React125.createElement(import_ui108.Grid, { container: true, direction: "column", gap: 0.5 }, /* @__PURE__ */ React125.createElement(import_ui108.Grid, { item: true }, /* @__PURE__ */ React125.createElement(ControlFormLabel, null, (0, import_i18n63.__)("Send as", "elementor"))), /* @__PURE__ */ React125.createElement(import_ui108.Grid, { item: true }, /* @__PURE__ */ React125.createElement(
10063
+ var SendAsField = () => /* @__PURE__ */ React127.createElement(PropKeyProvider, { bind: "send-as" }, /* @__PURE__ */ React127.createElement(import_ui110.Grid, { container: true, direction: "column", gap: 0.5 }, /* @__PURE__ */ React127.createElement(import_ui110.Grid, { item: true }, /* @__PURE__ */ React127.createElement(ControlFormLabel, null, (0, import_i18n65.__)("Send as", "elementor"))), /* @__PURE__ */ React127.createElement(import_ui110.Grid, { item: true }, /* @__PURE__ */ React127.createElement(
9654
10064
  SelectControl,
9655
10065
  {
9656
10066
  options: [
9657
- { label: (0, import_i18n63.__)("HTML", "elementor"), value: "html" },
9658
- { label: (0, import_i18n63.__)("Plain Text", "elementor"), value: "plain" }
10067
+ { label: (0, import_i18n65.__)("HTML", "elementor"), value: "html" },
10068
+ { label: (0, import_i18n65.__)("Plain Text", "elementor"), value: "plain" }
9659
10069
  ]
9660
10070
  }
9661
10071
  ))));
@@ -9664,30 +10074,30 @@ var SendAsField = () => /* @__PURE__ */ React125.createElement(PropKeyProvider,
9664
10074
  var EmailFormActionControl = createControl(
9665
10075
  ({ toPlaceholder, label }) => {
9666
10076
  const { value, setValue, ...propContext } = useBoundProp(import_editor_props68.emailsPropTypeUtil);
9667
- return /* @__PURE__ */ React126.createElement(PropProvider, { ...propContext, value, setValue }, /* @__PURE__ */ React126.createElement(import_ui109.Stack, { gap: 2 }, /* @__PURE__ */ React126.createElement(ControlLabel, null, label ? label + " " + (0, import_i18n64.__)("settings", "elementor") : (0, import_i18n64.__)("Email settings", "elementor")), /* @__PURE__ */ React126.createElement(SendToField, { placeholder: toPlaceholder }), /* @__PURE__ */ React126.createElement(SubjectField, null), /* @__PURE__ */ React126.createElement(MessageField, null), /* @__PURE__ */ React126.createElement(FromEmailField, null), /* @__PURE__ */ React126.createElement(AdvancedSettings, null)));
10077
+ return /* @__PURE__ */ React128.createElement(PropProvider, { ...propContext, value, setValue }, /* @__PURE__ */ React128.createElement(import_ui111.Stack, { gap: 2 }, /* @__PURE__ */ React128.createElement(ControlLabel, null, label ? label + " " + (0, import_i18n66.__)("settings", "elementor") : (0, import_i18n66.__)("Email settings", "elementor")), /* @__PURE__ */ React128.createElement(SendToField, { placeholder: toPlaceholder }), /* @__PURE__ */ React128.createElement(SubjectField, null), /* @__PURE__ */ React128.createElement(MessageField, null), /* @__PURE__ */ React128.createElement(FromEmailField, null), /* @__PURE__ */ React128.createElement(AdvancedSettings, null)));
9668
10078
  }
9669
10079
  );
9670
- var AdvancedSettings = () => /* @__PURE__ */ React126.createElement(import_editor_ui17.CollapsibleContent, { defaultOpen: false }, /* @__PURE__ */ React126.createElement(import_ui109.Box, { sx: { pt: 2 } }, /* @__PURE__ */ React126.createElement(import_ui109.Stack, { gap: 2 }, /* @__PURE__ */ React126.createElement(FromNameField, null), /* @__PURE__ */ React126.createElement(ReplyToField, null), /* @__PURE__ */ React126.createElement(CcField, null), /* @__PURE__ */ React126.createElement(BccField, null), /* @__PURE__ */ React126.createElement(import_ui109.Divider, null), /* @__PURE__ */ React126.createElement(MetaDataField, null), /* @__PURE__ */ React126.createElement(SendAsField, null))));
10080
+ var AdvancedSettings = () => /* @__PURE__ */ React128.createElement(import_editor_ui17.CollapsibleContent, { defaultOpen: false }, /* @__PURE__ */ React128.createElement(import_ui111.Box, { sx: { pt: 2 } }, /* @__PURE__ */ React128.createElement(import_ui111.Stack, { gap: 2 }, /* @__PURE__ */ React128.createElement(FromNameField, null), /* @__PURE__ */ React128.createElement(ReplyToField, null), /* @__PURE__ */ React128.createElement(CcField, null), /* @__PURE__ */ React128.createElement(BccField, null), /* @__PURE__ */ React128.createElement(import_ui111.Divider, null), /* @__PURE__ */ React128.createElement(MetaDataField, null), /* @__PURE__ */ React128.createElement(SendAsField, null))));
9671
10081
 
9672
10082
  // src/controls/attachment-type-control.tsx
9673
- var React127 = __toESM(require("react"));
10083
+ var React129 = __toESM(require("react"));
9674
10084
  var import_editor_ui18 = require("@elementor/editor-ui");
9675
- var import_ui110 = require("@elementor/ui");
9676
- var import_i18n65 = require("@wordpress/i18n");
10085
+ var import_ui112 = require("@elementor/ui");
10086
+ var import_i18n67 = require("@wordpress/i18n");
9677
10087
  var AttachmentTypeControl = createControl(({ label, options }) => {
9678
- return /* @__PURE__ */ React127.createElement(import_ui110.Grid, { container: true, direction: "column", gap: 1 }, label && /* @__PURE__ */ React127.createElement(import_ui110.Grid, { item: true }, /* @__PURE__ */ React127.createElement(ControlFormLabel, null, label)), /* @__PURE__ */ React127.createElement(import_ui110.Grid, { item: true }, /* @__PURE__ */ React127.createElement(SelectControl, { options })), /* @__PURE__ */ React127.createElement(import_ui110.Grid, { item: true }, /* @__PURE__ */ React127.createElement(import_editor_ui18.InfoAlert, null, (0, import_i18n65.__)(
10088
+ return /* @__PURE__ */ React129.createElement(import_ui112.Grid, { container: true, direction: "column", gap: 1 }, label && /* @__PURE__ */ React129.createElement(import_ui112.Grid, { item: true }, /* @__PURE__ */ React129.createElement(ControlFormLabel, null, label)), /* @__PURE__ */ React129.createElement(import_ui112.Grid, { item: true }, /* @__PURE__ */ React129.createElement(SelectControl, { options })), /* @__PURE__ */ React129.createElement(import_ui112.Grid, { item: true }, /* @__PURE__ */ React129.createElement(import_editor_ui18.InfoAlert, null, (0, import_i18n67.__)(
9679
10089
  "Linked uploads are saved to the server. Direct attachments will not appear under Submissions.",
9680
10090
  "elementor"
9681
10091
  ))));
9682
10092
  });
9683
10093
 
9684
10094
  // src/controls/notice-control.tsx
9685
- var React128 = __toESM(require("react"));
9686
- var import_react75 = require("react");
10095
+ var React130 = __toESM(require("react"));
10096
+ var import_react77 = require("react");
9687
10097
  var import_editor_v1_adapters3 = require("@elementor/editor-v1-adapters");
9688
- var import_icons41 = require("@elementor/icons");
9689
- var import_ui111 = require("@elementor/ui");
9690
- var NoticeTitle = (0, import_ui111.styled)(import_ui111.AlertTitle)({
10098
+ var import_icons42 = require("@elementor/icons");
10099
+ var import_ui113 = require("@elementor/ui");
10100
+ var NoticeTitle = (0, import_ui113.styled)(import_ui113.AlertTitle)({
9691
10101
  "&.MuiAlertTitle-root.MuiAlertTitle-root": {
9692
10102
  marginBottom: 4,
9693
10103
  fontStyle: "italic"
@@ -9701,12 +10111,12 @@ var markNoticeAsDismissedInSession = (dismissId) => {
9701
10111
  };
9702
10112
  var NoticeControl = createControl(
9703
10113
  ({ noticeType = "info", heading, content, dismissible, buttonText, buttonUrl }) => {
9704
- const [isDismissed, setIsDismissed] = (0, import_react75.useState)(false);
10114
+ const [isDismissed, setIsDismissed] = (0, import_react77.useState)(false);
9705
10115
  if (isDismissed || !content) {
9706
10116
  return null;
9707
10117
  }
9708
10118
  const severity = noticeType === "danger" ? "error" : noticeType;
9709
- const icon = noticeType === "info" ? /* @__PURE__ */ React128.createElement(import_icons41.BulbIcon, { fontSize: "inherit" }) : void 0;
10119
+ const icon = noticeType === "info" ? /* @__PURE__ */ React130.createElement(import_icons42.BulbIcon, { fontSize: "inherit" }) : void 0;
9710
10120
  const handleDismiss = () => {
9711
10121
  setIsDismissed(true);
9712
10122
  if (!dismissible) {
@@ -9726,8 +10136,8 @@ var NoticeControl = createControl(
9726
10136
  markNoticeAsDismissedInSession(dismissible);
9727
10137
  }
9728
10138
  };
9729
- return /* @__PURE__ */ React128.createElement(import_ui111.Alert, { variant: "outlined", severity, icon, size: "small", onClose: handleDismiss }, heading && /* @__PURE__ */ React128.createElement(NoticeTitle, null, heading), /* @__PURE__ */ React128.createElement(import_ui111.Typography, { variant: "caption", color: "textSecondary", sx: { fontStyle: "italic" } }, content), buttonText && buttonUrl && /* @__PURE__ */ React128.createElement(
9730
- import_ui111.AlertAction,
10139
+ return /* @__PURE__ */ React130.createElement(import_ui113.Alert, { variant: "outlined", severity, icon, size: "small", onClose: handleDismiss }, heading && /* @__PURE__ */ React130.createElement(NoticeTitle, null, heading), /* @__PURE__ */ React130.createElement(import_ui113.Typography, { variant: "caption", color: "textSecondary", sx: { fontStyle: "italic" } }, content), buttonText && buttonUrl && /* @__PURE__ */ React130.createElement(
10140
+ import_ui113.AlertAction,
9731
10141
  {
9732
10142
  variant: "contained",
9733
10143
  color: severity,
@@ -9743,9 +10153,9 @@ var NoticeControl = createControl(
9743
10153
  );
9744
10154
 
9745
10155
  // src/controls/grid-span-control.tsx
9746
- var React129 = __toESM(require("react"));
10156
+ var React131 = __toESM(require("react"));
9747
10157
  var import_editor_props69 = require("@elementor/editor-props");
9748
- var import_ui112 = require("@elementor/ui");
10158
+ var import_ui114 = require("@elementor/ui");
9749
10159
  var GridSpanControl = createControl(
9750
10160
  ({
9751
10161
  placeholder: propPlaceholder,
@@ -9762,8 +10172,8 @@ var GridSpanControl = createControl(
9762
10172
  setValue(next === "" ? null : next);
9763
10173
  };
9764
10174
  const placeholder = propPlaceholder ?? boundPlaceholder ?? `e.g: 'span 2' or '1 / 3'`;
9765
- return /* @__PURE__ */ React129.createElement(ControlActions, null, /* @__PURE__ */ React129.createElement(
9766
- import_ui112.TextField,
10175
+ return /* @__PURE__ */ React131.createElement(ControlActions, null, /* @__PURE__ */ React131.createElement(
10176
+ import_ui114.TextField,
9767
10177
  {
9768
10178
  size: "tiny",
9769
10179
  fullWidth: true,
@@ -9783,25 +10193,25 @@ var GridSpanControl = createControl(
9783
10193
  );
9784
10194
 
9785
10195
  // src/components/promotions/display-conditions-control.tsx
9786
- var React131 = __toESM(require("react"));
9787
- var import_react77 = require("react");
9788
- var import_icons42 = require("@elementor/icons");
9789
- var import_ui114 = require("@elementor/ui");
9790
- var import_i18n66 = require("@wordpress/i18n");
10196
+ var React133 = __toESM(require("react"));
10197
+ var import_react79 = require("react");
10198
+ var import_icons43 = require("@elementor/icons");
10199
+ var import_ui116 = require("@elementor/ui");
10200
+ var import_i18n68 = require("@wordpress/i18n");
9791
10201
 
9792
10202
  // src/components/promotions/promotion-trigger.tsx
9793
- var React130 = __toESM(require("react"));
9794
- var import_react76 = require("react");
10203
+ var React132 = __toESM(require("react"));
10204
+ var import_react78 = require("react");
9795
10205
  var import_editor_ui19 = require("@elementor/editor-ui");
9796
- var import_ui113 = require("@elementor/ui");
10206
+ var import_ui115 = require("@elementor/ui");
9797
10207
  function getV4Promotion(key) {
9798
10208
  return window.elementor?.config?.v4Promotions?.[key];
9799
10209
  }
9800
- var PromotionTrigger = (0, import_react76.forwardRef)(
10210
+ var PromotionTrigger = (0, import_react78.forwardRef)(
9801
10211
  ({ promotionKey, children, trackingData }, ref) => {
9802
- const [isOpen, setIsOpen] = (0, import_react76.useState)(false);
10212
+ const [isOpen, setIsOpen] = (0, import_react78.useState)(false);
9803
10213
  const promotion = getV4Promotion(promotionKey);
9804
- const toggle = (0, import_react76.useCallback)(() => {
10214
+ const toggle = (0, import_react78.useCallback)(() => {
9805
10215
  setIsOpen((prev) => {
9806
10216
  if (!prev) {
9807
10217
  trackViewPromotion(trackingData);
@@ -9809,8 +10219,8 @@ var PromotionTrigger = (0, import_react76.forwardRef)(
9809
10219
  return !prev;
9810
10220
  });
9811
10221
  }, [trackingData]);
9812
- (0, import_react76.useImperativeHandle)(ref, () => ({ toggle }), [toggle]);
9813
- return /* @__PURE__ */ React130.createElement(React130.Fragment, null, promotion && /* @__PURE__ */ React130.createElement(
10222
+ (0, import_react78.useImperativeHandle)(ref, () => ({ toggle }), [toggle]);
10223
+ return /* @__PURE__ */ React132.createElement(React132.Fragment, null, promotion && /* @__PURE__ */ React132.createElement(
9814
10224
  import_editor_ui19.PromotionInfotip,
9815
10225
  {
9816
10226
  title: promotion.title,
@@ -9824,8 +10234,8 @@ var PromotionTrigger = (0, import_react76.forwardRef)(
9824
10234
  },
9825
10235
  onCtaClick: () => trackUpgradePromotionClick(trackingData)
9826
10236
  },
9827
- /* @__PURE__ */ React130.createElement(
9828
- import_ui113.Box,
10237
+ /* @__PURE__ */ React132.createElement(
10238
+ import_ui115.Box,
9829
10239
  {
9830
10240
  onClick: (e) => {
9831
10241
  e.stopPropagation();
@@ -9833,19 +10243,19 @@ var PromotionTrigger = (0, import_react76.forwardRef)(
9833
10243
  },
9834
10244
  sx: { cursor: "pointer", display: "inline-flex" }
9835
10245
  },
9836
- children ?? /* @__PURE__ */ React130.createElement(import_editor_ui19.PromotionChip, null)
10246
+ children ?? /* @__PURE__ */ React132.createElement(import_editor_ui19.PromotionChip, null)
9837
10247
  )
9838
10248
  ));
9839
10249
  }
9840
10250
  );
9841
10251
 
9842
10252
  // src/components/promotions/display-conditions-control.tsx
9843
- var ARIA_LABEL = (0, import_i18n66.__)("Display Conditions", "elementor");
10253
+ var ARIA_LABEL = (0, import_i18n68.__)("Display Conditions", "elementor");
9844
10254
  var TRACKING_DATA = { target_name: "display_conditions", location_l2: "general" };
9845
10255
  var DisplayConditionsControl = createControl(() => {
9846
- const triggerRef = (0, import_react77.useRef)(null);
9847
- return /* @__PURE__ */ React131.createElement(
9848
- import_ui114.Stack,
10256
+ const triggerRef = (0, import_react79.useRef)(null);
10257
+ return /* @__PURE__ */ React133.createElement(
10258
+ import_ui116.Stack,
9849
10259
  {
9850
10260
  direction: "row",
9851
10261
  spacing: 2,
@@ -9854,9 +10264,9 @@ var DisplayConditionsControl = createControl(() => {
9854
10264
  alignItems: "center"
9855
10265
  }
9856
10266
  },
9857
- /* @__PURE__ */ React131.createElement(PromotionTrigger, { ref: triggerRef, promotionKey: "displayConditions", trackingData: TRACKING_DATA }),
9858
- /* @__PURE__ */ React131.createElement(import_ui114.Tooltip, { title: ARIA_LABEL, placement: "top" }, /* @__PURE__ */ React131.createElement(
9859
- import_ui114.IconButton,
10267
+ /* @__PURE__ */ React133.createElement(PromotionTrigger, { ref: triggerRef, promotionKey: "displayConditions", trackingData: TRACKING_DATA }),
10268
+ /* @__PURE__ */ React133.createElement(import_ui116.Tooltip, { title: ARIA_LABEL, placement: "top" }, /* @__PURE__ */ React133.createElement(
10269
+ import_ui116.IconButton,
9860
10270
  {
9861
10271
  size: "tiny",
9862
10272
  "aria-label": ARIA_LABEL,
@@ -9868,23 +10278,23 @@ var DisplayConditionsControl = createControl(() => {
9868
10278
  borderRadius: 1
9869
10279
  }
9870
10280
  },
9871
- /* @__PURE__ */ React131.createElement(import_icons42.SitemapIcon, { fontSize: "tiny", color: "disabled" })
10281
+ /* @__PURE__ */ React133.createElement(import_icons43.SitemapIcon, { fontSize: "tiny", color: "disabled" })
9872
10282
  ))
9873
10283
  );
9874
10284
  });
9875
10285
 
9876
10286
  // src/components/promotions/attributes-control.tsx
9877
- var React132 = __toESM(require("react"));
9878
- var import_react78 = require("react");
9879
- var import_icons43 = require("@elementor/icons");
9880
- var import_ui115 = require("@elementor/ui");
9881
- var import_i18n67 = require("@wordpress/i18n");
9882
- var ARIA_LABEL2 = (0, import_i18n67.__)("Attributes", "elementor");
10287
+ var React134 = __toESM(require("react"));
10288
+ var import_react80 = require("react");
10289
+ var import_icons44 = require("@elementor/icons");
10290
+ var import_ui117 = require("@elementor/ui");
10291
+ var import_i18n69 = require("@wordpress/i18n");
10292
+ var ARIA_LABEL2 = (0, import_i18n69.__)("Attributes", "elementor");
9883
10293
  var TRACKING_DATA2 = { target_name: "attributes", location_l2: "general" };
9884
10294
  var AttributesControl = createControl(() => {
9885
- const triggerRef = (0, import_react78.useRef)(null);
9886
- return /* @__PURE__ */ React132.createElement(
9887
- import_ui115.Stack,
10295
+ const triggerRef = (0, import_react80.useRef)(null);
10296
+ return /* @__PURE__ */ React134.createElement(
10297
+ import_ui117.Stack,
9888
10298
  {
9889
10299
  direction: "row",
9890
10300
  spacing: 2,
@@ -9893,9 +10303,9 @@ var AttributesControl = createControl(() => {
9893
10303
  alignItems: "center"
9894
10304
  }
9895
10305
  },
9896
- /* @__PURE__ */ React132.createElement(PromotionTrigger, { ref: triggerRef, promotionKey: "attributes", trackingData: TRACKING_DATA2 }),
9897
- /* @__PURE__ */ React132.createElement(import_ui115.Tooltip, { title: ARIA_LABEL2, placement: "top" }, /* @__PURE__ */ React132.createElement(
9898
- import_icons43.PlusIcon,
10306
+ /* @__PURE__ */ React134.createElement(PromotionTrigger, { ref: triggerRef, promotionKey: "attributes", trackingData: TRACKING_DATA2 }),
10307
+ /* @__PURE__ */ React134.createElement(import_ui117.Tooltip, { title: ARIA_LABEL2, placement: "top" }, /* @__PURE__ */ React134.createElement(
10308
+ import_icons44.PlusIcon,
9899
10309
  {
9900
10310
  "aria-label": ARIA_LABEL2,
9901
10311
  fontSize: "tiny",
@@ -9908,21 +10318,21 @@ var AttributesControl = createControl(() => {
9908
10318
  });
9909
10319
 
9910
10320
  // src/components/icon-buttons/clear-icon-button.tsx
9911
- var React133 = __toESM(require("react"));
9912
- var import_icons44 = require("@elementor/icons");
9913
- var import_ui116 = require("@elementor/ui");
9914
- var CustomIconButton = (0, import_ui116.styled)(import_ui116.IconButton)(({ theme }) => ({
10321
+ var React135 = __toESM(require("react"));
10322
+ var import_icons45 = require("@elementor/icons");
10323
+ var import_ui118 = require("@elementor/ui");
10324
+ var CustomIconButton = (0, import_ui118.styled)(import_ui118.IconButton)(({ theme }) => ({
9915
10325
  width: theme.spacing(2.5),
9916
10326
  height: theme.spacing(2.5)
9917
10327
  }));
9918
- var ClearIconButton = ({ tooltipText, onClick, disabled, size = "tiny" }) => /* @__PURE__ */ React133.createElement(import_ui116.Tooltip, { title: tooltipText, placement: "top", disableInteractive: true }, /* @__PURE__ */ React133.createElement(CustomIconButton, { "aria-label": tooltipText, size, onClick, disabled }, /* @__PURE__ */ React133.createElement(import_icons44.BrushBigIcon, { fontSize: size })));
10328
+ var ClearIconButton = ({ tooltipText, onClick, disabled, size = "tiny" }) => /* @__PURE__ */ React135.createElement(import_ui118.Tooltip, { title: tooltipText, placement: "top", disableInteractive: true }, /* @__PURE__ */ React135.createElement(CustomIconButton, { "aria-label": tooltipText, size, onClick, disabled }, /* @__PURE__ */ React135.createElement(import_icons45.BrushBigIcon, { fontSize: size })));
9919
10329
 
9920
10330
  // src/components/repeater/repeater.tsx
9921
- var React134 = __toESM(require("react"));
9922
- var import_react79 = require("react");
9923
- var import_icons45 = require("@elementor/icons");
9924
- var import_ui117 = require("@elementor/ui");
9925
- var import_i18n68 = require("@wordpress/i18n");
10331
+ var React136 = __toESM(require("react"));
10332
+ var import_react81 = require("react");
10333
+ var import_icons46 = require("@elementor/icons");
10334
+ var import_ui119 = require("@elementor/ui");
10335
+ var import_i18n70 = require("@wordpress/i18n");
9926
10336
  var SIZE12 = "tiny";
9927
10337
  var EMPTY_OPEN_ITEM2 = -1;
9928
10338
  var Repeater3 = ({
@@ -9941,7 +10351,7 @@ var Repeater3 = ({
9941
10351
  isSortable = true,
9942
10352
  adornment = ControlAdornments
9943
10353
  }) => {
9944
- const [openItem, setOpenItem] = (0, import_react79.useState)(initialOpenItem);
10354
+ const [openItem, setOpenItem] = (0, import_react81.useState)(initialOpenItem);
9945
10355
  const uniqueKeys = items2.map(
9946
10356
  (item, index) => isSortable && "getId" in itemSettings ? itemSettings.getId({ item, index }) : String(index)
9947
10357
  );
@@ -10004,8 +10414,8 @@ var Repeater3 = ({
10004
10414
  };
10005
10415
  const isButtonDisabled = disabled || disableAddItemButton;
10006
10416
  const shouldShowInfotip = isButtonDisabled && addButtonInfotipContent;
10007
- const addButton = /* @__PURE__ */ React134.createElement(
10008
- import_ui117.IconButton,
10417
+ const addButton = /* @__PURE__ */ React136.createElement(
10418
+ import_ui119.IconButton,
10009
10419
  {
10010
10420
  size: SIZE12,
10011
10421
  sx: {
@@ -10013,32 +10423,32 @@ var Repeater3 = ({
10013
10423
  },
10014
10424
  disabled: isButtonDisabled,
10015
10425
  onClick: addRepeaterItem,
10016
- "aria-label": (0, import_i18n68.__)("Add item", "elementor")
10426
+ "aria-label": (0, import_i18n70.__)("Add item", "elementor")
10017
10427
  },
10018
- /* @__PURE__ */ React134.createElement(import_icons45.PlusIcon, { fontSize: SIZE12 })
10428
+ /* @__PURE__ */ React136.createElement(import_icons46.PlusIcon, { fontSize: SIZE12 })
10019
10429
  );
10020
- return /* @__PURE__ */ React134.createElement(SectionContent, { gap: 2 }, /* @__PURE__ */ React134.createElement(RepeaterHeader, { label, adornment }, shouldShowInfotip ? /* @__PURE__ */ React134.createElement(
10021
- import_ui117.Infotip,
10430
+ return /* @__PURE__ */ React136.createElement(SectionContent, { gap: 2 }, /* @__PURE__ */ React136.createElement(RepeaterHeader, { label, adornment }, shouldShowInfotip ? /* @__PURE__ */ React136.createElement(
10431
+ import_ui119.Infotip,
10022
10432
  {
10023
10433
  placement: "right",
10024
10434
  content: addButtonInfotipContent,
10025
10435
  color: "secondary",
10026
10436
  slotProps: { popper: { sx: { width: 300 } } }
10027
10437
  },
10028
- /* @__PURE__ */ React134.createElement(import_ui117.Box, { sx: { ...isButtonDisabled ? { cursor: "not-allowed" } : {} } }, addButton)
10029
- ) : addButton), 0 < uniqueKeys.length && /* @__PURE__ */ React134.createElement(SortableProvider, { value: uniqueKeys, onChange: onChangeOrder }, uniqueKeys.map((key) => {
10438
+ /* @__PURE__ */ React136.createElement(import_ui119.Box, { sx: { ...isButtonDisabled ? { cursor: "not-allowed" } : {} } }, addButton)
10439
+ ) : addButton), 0 < uniqueKeys.length && /* @__PURE__ */ React136.createElement(SortableProvider, { value: uniqueKeys, onChange: onChangeOrder }, uniqueKeys.map((key) => {
10030
10440
  const index = uniqueKeys.indexOf(key);
10031
10441
  const value = items2[index];
10032
10442
  if (!value) {
10033
10443
  return null;
10034
10444
  }
10035
- return /* @__PURE__ */ React134.createElement(SortableItem, { id: key, key: `sortable-${key}`, disabled: !isSortable }, /* @__PURE__ */ React134.createElement(
10445
+ return /* @__PURE__ */ React136.createElement(SortableItem, { id: key, key: `sortable-${key}`, disabled: !isSortable }, /* @__PURE__ */ React136.createElement(
10036
10446
  RepeaterItem,
10037
10447
  {
10038
10448
  disabled,
10039
10449
  propDisabled: value?.disabled,
10040
- label: /* @__PURE__ */ React134.createElement(RepeaterItemLabelSlot, { value }, /* @__PURE__ */ React134.createElement(itemSettings.Label, { value, index })),
10041
- startIcon: /* @__PURE__ */ React134.createElement(RepeaterItemIconSlot, { value }, /* @__PURE__ */ React134.createElement(itemSettings.Icon, { value })),
10450
+ label: /* @__PURE__ */ React136.createElement(RepeaterItemLabelSlot, { value }, /* @__PURE__ */ React136.createElement(itemSettings.Label, { value, index })),
10451
+ startIcon: /* @__PURE__ */ React136.createElement(RepeaterItemIconSlot, { value }, /* @__PURE__ */ React136.createElement(itemSettings.Icon, { value })),
10042
10452
  removeItem: () => removeRepeaterItem(index),
10043
10453
  duplicateItem: () => duplicateRepeaterItem(index),
10044
10454
  toggleDisableItem: () => toggleDisableRepeaterItem(index),
@@ -10052,7 +10462,7 @@ var Repeater3 = ({
10052
10462
  actions: itemSettings.actions,
10053
10463
  value
10054
10464
  },
10055
- (props) => /* @__PURE__ */ React134.createElement(
10465
+ (props) => /* @__PURE__ */ React136.createElement(
10056
10466
  itemSettings.Content,
10057
10467
  {
10058
10468
  ...props,
@@ -10092,18 +10502,18 @@ var RepeaterItem = ({
10092
10502
  },
10093
10503
  wrappedOnPopoverClose
10094
10504
  );
10095
- const triggerProps = (0, import_ui117.bindTrigger)(popoverState);
10505
+ const triggerProps = (0, import_ui119.bindTrigger)(popoverState);
10096
10506
  usePopoverDismiss({ isOpen: popoverState.isOpen, onClose: popoverProps.onClose });
10097
- const duplicateLabel = (0, import_i18n68.__)("Duplicate", "elementor");
10098
- const toggleLabel = propDisabled ? (0, import_i18n68.__)("Show", "elementor") : (0, import_i18n68.__)("Hide", "elementor");
10099
- const removeLabel = (0, import_i18n68.__)("Remove", "elementor");
10100
- return /* @__PURE__ */ React134.createElement(import_ui117.Box, { sx: { display: "contents" } }, /* @__PURE__ */ React134.createElement(
10507
+ const duplicateLabel = (0, import_i18n70.__)("Duplicate", "elementor");
10508
+ const toggleLabel = propDisabled ? (0, import_i18n70.__)("Show", "elementor") : (0, import_i18n70.__)("Hide", "elementor");
10509
+ const removeLabel = (0, import_i18n70.__)("Remove", "elementor");
10510
+ return /* @__PURE__ */ React136.createElement(import_ui119.Box, { sx: { display: "contents" } }, /* @__PURE__ */ React136.createElement(
10101
10511
  RepeaterTag,
10102
10512
  {
10103
10513
  disabled,
10104
10514
  label,
10105
10515
  ref: setRef,
10106
- "aria-label": (0, import_i18n68.__)("Open item", "elementor"),
10516
+ "aria-label": (0, import_i18n70.__)("Open item", "elementor"),
10107
10517
  ...triggerProps,
10108
10518
  onClick: (e) => {
10109
10519
  triggerProps.onClick(e);
@@ -10112,15 +10522,15 @@ var RepeaterItem = ({
10112
10522
  }
10113
10523
  },
10114
10524
  startIcon,
10115
- actions: /* @__PURE__ */ React134.createElement(React134.Fragment, null, showDuplicate && /* @__PURE__ */ React134.createElement(import_ui117.Tooltip, { title: duplicateLabel, placement: "top" }, /* @__PURE__ */ React134.createElement(import_ui117.IconButton, { size: SIZE12, onClick: duplicateItem, "aria-label": duplicateLabel }, /* @__PURE__ */ React134.createElement(import_icons45.CopyIcon, { fontSize: SIZE12 }))), showToggle && /* @__PURE__ */ React134.createElement(import_ui117.Tooltip, { title: toggleLabel, placement: "top" }, /* @__PURE__ */ React134.createElement(import_ui117.IconButton, { size: SIZE12, onClick: toggleDisableItem, "aria-label": toggleLabel }, propDisabled ? /* @__PURE__ */ React134.createElement(import_icons45.EyeOffIcon, { fontSize: SIZE12 }) : /* @__PURE__ */ React134.createElement(import_icons45.EyeIcon, { fontSize: SIZE12 }))), actions?.(value), showRemove && /* @__PURE__ */ React134.createElement(import_ui117.Tooltip, { title: removeLabel, placement: "top" }, /* @__PURE__ */ React134.createElement(import_ui117.IconButton, { size: SIZE12, onClick: removeItem, "aria-label": removeLabel }, /* @__PURE__ */ React134.createElement(import_icons45.XIcon, { fontSize: SIZE12 }))))
10525
+ actions: /* @__PURE__ */ React136.createElement(React136.Fragment, null, showDuplicate && /* @__PURE__ */ React136.createElement(import_ui119.Tooltip, { title: duplicateLabel, placement: "top" }, /* @__PURE__ */ React136.createElement(import_ui119.IconButton, { size: SIZE12, onClick: duplicateItem, "aria-label": duplicateLabel }, /* @__PURE__ */ React136.createElement(import_icons46.CopyIcon, { fontSize: SIZE12 }))), showToggle && /* @__PURE__ */ React136.createElement(import_ui119.Tooltip, { title: toggleLabel, placement: "top" }, /* @__PURE__ */ React136.createElement(import_ui119.IconButton, { size: SIZE12, onClick: toggleDisableItem, "aria-label": toggleLabel }, propDisabled ? /* @__PURE__ */ React136.createElement(import_icons46.EyeOffIcon, { fontSize: SIZE12 }) : /* @__PURE__ */ React136.createElement(import_icons46.EyeIcon, { fontSize: SIZE12 }))), actions?.(value), showRemove && /* @__PURE__ */ React136.createElement(import_ui119.Tooltip, { title: removeLabel, placement: "top" }, /* @__PURE__ */ React136.createElement(import_ui119.IconButton, { size: SIZE12, onClick: removeItem, "aria-label": removeLabel }, /* @__PURE__ */ React136.createElement(import_icons46.XIcon, { fontSize: SIZE12 }))))
10116
10526
  }
10117
- ), /* @__PURE__ */ React134.createElement(RepeaterPopover, { width: ref?.getBoundingClientRect().width, ...popoverProps, anchorEl: ref }, /* @__PURE__ */ React134.createElement(import_ui117.Box, null, children({ anchorEl: ref }))));
10527
+ ), /* @__PURE__ */ React136.createElement(RepeaterPopover, { width: ref?.getBoundingClientRect().width, ...popoverProps, anchorEl: ref }, /* @__PURE__ */ React136.createElement(import_ui119.Box, null, children({ anchorEl: ref }))));
10118
10528
  };
10119
10529
  var usePopover = (openOnMount, onOpen, onPopoverClose) => {
10120
- const [ref, setRef] = (0, import_react79.useState)(null);
10121
- const popoverState = (0, import_ui117.usePopupState)({ variant: "popover" });
10122
- const popoverProps = (0, import_ui117.bindPopover)(popoverState);
10123
- (0, import_react79.useEffect)(() => {
10530
+ const [ref, setRef] = (0, import_react81.useState)(null);
10531
+ const popoverState = (0, import_ui119.usePopupState)({ variant: "popover" });
10532
+ const popoverProps = (0, import_ui119.bindPopover)(popoverState);
10533
+ (0, import_react81.useEffect)(() => {
10124
10534
  if (openOnMount && ref) {
10125
10535
  popoverState.open(ref);
10126
10536
  onOpen?.();
@@ -10139,8 +10549,8 @@ var usePopover = (openOnMount, onOpen, onPopoverClose) => {
10139
10549
  };
10140
10550
 
10141
10551
  // src/components/size/unstable-size-field.tsx
10142
- var React137 = __toESM(require("react"));
10143
- var import_ui119 = require("@elementor/ui");
10552
+ var React139 = __toESM(require("react"));
10553
+ var import_ui121 = require("@elementor/ui");
10144
10554
 
10145
10555
  // src/hooks/use-size-value.ts
10146
10556
  var DEFAULT_UNIT2 = "px";
@@ -10182,25 +10592,25 @@ var differsFromExternal = (newState, externalState) => {
10182
10592
  };
10183
10593
 
10184
10594
  // src/components/size/unit-select.tsx
10185
- var React135 = __toESM(require("react"));
10186
- var import_react80 = require("react");
10595
+ var React137 = __toESM(require("react"));
10596
+ var import_react82 = require("react");
10187
10597
  var import_editor_ui20 = require("@elementor/editor-ui");
10188
- var import_ui118 = require("@elementor/ui");
10598
+ var import_ui120 = require("@elementor/ui");
10189
10599
  var menuItemContentStyles2 = {
10190
10600
  display: "flex",
10191
10601
  flexDirection: "column",
10192
10602
  justifyContent: "center"
10193
10603
  };
10194
10604
  var UnitSelect = ({ value, showPrimaryColor, onClick, options }) => {
10195
- const popupState = (0, import_ui118.usePopupState)({
10605
+ const popupState = (0, import_ui120.usePopupState)({
10196
10606
  variant: "popover",
10197
- popupId: (0, import_react80.useId)()
10607
+ popupId: (0, import_react82.useId)()
10198
10608
  });
10199
10609
  const handleMenuItemClick = (index) => {
10200
10610
  onClick(options[index]);
10201
10611
  popupState.close();
10202
10612
  };
10203
- return /* @__PURE__ */ React135.createElement(React135.Fragment, null, /* @__PURE__ */ React135.createElement(StyledButton3, { isPrimaryColor: showPrimaryColor, size: "small", ...(0, import_ui118.bindTrigger)(popupState) }, value), /* @__PURE__ */ React135.createElement(import_ui118.Menu, { MenuListProps: { dense: true }, ...(0, import_ui118.bindMenu)(popupState) }, options.map((option, index) => /* @__PURE__ */ React135.createElement(
10613
+ return /* @__PURE__ */ React137.createElement(React137.Fragment, null, /* @__PURE__ */ React137.createElement(StyledButton3, { isPrimaryColor: showPrimaryColor, size: "small", ...(0, import_ui120.bindTrigger)(popupState) }, value), /* @__PURE__ */ React137.createElement(import_ui120.Menu, { MenuListProps: { dense: true }, ...(0, import_ui120.bindMenu)(popupState) }, options.map((option, index) => /* @__PURE__ */ React137.createElement(
10204
10614
  import_editor_ui20.MenuListItem,
10205
10615
  {
10206
10616
  key: option,
@@ -10219,7 +10629,7 @@ var UnitSelect = ({ value, showPrimaryColor, onClick, options }) => {
10219
10629
  option.toUpperCase()
10220
10630
  ))));
10221
10631
  };
10222
- var StyledButton3 = (0, import_ui118.styled)(import_ui118.Button, {
10632
+ var StyledButton3 = (0, import_ui120.styled)(import_ui120.Button, {
10223
10633
  shouldForwardProp: (prop) => prop !== "isPrimaryColor"
10224
10634
  })(({ isPrimaryColor, theme }) => ({
10225
10635
  color: isPrimaryColor ? theme.palette.text.primary : theme.palette.text.tertiary,
@@ -10229,11 +10639,11 @@ var StyledButton3 = (0, import_ui118.styled)(import_ui118.Button, {
10229
10639
  }));
10230
10640
 
10231
10641
  // src/components/size/unstable-size-input.tsx
10232
- var React136 = __toESM(require("react"));
10233
- var import_react81 = require("react");
10234
- var UnstableSizeInput = (0, import_react81.forwardRef)(
10642
+ var React138 = __toESM(require("react"));
10643
+ var import_react83 = require("react");
10644
+ var UnstableSizeInput = (0, import_react83.forwardRef)(
10235
10645
  ({ type, value, onChange, onKeyDown, onKeyUp, InputProps, onBlur, focused, disabled }, ref) => {
10236
- return /* @__PURE__ */ React136.createElement(
10646
+ return /* @__PURE__ */ React138.createElement(
10237
10647
  NumberInput,
10238
10648
  {
10239
10649
  ref,
@@ -10271,7 +10681,7 @@ var UnstableSizeField = ({
10271
10681
  const shouldHighlightUnit2 = () => {
10272
10682
  return hasValue(size);
10273
10683
  };
10274
- return /* @__PURE__ */ React137.createElement(
10684
+ return /* @__PURE__ */ React139.createElement(
10275
10685
  UnstableSizeInput,
10276
10686
  {
10277
10687
  type: "number",
@@ -10280,8 +10690,8 @@ var UnstableSizeField = ({
10280
10690
  onChange: (event) => setSize(event.target.value),
10281
10691
  InputProps: {
10282
10692
  ...InputProps,
10283
- startAdornment: startIcon && /* @__PURE__ */ React137.createElement(import_ui119.InputAdornment, { position: "start" }, startIcon),
10284
- endAdornment: /* @__PURE__ */ React137.createElement(import_ui119.InputAdornment, { position: "end" }, /* @__PURE__ */ React137.createElement(
10693
+ startAdornment: startIcon && /* @__PURE__ */ React139.createElement(import_ui121.InputAdornment, { position: "start" }, startIcon),
10694
+ endAdornment: /* @__PURE__ */ React139.createElement(import_ui121.InputAdornment, { position: "end" }, /* @__PURE__ */ React139.createElement(
10285
10695
  UnitSelect,
10286
10696
  {
10287
10697
  options: units2,
@@ -10299,7 +10709,7 @@ var hasValue = (value) => {
10299
10709
  };
10300
10710
 
10301
10711
  // src/hooks/use-font-families.ts
10302
- var import_react82 = require("react");
10712
+ var import_react84 = require("react");
10303
10713
  var import_editor_v1_adapters4 = require("@elementor/editor-v1-adapters");
10304
10714
  var getFontControlConfig = () => {
10305
10715
  const { controls } = (0, import_editor_v1_adapters4.getElementorConfig)();
@@ -10307,7 +10717,7 @@ var getFontControlConfig = () => {
10307
10717
  };
10308
10718
  var useFontFamilies = () => {
10309
10719
  const { groups, options } = getFontControlConfig();
10310
- return (0, import_react82.useMemo)(() => {
10720
+ return (0, import_react84.useMemo)(() => {
10311
10721
  if (!groups || !options) {
10312
10722
  return [];
10313
10723
  }