@elementor/editor-controls 4.5.0-1162 → 4.5.0-1163

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
@@ -5923,7 +5923,7 @@ function measureIconLibraryAnchor(container, buttonGroup) {
5923
5923
  // src/controls/icon-library/icon-library-popover.tsx
5924
5924
  var React91 = __toESM(require("react"));
5925
5925
  var import_react58 = require("react");
5926
- var import_editor_ui12 = require("@elementor/editor-ui");
5926
+ var import_editor_ui13 = require("@elementor/editor-ui");
5927
5927
  var import_icons26 = require("@elementor/icons");
5928
5928
  var import_session2 = require("@elementor/session");
5929
5929
  var import_ui74 = require("@elementor/ui");
@@ -6576,6 +6576,7 @@ function parseFilterEntry(value) {
6576
6576
  // src/controls/icon-library/icon-library-grid.tsx
6577
6577
  var React87 = __toESM(require("react"));
6578
6578
  var import_react56 = require("react");
6579
+ var import_editor_ui11 = require("@elementor/editor-ui");
6579
6580
  var import_ui70 = require("@elementor/ui");
6580
6581
  var import_react_virtual = require("@tanstack/react-virtual");
6581
6582
  var import_i18n36 = require("@wordpress/i18n");
@@ -6615,8 +6616,6 @@ var IconLibraryGrid = ({
6615
6616
  }) => {
6616
6617
  const theme = (0, import_ui70.useTheme)();
6617
6618
  const containerRef = (0, import_react56.useRef)(null);
6618
- const cellRefs = (0, import_react56.useRef)(/* @__PURE__ */ new Map());
6619
- const shouldRestoreFocusRef = (0, import_react56.useRef)(false);
6620
6619
  const selectedIndex = items2.findIndex((item) => item.id === selectedValue);
6621
6620
  const [focusedIndex, setFocusedIndex] = (0, import_react56.useState)(selectedIndex >= 0 ? selectedIndex : 0);
6622
6621
  const [{ columnCount, cellSize }, setGridMetrics] = (0, import_react56.useState)(() => getGridMetrics(0, 0, 0));
@@ -6630,7 +6629,15 @@ var IconLibraryGrid = ({
6630
6629
  gap: cellGap,
6631
6630
  paddingStart: verticalPadding,
6632
6631
  paddingEnd: verticalPadding,
6633
- overscan: GRID_OVERSCAN
6632
+ overscan: GRID_OVERSCAN,
6633
+ rangeExtractor: (range) => {
6634
+ const rowIndexes = (0, import_react_virtual.defaultRangeExtractor)(range);
6635
+ const focusedRow = Math.floor(focusedIndex / columnCount);
6636
+ if (items2.length === 0 || rowIndexes.includes(focusedRow)) {
6637
+ return rowIndexes;
6638
+ }
6639
+ return [...rowIndexes, focusedRow].sort((a, b) => a - b);
6640
+ }
6634
6641
  });
6635
6642
  const focusedItem = items2[focusedIndex];
6636
6643
  const visibleRowIndexes = virtualizer.getVirtualIndexes().join(",");
@@ -6649,17 +6656,10 @@ var IconLibraryGrid = ({
6649
6656
  virtualizer.scrollToIndex(Math.floor(selectedIndex / columnCount), { align: "center" });
6650
6657
  }
6651
6658
  }, [cellSize, columnCount, items2, selectedIndex, selectedValue]);
6652
- (0, import_react56.useLayoutEffect)(() => {
6653
- if (!shouldRestoreFocusRef.current || !focusedItem) {
6654
- return;
6655
- }
6656
- const cell = cellRefs.current.get(focusedItem.id);
6657
- if (!cell) {
6658
- return;
6659
- }
6660
- cell.focus();
6661
- shouldRestoreFocusRef.current = false;
6662
- }, [focusedItem, visibleRowIndexes]);
6659
+ const { registerRef, requestFocus } = (0, import_editor_ui11.useRovingFocus)({
6660
+ tabbableKey: focusedItem?.id,
6661
+ mountedSignature: visibleRowIndexes
6662
+ });
6663
6663
  (0, import_react56.useLayoutEffect)(() => {
6664
6664
  const container = containerRef.current;
6665
6665
  if (!container) {
@@ -6685,7 +6685,7 @@ var IconLibraryGrid = ({
6685
6685
  if (nextIndex < 0 || nextIndex >= items2.length) {
6686
6686
  return;
6687
6687
  }
6688
- shouldRestoreFocusRef.current = true;
6688
+ requestFocus();
6689
6689
  setFocusedIndex(nextIndex);
6690
6690
  virtualizer.scrollToIndex(Math.floor(nextIndex / columnCount));
6691
6691
  };
@@ -6808,13 +6808,7 @@ var IconLibraryGrid = ({
6808
6808
  "aria-label": item.label,
6809
6809
  "aria-selected": isSelected,
6810
6810
  tabIndex,
6811
- ref: (node) => {
6812
- if (node) {
6813
- cellRefs.current.set(item.id, node);
6814
- } else {
6815
- cellRefs.current.delete(item.id);
6816
- }
6817
- },
6811
+ ref: registerRef(item.id),
6818
6812
  onClick: () => {
6819
6813
  onSelect(item.id);
6820
6814
  onClose();
@@ -6874,7 +6868,7 @@ var IconLibraryGrid = ({
6874
6868
  // src/controls/icon-library/icon-library-upload-action.tsx
6875
6869
  var React88 = __toESM(require("react"));
6876
6870
  var import_react57 = require("react");
6877
- var import_editor_ui11 = require("@elementor/editor-ui");
6871
+ var import_editor_ui12 = require("@elementor/editor-ui");
6878
6872
  var import_icons24 = require("@elementor/icons");
6879
6873
  var import_locations3 = require("@elementor/locations");
6880
6874
  var import_ui71 = require("@elementor/ui");
@@ -6941,7 +6935,7 @@ var IconLibraryUploadPromotion = ({
6941
6935
  setIsOpen(false);
6942
6936
  triggerRef.current?.focus();
6943
6937
  };
6944
- (0, import_editor_ui11.useCanvasClickHandler)(isOpen, close);
6938
+ (0, import_editor_ui12.useCanvasClickHandler)(isOpen, close);
6945
6939
  const toggle = () => {
6946
6940
  if (!isOpen) {
6947
6941
  trackViewPromotion(TRACKING_DATA);
@@ -6952,7 +6946,7 @@ var IconLibraryUploadPromotion = ({
6952
6946
  return null;
6953
6947
  }
6954
6948
  return /* @__PURE__ */ React88.createElement(
6955
- import_editor_ui11.PromotionPopover,
6949
+ import_editor_ui12.PromotionPopover,
6956
6950
  {
6957
6951
  open: isOpen,
6958
6952
  placement: "top",
@@ -7071,7 +7065,7 @@ var ICON_GLYPH_SIZE2 = 20;
7071
7065
  var ICON_LIBRARY_INLINE_SPACING = 2;
7072
7066
  var ICON_LIBRARY_SEARCH_PADDING_BOTTOM = 2;
7073
7067
  var ICON_LIBRARY_TITLE_SIZE = "14px";
7074
- var CompactIconLibraryMenuList = (0, import_ui74.styled)(import_editor_ui12.StyledMenuList)(({ theme }) => ({
7068
+ var CompactIconLibraryMenuList = (0, import_ui74.styled)(import_editor_ui13.StyledMenuList)(({ theme }) => ({
7075
7069
  '& > [role="option"]': {
7076
7070
  padding: theme.spacing(ICON_LIBRARY_ROW_VERTICAL_PADDING, ICON_LIBRARY_INLINE_SPACING)
7077
7071
  }
@@ -7111,6 +7105,7 @@ var IconLibraryPopover = ({
7111
7105
  () => findFontAwesome7Icon(icons, selectedIconClass, selectedIconLibrary)?.id,
7112
7106
  [icons, selectedIconClass, selectedIconLibrary]
7113
7107
  );
7108
+ const contentRef = (0, import_react58.useRef)(null);
7114
7109
  const handleClose = () => {
7115
7110
  setSearchValue("");
7116
7111
  setActiveLibraries([]);
@@ -7126,11 +7121,21 @@ var IconLibraryPopover = ({
7126
7121
  library: icon.library
7127
7122
  });
7128
7123
  };
7124
+ const handleSearchKeyDown = (event) => {
7125
+ if (event.key !== "ArrowDown" || view !== "list") {
7126
+ return;
7127
+ }
7128
+ const option = contentRef.current?.querySelector('[role="option"][tabindex="0"]');
7129
+ if (option) {
7130
+ event.preventDefault();
7131
+ option.focus();
7132
+ }
7133
+ };
7129
7134
  const handleClearSearch = () => {
7130
7135
  setSearchValue("");
7131
7136
  };
7132
- return /* @__PURE__ */ React91.createElement(import_editor_ui12.PopoverBody, { width, fillWidth: true, id: "icon-library" }, /* @__PURE__ */ React91.createElement(
7133
- import_editor_ui12.PopoverHeader,
7137
+ return /* @__PURE__ */ React91.createElement(import_editor_ui13.PopoverBody, { width, fillWidth: true, id: "icon-library" }, /* @__PURE__ */ React91.createElement(
7138
+ import_editor_ui13.PopoverHeader,
7134
7139
  {
7135
7140
  title: (0, import_i18n39.__)("Icon library", "elementor"),
7136
7141
  onClose: handleClose,
@@ -7153,18 +7158,18 @@ var IconLibraryPopover = ({
7153
7158
  gap: 1,
7154
7159
  sx: { px: ICON_LIBRARY_INLINE_SPACING, pb: ICON_LIBRARY_SEARCH_PADDING_BOTTOM }
7155
7160
  },
7156
- /* @__PURE__ */ React91.createElement(
7157
- import_editor_ui12.SearchField,
7161
+ /* @__PURE__ */ React91.createElement(import_ui74.Box, { onKeyDown: handleSearchKeyDown, sx: { flex: 1, minWidth: 0 } }, /* @__PURE__ */ React91.createElement(
7162
+ import_editor_ui13.SearchField,
7158
7163
  {
7159
7164
  value: searchInputValue,
7160
7165
  onSearch: handleSearchChange,
7161
7166
  placeholder: (0, import_i18n39.__)("Search", "elementor"),
7162
7167
  id: "icon-library-search",
7163
- sx: { flex: 1, px: 0, pb: 0 }
7168
+ sx: { width: "100%", px: 0, pb: 0 }
7164
7169
  }
7165
- ),
7170
+ )),
7166
7171
  /* @__PURE__ */ React91.createElement(IconLibraryFilter, { value: activeLibraries, onChange: setActiveLibraries })
7167
- ), /* @__PURE__ */ React91.createElement(import_ui74.Divider, null), /* @__PURE__ */ React91.createElement(import_ui74.Box, { sx: { flex: 1, overflow: "hidden", minHeight: 0, minWidth: 0 } }, /* @__PURE__ */ React91.createElement(
7172
+ ), /* @__PURE__ */ React91.createElement(import_ui74.Divider, null), /* @__PURE__ */ React91.createElement(import_ui74.Box, { ref: contentRef, sx: { flex: 1, overflow: "hidden", minHeight: 0, minWidth: 0 } }, /* @__PURE__ */ React91.createElement(
7168
7173
  IconLibraryContent,
7169
7174
  {
7170
7175
  isLoading,
@@ -7214,7 +7219,7 @@ var IconLibraryContent = ({
7214
7219
  ));
7215
7220
  }
7216
7221
  return /* @__PURE__ */ React91.createElement(
7217
- import_editor_ui12.PopoverMenuList,
7222
+ import_editor_ui13.PopoverMenuList,
7218
7223
  {
7219
7224
  items: items2,
7220
7225
  selectedValue,
@@ -7223,6 +7228,7 @@ var IconLibraryContent = ({
7223
7228
  onClose,
7224
7229
  itemHeight: ICON_LIBRARY_ROW_HEIGHT,
7225
7230
  menuItemContentTemplate: IconLibraryRow,
7231
+ rovingFocus: true,
7226
7232
  noResultsComponent: emptyState,
7227
7233
  "data-testid": "icon-library-list"
7228
7234
  }
@@ -7290,7 +7296,7 @@ function createIconPropValue(icon, library) {
7290
7296
 
7291
7297
  // src/controls/svg-media-overlay.tsx
7292
7298
  var React92 = __toESM(require("react"));
7293
- var import_editor_ui13 = require("@elementor/editor-ui");
7299
+ var import_editor_ui14 = require("@elementor/editor-ui");
7294
7300
  var import_icons27 = require("@elementor/icons");
7295
7301
  var import_ui75 = require("@elementor/ui");
7296
7302
  var import_i18n40 = require("@wordpress/i18n");
@@ -7344,7 +7350,7 @@ var UploadControl = ({ isAdmin, onUpload }) => {
7344
7350
  if (isAdmin) {
7345
7351
  return /* @__PURE__ */ React92.createElement(MediaUploadButton, { onClick: onUpload });
7346
7352
  }
7347
- return /* @__PURE__ */ React92.createElement(import_editor_ui13.ThemeProvider, { colorScheme: "dark" }, /* @__PURE__ */ React92.createElement(MediaUploadButton, { disabled: true }));
7353
+ return /* @__PURE__ */ React92.createElement(import_editor_ui14.ThemeProvider, { colorScheme: "dark" }, /* @__PURE__ */ React92.createElement(MediaUploadButton, { disabled: true }));
7348
7354
  };
7349
7355
 
7350
7356
  // src/controls/svg-media-preview.tsx
@@ -7821,7 +7827,7 @@ var BackgroundImageOverlayAttachment = () => {
7821
7827
  var React98 = __toESM(require("react"));
7822
7828
  var import_react61 = require("react");
7823
7829
  var import_editor_props39 = require("@elementor/editor-props");
7824
- var import_editor_ui14 = require("@elementor/editor-ui");
7830
+ var import_editor_ui15 = require("@elementor/editor-ui");
7825
7831
  var import_icons29 = require("@elementor/icons");
7826
7832
  var import_ui81 = require("@elementor/ui");
7827
7833
  var import_i18n45 = require("@wordpress/i18n");
@@ -7859,7 +7865,7 @@ var BackgroundImageOverlayPosition = () => {
7859
7865
  disabled: stringPropContext.disabled,
7860
7866
  value: (backgroundImageOffsetContext.value ? "custom" : stringPropContext.value) ?? ""
7861
7867
  },
7862
- backgroundPositionOptions.map(({ label, value }) => /* @__PURE__ */ React98.createElement(import_editor_ui14.MenuListItem, { key: value, value: value ?? "" }, label))
7868
+ backgroundPositionOptions.map(({ label, value }) => /* @__PURE__ */ React98.createElement(import_editor_ui15.MenuListItem, { key: value, value: value ?? "" }, label))
7863
7869
  ))))), isCustom ? /* @__PURE__ */ React98.createElement(PropProvider, { ...backgroundImageOffsetContext }, /* @__PURE__ */ React98.createElement(import_ui81.Grid, { item: true, xs: 12 }, /* @__PURE__ */ React98.createElement(import_ui81.Grid, { container: true, spacing: 1.5, ref: rowRef }, /* @__PURE__ */ React98.createElement(import_ui81.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React98.createElement(PropKeyProvider, { bind: "x" }, /* @__PURE__ */ React98.createElement(
7864
7870
  SizeControl,
7865
7871
  {
@@ -8526,7 +8532,7 @@ var KeyValueControl = createControl((props = {}) => {
8526
8532
  // src/controls/position-control.tsx
8527
8533
  var React105 = __toESM(require("react"));
8528
8534
  var import_editor_props46 = require("@elementor/editor-props");
8529
- var import_editor_ui15 = require("@elementor/editor-ui");
8535
+ var import_editor_ui16 = require("@elementor/editor-ui");
8530
8536
  var import_icons32 = require("@elementor/icons");
8531
8537
  var import_ui89 = require("@elementor/ui");
8532
8538
  var import_i18n51 = require("@wordpress/i18n");
@@ -8566,7 +8572,7 @@ var PositionControl = () => {
8566
8572
  renderValue: (selectedValue) => getSelectRenderValue(positionOptions, placeholder, selectedValue),
8567
8573
  fullWidth: true
8568
8574
  },
8569
- positionOptions.map(({ label, value }) => /* @__PURE__ */ React105.createElement(import_editor_ui15.MenuListItem, { key: value, value: value ?? "" }, label))
8575
+ positionOptions.map(({ label, value }) => /* @__PURE__ */ React105.createElement(import_editor_ui16.MenuListItem, { key: value, value: value ?? "" }, label))
8570
8576
  )))), isCustom && /* @__PURE__ */ React105.createElement(PropProvider, { ...positionContext }, /* @__PURE__ */ React105.createElement(import_ui89.Grid, { item: true, xs: 12 }, /* @__PURE__ */ React105.createElement(import_ui89.Grid, { container: true, spacing: 1.5 }, /* @__PURE__ */ React105.createElement(import_ui89.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React105.createElement(PropKeyProvider, { bind: "x" }, /* @__PURE__ */ React105.createElement(
8571
8577
  SizeControl,
8572
8578
  {
@@ -8980,7 +8986,7 @@ var Label2 = ({ label, value }) => {
8980
8986
 
8981
8987
  // src/controls/transform-control/transform-settings-control.tsx
8982
8988
  var React117 = __toESM(require("react"));
8983
- var import_editor_ui16 = require("@elementor/editor-ui");
8989
+ var import_editor_ui17 = require("@elementor/editor-ui");
8984
8990
  var import_icons38 = require("@elementor/icons");
8985
8991
  var import_ui101 = require("@elementor/ui");
8986
8992
  var import_i18n60 = require("@wordpress/i18n");
@@ -9084,7 +9090,7 @@ var TransformSettingsControl = ({
9084
9090
  ...popupProps
9085
9091
  },
9086
9092
  /* @__PURE__ */ React117.createElement(
9087
- import_editor_ui16.PopoverHeader,
9093
+ import_editor_ui17.PopoverHeader,
9088
9094
  {
9089
9095
  title: (0, import_i18n60.__)("Transform settings", "elementor"),
9090
9096
  onClose: popupState.close,
@@ -9413,7 +9419,7 @@ function subscribeToTransitionEvent() {
9413
9419
  var React120 = __toESM(require("react"));
9414
9420
  var import_react75 = require("react");
9415
9421
  var import_editor_props57 = require("@elementor/editor-props");
9416
- var import_editor_ui17 = require("@elementor/editor-ui");
9422
+ var import_editor_ui18 = require("@elementor/editor-ui");
9417
9423
  var import_icons40 = require("@elementor/icons");
9418
9424
  var import_ui104 = require("@elementor/ui");
9419
9425
  var import_i18n63 = require("@wordpress/i18n");
@@ -9545,10 +9551,10 @@ var TransitionSelector = ({
9545
9551
  }
9546
9552
  },
9547
9553
  /* @__PURE__ */ React120.createElement("span", null, item.value),
9548
- showPromotion && disabledCategories.has(item.value) && /* @__PURE__ */ React120.createElement(import_editor_ui17.PromotionChip, null)
9554
+ showPromotion && disabledCategories.has(item.value) && /* @__PURE__ */ React120.createElement(import_editor_ui18.PromotionChip, null)
9549
9555
  ),
9550
9556
  footer: showPromotion ? /* @__PURE__ */ React120.createElement(
9551
- import_editor_ui17.PromotionAlert,
9557
+ import_editor_ui18.PromotionAlert,
9552
9558
  {
9553
9559
  message: (0, import_i18n63.__)(
9554
9560
  "Upgrade to customize transition properties and control effects.",
@@ -10577,13 +10583,13 @@ var InlineEditingControl = createControl(
10577
10583
  // src/controls/email-form-action-control/index.tsx
10578
10584
  var React134 = __toESM(require("react"));
10579
10585
  var import_editor_props69 = require("@elementor/editor-props");
10580
- var import_editor_ui19 = require("@elementor/editor-ui");
10586
+ var import_editor_ui20 = require("@elementor/editor-ui");
10581
10587
  var import_ui118 = require("@elementor/ui");
10582
10588
  var import_i18n70 = require("@wordpress/i18n");
10583
10589
 
10584
10590
  // src/controls/email-form-action-control/fields.tsx
10585
10591
  var React133 = __toESM(require("react"));
10586
- var import_editor_ui18 = require("@elementor/editor-ui");
10592
+ var import_editor_ui19 = require("@elementor/editor-ui");
10587
10593
  var import_ui117 = require("@elementor/ui");
10588
10594
  var import_i18n69 = require("@wordpress/i18n");
10589
10595
 
@@ -10802,7 +10808,7 @@ var SendToField = ({ placeholder }) => {
10802
10808
  placeholder,
10803
10809
  suggestions
10804
10810
  }
10805
- ), shouldShowMentionsInfo() && /* @__PURE__ */ React133.createElement(import_editor_ui18.InfoAlert, null, (0, import_i18n69.__)("Type @ or an email field name to insert its submitted value.", "elementor"))));
10811
+ ), shouldShowMentionsInfo() && /* @__PURE__ */ React133.createElement(import_editor_ui19.InfoAlert, null, (0, import_i18n69.__)("Type @ or an email field name to insert its submitted value.", "elementor"))));
10806
10812
  };
10807
10813
  var SubjectField = () => /* @__PURE__ */ React133.createElement(
10808
10814
  FieldValueMentionField,
@@ -10814,7 +10820,7 @@ var SubjectField = () => /* @__PURE__ */ React133.createElement(
10814
10820
  );
10815
10821
  var MessageField = () => {
10816
10822
  const suggestions = useFormFieldSuggestions();
10817
- return /* @__PURE__ */ React133.createElement(PropKeyProvider, { bind: "message" }, /* @__PURE__ */ React133.createElement(import_ui117.Grid, { container: true, direction: "column", gap: 0.5 }, /* @__PURE__ */ React133.createElement(import_ui117.Grid, { item: true }, /* @__PURE__ */ React133.createElement(ControlFormLabel, null, (0, import_i18n69.__)("Message", "elementor"))), /* @__PURE__ */ React133.createElement(import_ui117.Grid, { item: true }, /* @__PURE__ */ React133.createElement(MentionTextAreaControl, { suggestions })), /* @__PURE__ */ React133.createElement(import_ui117.Grid, { item: true }, /* @__PURE__ */ React133.createElement(import_editor_ui18.InfoAlert, null, shouldShowMentionsInfo() ? (0, import_i18n69.__)(
10823
+ return /* @__PURE__ */ React133.createElement(PropKeyProvider, { bind: "message" }, /* @__PURE__ */ React133.createElement(import_ui117.Grid, { container: true, direction: "column", gap: 0.5 }, /* @__PURE__ */ React133.createElement(import_ui117.Grid, { item: true }, /* @__PURE__ */ React133.createElement(ControlFormLabel, null, (0, import_i18n69.__)("Message", "elementor"))), /* @__PURE__ */ React133.createElement(import_ui117.Grid, { item: true }, /* @__PURE__ */ React133.createElement(MentionTextAreaControl, { suggestions })), /* @__PURE__ */ React133.createElement(import_ui117.Grid, { item: true }, /* @__PURE__ */ React133.createElement(import_editor_ui19.InfoAlert, null, shouldShowMentionsInfo() ? (0, import_i18n69.__)(
10818
10824
  "[all-fields] shortcode sends all fields. Type @ to insert specific fields and customize your message.",
10819
10825
  "elementor"
10820
10826
  ) : (0, import_i18n69.__)("[all-fields] shortcode sends all fields.", "elementor")))));
@@ -10884,15 +10890,15 @@ var EmailFormActionControl = createControl(
10884
10890
  return /* @__PURE__ */ React134.createElement(PropProvider, { ...propContext, value, setValue }, /* @__PURE__ */ React134.createElement(import_ui118.Stack, { gap: 2 }, /* @__PURE__ */ React134.createElement(ControlLabel, null, label ? label + " " + (0, import_i18n70.__)("settings", "elementor") : (0, import_i18n70.__)("Email settings", "elementor")), /* @__PURE__ */ React134.createElement(SendToField, { placeholder: toPlaceholder }), /* @__PURE__ */ React134.createElement(SubjectField, null), /* @__PURE__ */ React134.createElement(MessageField, null), /* @__PURE__ */ React134.createElement(FromEmailField, null), /* @__PURE__ */ React134.createElement(AdvancedSettings, null)));
10885
10891
  }
10886
10892
  );
10887
- var AdvancedSettings = () => /* @__PURE__ */ React134.createElement(import_editor_ui19.CollapsibleContent, { defaultOpen: false }, /* @__PURE__ */ React134.createElement(import_ui118.Box, { sx: { pt: 2 } }, /* @__PURE__ */ React134.createElement(import_ui118.Stack, { gap: 2 }, /* @__PURE__ */ React134.createElement(FromNameField, null), /* @__PURE__ */ React134.createElement(ReplyToField, null), /* @__PURE__ */ React134.createElement(CcField, null), /* @__PURE__ */ React134.createElement(BccField, null), /* @__PURE__ */ React134.createElement(import_ui118.Divider, null), /* @__PURE__ */ React134.createElement(MetaDataField, null), /* @__PURE__ */ React134.createElement(SendAsField, null))));
10893
+ var AdvancedSettings = () => /* @__PURE__ */ React134.createElement(import_editor_ui20.CollapsibleContent, { defaultOpen: false }, /* @__PURE__ */ React134.createElement(import_ui118.Box, { sx: { pt: 2 } }, /* @__PURE__ */ React134.createElement(import_ui118.Stack, { gap: 2 }, /* @__PURE__ */ React134.createElement(FromNameField, null), /* @__PURE__ */ React134.createElement(ReplyToField, null), /* @__PURE__ */ React134.createElement(CcField, null), /* @__PURE__ */ React134.createElement(BccField, null), /* @__PURE__ */ React134.createElement(import_ui118.Divider, null), /* @__PURE__ */ React134.createElement(MetaDataField, null), /* @__PURE__ */ React134.createElement(SendAsField, null))));
10888
10894
 
10889
10895
  // src/controls/attachment-type-control.tsx
10890
10896
  var React135 = __toESM(require("react"));
10891
- var import_editor_ui20 = require("@elementor/editor-ui");
10897
+ var import_editor_ui21 = require("@elementor/editor-ui");
10892
10898
  var import_ui119 = require("@elementor/ui");
10893
10899
  var import_i18n71 = require("@wordpress/i18n");
10894
10900
  var AttachmentTypeControl = createControl(({ label, options }) => {
10895
- return /* @__PURE__ */ React135.createElement(import_ui119.Grid, { container: true, direction: "column", gap: 1 }, label && /* @__PURE__ */ React135.createElement(import_ui119.Grid, { item: true }, /* @__PURE__ */ React135.createElement(ControlFormLabel, null, label)), /* @__PURE__ */ React135.createElement(import_ui119.Grid, { item: true }, /* @__PURE__ */ React135.createElement(SelectControl, { options })), /* @__PURE__ */ React135.createElement(import_ui119.Grid, { item: true }, /* @__PURE__ */ React135.createElement(import_editor_ui20.InfoAlert, null, (0, import_i18n71.__)(
10901
+ return /* @__PURE__ */ React135.createElement(import_ui119.Grid, { container: true, direction: "column", gap: 1 }, label && /* @__PURE__ */ React135.createElement(import_ui119.Grid, { item: true }, /* @__PURE__ */ React135.createElement(ControlFormLabel, null, label)), /* @__PURE__ */ React135.createElement(import_ui119.Grid, { item: true }, /* @__PURE__ */ React135.createElement(SelectControl, { options })), /* @__PURE__ */ React135.createElement(import_ui119.Grid, { item: true }, /* @__PURE__ */ React135.createElement(import_editor_ui21.InfoAlert, null, (0, import_i18n71.__)(
10896
10902
  "Linked uploads are saved to the server. Direct attachments will not appear under Submissions.",
10897
10903
  "elementor"
10898
10904
  ))));
@@ -10948,7 +10954,7 @@ var import_i18n72 = require("@wordpress/i18n");
10948
10954
  // src/components/promotions/promotion-trigger.tsx
10949
10955
  var React137 = __toESM(require("react"));
10950
10956
  var import_react84 = require("react");
10951
- var import_editor_ui21 = require("@elementor/editor-ui");
10957
+ var import_editor_ui22 = require("@elementor/editor-ui");
10952
10958
  var import_ui121 = require("@elementor/ui");
10953
10959
  function getV4Promotion(key) {
10954
10960
  return window.elementor?.config?.v4Promotions?.[key];
@@ -10967,7 +10973,7 @@ var PromotionTrigger = (0, import_react84.forwardRef)(
10967
10973
  }, [trackingData]);
10968
10974
  (0, import_react84.useImperativeHandle)(ref, () => ({ toggle }), [toggle]);
10969
10975
  return /* @__PURE__ */ React137.createElement(React137.Fragment, null, promotion && /* @__PURE__ */ React137.createElement(
10970
- import_editor_ui21.PromotionInfotip,
10976
+ import_editor_ui22.PromotionInfotip,
10971
10977
  {
10972
10978
  title: promotion.title,
10973
10979
  content: promotion.content,
@@ -10989,7 +10995,7 @@ var PromotionTrigger = (0, import_react84.forwardRef)(
10989
10995
  },
10990
10996
  sx: { cursor: "pointer", display: "inline-flex" }
10991
10997
  },
10992
- children ?? /* @__PURE__ */ React137.createElement(import_editor_ui21.PromotionChip, null)
10998
+ children ?? /* @__PURE__ */ React137.createElement(import_editor_ui22.PromotionChip, null)
10993
10999
  )
10994
11000
  ));
10995
11001
  }
@@ -11340,7 +11346,7 @@ var differsFromExternal = (newState, externalState) => {
11340
11346
  // src/components/size/unit-select.tsx
11341
11347
  var React142 = __toESM(require("react"));
11342
11348
  var import_react88 = require("react");
11343
- var import_editor_ui22 = require("@elementor/editor-ui");
11349
+ var import_editor_ui23 = require("@elementor/editor-ui");
11344
11350
  var import_ui126 = require("@elementor/ui");
11345
11351
  var menuItemContentStyles2 = {
11346
11352
  display: "flex",
@@ -11357,7 +11363,7 @@ var UnitSelect = ({ value, showPrimaryColor, onClick, options }) => {
11357
11363
  popupState.close();
11358
11364
  };
11359
11365
  return /* @__PURE__ */ React142.createElement(React142.Fragment, null, /* @__PURE__ */ React142.createElement(StyledButton3, { isPrimaryColor: showPrimaryColor, size: "small", ...(0, import_ui126.bindTrigger)(popupState) }, value), /* @__PURE__ */ React142.createElement(import_ui126.Menu, { MenuListProps: { dense: true }, ...(0, import_ui126.bindMenu)(popupState) }, options.map((option, index) => /* @__PURE__ */ React142.createElement(
11360
- import_editor_ui22.MenuListItem,
11366
+ import_editor_ui23.MenuListItem,
11361
11367
  {
11362
11368
  key: option,
11363
11369
  onClick: () => handleMenuItemClick(index),