@elementor/editor-controls 4.1.0-832 → 4.1.0-833

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
@@ -84,6 +84,8 @@ __export(index_exports, {
84
84
  SwitchControl: () => SwitchControl,
85
85
  TextAreaControl: () => TextAreaControl,
86
86
  TextControl: () => TextControl,
87
+ TimeRangeControl: () => TimeRangeControl,
88
+ TimeStringControl: () => TimeStringControl,
87
89
  ToggleButtonGroupUi: () => ToggleButtonGroupUi,
88
90
  ToggleControl: () => ToggleControl,
89
91
  TransformRepeaterControl: () => TransformRepeaterControl,
@@ -7433,40 +7435,16 @@ var import_i18n53 = require("@wordpress/i18n");
7433
7435
 
7434
7436
  // src/controls/date-string-control.tsx
7435
7437
  var React107 = __toESM(require("react"));
7436
- var dayjs2 = __toESM(require("dayjs"));
7437
7438
  var import_editor_props56 = require("@elementor/editor-props");
7438
7439
  var import_ui91 = require("@elementor/ui");
7440
+
7441
+ // src/utils/date-time.ts
7442
+ var dayjs2 = __toESM(require("dayjs"));
7439
7443
  var DATE_FORMAT2 = "YYYY-MM-DD";
7440
- var DateStringControl = createControl(({ inputDisabled, ariaLabel, error }) => {
7441
- const { value, setValue, disabled } = useBoundProp(import_editor_props56.dateStringPropTypeUtil);
7442
- const isDisabled = inputDisabled ?? disabled;
7443
- const slotProps = {
7444
- textField: {
7445
- size: "tiny",
7446
- fullWidth: true,
7447
- error,
7448
- inputProps: ariaLabel ? { "aria-label": ariaLabel } : void 0
7449
- },
7450
- openPickerButton: { size: "tiny" },
7451
- openPickerIcon: { fontSize: "tiny" }
7452
- };
7453
- const handleChange = (newValue, format) => {
7454
- if (!newValue) {
7455
- setValue(null);
7456
- return;
7457
- }
7458
- setValue(newValue.format(format));
7459
- };
7460
- return /* @__PURE__ */ React107.createElement(import_ui91.LocalizationProvider, null, /* @__PURE__ */ React107.createElement(ControlActions, null, /* @__PURE__ */ React107.createElement(
7461
- import_ui91.DatePicker,
7462
- {
7463
- value: parseDateString(value ?? ""),
7464
- onChange: (newValue) => handleChange(newValue, DATE_FORMAT2),
7465
- disabled: isDisabled,
7466
- slotProps
7467
- }
7468
- )));
7469
- });
7444
+ var TIME_FORMAT2 = "HH:mm";
7445
+ function isValidDayjs(value) {
7446
+ return !!value && typeof value.isValid === "function" && value.isValid();
7447
+ }
7470
7448
  function parseDateString(raw) {
7471
7449
  if (!raw) {
7472
7450
  return null;
@@ -7474,17 +7452,66 @@ function parseDateString(raw) {
7474
7452
  const parsed = dayjs2.default(raw);
7475
7453
  return isValidDayjs(parsed) ? parsed : null;
7476
7454
  }
7477
- function isValidDayjs(value) {
7478
- return !!value && typeof value.isValid === "function" && value.isValid();
7455
+ function parseTimeString(raw) {
7456
+ if (!raw) {
7457
+ return null;
7458
+ }
7459
+ const [hours, minutes, seconds] = raw.split(":");
7460
+ const h = Number.parseInt(hours ?? "", 10);
7461
+ const m = Number.parseInt(minutes ?? "", 10);
7462
+ const s = Number.parseInt(seconds ?? "0", 10);
7463
+ if (Number.isNaN(h) || Number.isNaN(m)) {
7464
+ return null;
7465
+ }
7466
+ const base = dayjs2.default();
7467
+ return base.hour(h).minute(m).second(Number.isNaN(s) ? 0 : s).millisecond(0);
7479
7468
  }
7480
7469
 
7470
+ // src/controls/date-string-control.tsx
7471
+ var DateStringControl = createControl(
7472
+ ({ inputDisabled, ariaLabel, error, coerceInvalidToNull = false }) => {
7473
+ const { value, setValue, disabled } = useBoundProp(import_editor_props56.dateStringPropTypeUtil);
7474
+ const isDisabled = inputDisabled ?? disabled;
7475
+ const slotProps = {
7476
+ textField: {
7477
+ size: "tiny",
7478
+ fullWidth: true,
7479
+ error,
7480
+ inputProps: ariaLabel ? { "aria-label": ariaLabel } : void 0
7481
+ },
7482
+ openPickerButton: { size: "tiny" },
7483
+ openPickerIcon: { fontSize: "tiny" }
7484
+ };
7485
+ const handleChange = (newValue, format) => {
7486
+ if (!newValue) {
7487
+ setValue(null);
7488
+ return;
7489
+ }
7490
+ if (coerceInvalidToNull && !isValidDayjs(newValue)) {
7491
+ setValue(null);
7492
+ return;
7493
+ }
7494
+ setValue(newValue.format(format));
7495
+ };
7496
+ return /* @__PURE__ */ React107.createElement(import_ui91.LocalizationProvider, null, /* @__PURE__ */ React107.createElement(ControlActions, null, /* @__PURE__ */ React107.createElement(
7497
+ import_ui91.DatePicker,
7498
+ {
7499
+ value: parseDateString(value ?? ""),
7500
+ onChange: (newValue) => handleChange(newValue, DATE_FORMAT2),
7501
+ disabled: isDisabled,
7502
+ slotProps
7503
+ }
7504
+ )));
7505
+ }
7506
+ );
7507
+
7481
7508
  // src/controls/date-range-control.tsx
7482
7509
  var RANGE_LABELS = {
7483
7510
  min: (0, import_i18n53.__)("Min date", "elementor"),
7484
7511
  max: (0, import_i18n53.__)("Max date", "elementor")
7485
7512
  };
7486
7513
  var isMaxBeforeMin = (minIso, maxIso) => {
7487
- if (!minIso || !maxIso || [minIso, maxIso].some((v) => v === "Invalid Date")) {
7514
+ if (!minIso || !maxIso) {
7488
7515
  return false;
7489
7516
  }
7490
7517
  return maxIso < minIso;
@@ -7516,20 +7543,78 @@ var BoundDateStringControl = ({
7516
7543
  ariaLabel,
7517
7544
  error
7518
7545
  }) => {
7519
- return /* @__PURE__ */ React108.createElement(PropKeyProvider, { bind }, /* @__PURE__ */ React108.createElement(DateStringControl, { ariaLabel, error }));
7546
+ return /* @__PURE__ */ React108.createElement(PropKeyProvider, { bind }, /* @__PURE__ */ React108.createElement(DateStringControl, { ariaLabel, error, coerceInvalidToNull: true }));
7520
7547
  };
7521
7548
 
7522
- // src/controls/inline-editing-control.tsx
7523
- var React110 = __toESM(require("react"));
7524
- var import_react66 = require("react");
7549
+ // src/controls/time-string-control.tsx
7550
+ var React109 = __toESM(require("react"));
7525
7551
  var import_editor_props58 = require("@elementor/editor-props");
7552
+ var import_ui93 = require("@elementor/ui");
7553
+ var TimeStringControl = createControl(
7554
+ ({ inputDisabled, ariaLabel, error, coerceInvalidToNull = false }) => {
7555
+ const { value, setValue, disabled } = useBoundProp(import_editor_props58.timeStringPropTypeUtil);
7556
+ const isDisabled = inputDisabled ?? disabled;
7557
+ const slotProps = {
7558
+ textField: {
7559
+ size: "tiny",
7560
+ fullWidth: true,
7561
+ error,
7562
+ inputProps: ariaLabel ? { "aria-label": ariaLabel } : void 0
7563
+ },
7564
+ openPickerButton: { size: "tiny" },
7565
+ openPickerIcon: { fontSize: "tiny" }
7566
+ };
7567
+ const handleChange = (newValue, format) => {
7568
+ if (!newValue) {
7569
+ setValue(null);
7570
+ return;
7571
+ }
7572
+ if (coerceInvalidToNull && !isValidDayjs(newValue)) {
7573
+ setValue(null);
7574
+ return;
7575
+ }
7576
+ setValue(newValue.format(format));
7577
+ };
7578
+ return /* @__PURE__ */ React109.createElement(import_ui93.LocalizationProvider, null, /* @__PURE__ */ React109.createElement(ControlActions, null, /* @__PURE__ */ React109.createElement(
7579
+ import_ui93.TimePicker,
7580
+ {
7581
+ value: parseTimeString(value ?? ""),
7582
+ onChange: (newValue) => handleChange(newValue, TIME_FORMAT2),
7583
+ disabled: isDisabled,
7584
+ slotProps
7585
+ }
7586
+ )));
7587
+ }
7588
+ );
7589
+
7590
+ // src/controls/time-range-control.tsx
7591
+ var React110 = __toESM(require("react"));
7592
+ var import_editor_props59 = require("@elementor/editor-props");
7526
7593
  var import_ui94 = require("@elementor/ui");
7594
+ var import_i18n54 = require("@wordpress/i18n");
7595
+ var RANGE_LABELS2 = {
7596
+ min: (0, import_i18n54.__)("Start time", "elementor"),
7597
+ max: (0, import_i18n54.__)("End time", "elementor")
7598
+ };
7599
+ var TimeRangeControl = createControl(() => {
7600
+ const { value, setValue, ...propContext } = useBoundProp(import_editor_props59.timeRangePropTypeUtil);
7601
+ return /* @__PURE__ */ React110.createElement(PropProvider, { ...propContext, value, setValue }, /* @__PURE__ */ React110.createElement(import_ui94.Stack, { direction: "row", gap: 2, flexWrap: "nowrap" }, /* @__PURE__ */ React110.createElement(import_ui94.Grid, { container: true, gap: 0.75, alignItems: "center" }, /* @__PURE__ */ React110.createElement(import_ui94.Grid, { item: true, xs: 12 }, /* @__PURE__ */ React110.createElement(ControlFormLabel, null, RANGE_LABELS2.min)), /* @__PURE__ */ React110.createElement(import_ui94.Grid, { item: true, xs: 12 }, /* @__PURE__ */ React110.createElement(BoundTimeStringControl, { bind: "min", ariaLabel: RANGE_LABELS2.min }))), /* @__PURE__ */ React110.createElement(import_ui94.Grid, { container: true, gap: 0.75, alignItems: "center" }, /* @__PURE__ */ React110.createElement(import_ui94.Grid, { item: true, xs: 12 }, /* @__PURE__ */ React110.createElement(ControlFormLabel, null, RANGE_LABELS2.max)), /* @__PURE__ */ React110.createElement(import_ui94.Grid, { item: true, xs: 12 }, /* @__PURE__ */ React110.createElement(BoundTimeStringControl, { bind: "max", ariaLabel: RANGE_LABELS2.max })))));
7602
+ });
7603
+ var BoundTimeStringControl = ({ bind, ariaLabel }) => {
7604
+ return /* @__PURE__ */ React110.createElement(PropKeyProvider, { bind }, /* @__PURE__ */ React110.createElement(TimeStringControl, { ariaLabel, coerceInvalidToNull: true }));
7605
+ };
7606
+
7607
+ // src/controls/inline-editing-control.tsx
7608
+ var React112 = __toESM(require("react"));
7609
+ var import_react66 = require("react");
7610
+ var import_editor_props60 = require("@elementor/editor-props");
7611
+ var import_ui96 = require("@elementor/ui");
7527
7612
  var import_utils8 = require("@elementor/utils");
7528
7613
 
7529
7614
  // src/components/inline-editor.tsx
7530
- var React109 = __toESM(require("react"));
7615
+ var React111 = __toESM(require("react"));
7531
7616
  var import_react64 = require("react");
7532
- var import_ui93 = require("@elementor/ui");
7617
+ var import_ui95 = require("@elementor/ui");
7533
7618
  var import_extension_bold = __toESM(require("@tiptap/extension-bold"));
7534
7619
  var import_extension_document = __toESM(require("@tiptap/extension-document"));
7535
7620
  var import_extension_hard_break = __toESM(require("@tiptap/extension-hard-break"));
@@ -7566,7 +7651,7 @@ function htmlToPlainText(html) {
7566
7651
  var ITALIC_KEYBOARD_SHORTCUT = "i";
7567
7652
  var BOLD_KEYBOARD_SHORTCUT = "b";
7568
7653
  var UNDERLINE_KEYBOARD_SHORTCUT = "u";
7569
- var InlineEditor = React109.forwardRef((props, ref) => {
7654
+ var InlineEditor = React111.forwardRef((props, ref) => {
7570
7655
  const {
7571
7656
  value,
7572
7657
  setValue,
@@ -7677,7 +7762,7 @@ var InlineEditor = React109.forwardRef((props, ref) => {
7677
7762
  if (mountElement) {
7678
7763
  return null;
7679
7764
  }
7680
- return /* @__PURE__ */ React109.createElement(import_ui93.Box, { ref: containerRef, sx, className: wrapperClassName }, /* @__PURE__ */ React109.createElement(import_react65.EditorContent, { ref, editor }));
7765
+ return /* @__PURE__ */ React111.createElement(import_ui95.Box, { ref: containerRef, sx, className: wrapperClassName }, /* @__PURE__ */ React111.createElement(import_react65.EditorContent, { ref, editor }));
7681
7766
  });
7682
7767
  var useOnUpdate = (callback, dependencies) => {
7683
7768
  const hasMounted = (0, import_react64.useRef)(false);
@@ -7698,13 +7783,13 @@ var InlineEditingControl = createControl(
7698
7783
  attributes,
7699
7784
  props
7700
7785
  }) => {
7701
- const { value, setValue, placeholder } = useBoundProp(import_editor_props58.htmlV3PropTypeUtil);
7702
- const content = import_editor_props58.stringPropTypeUtil.extract(value?.content ?? null) ?? "";
7786
+ const { value, setValue, placeholder } = useBoundProp(import_editor_props60.htmlV3PropTypeUtil);
7787
+ const content = import_editor_props60.stringPropTypeUtil.extract(value?.content ?? null) ?? "";
7703
7788
  const debouncedParse = (0, import_react66.useMemo)(
7704
7789
  () => (0, import_utils8.debounce)((html) => {
7705
- const parsed = (0, import_editor_props58.parseHtmlChildren)(html);
7790
+ const parsed = (0, import_editor_props60.parseHtmlChildren)(html);
7706
7791
  setValue({
7707
- content: parsed.content ? import_editor_props58.stringPropTypeUtil.create(parsed.content) : null,
7792
+ content: parsed.content ? import_editor_props60.stringPropTypeUtil.create(parsed.content) : null,
7708
7793
  children: parsed.children
7709
7794
  });
7710
7795
  }, CHILDREN_PARSE_DEBOUNCE_MS),
@@ -7714,7 +7799,7 @@ var InlineEditingControl = createControl(
7714
7799
  (newValue) => {
7715
7800
  const html = newValue ?? "";
7716
7801
  setValue({
7717
- content: html ? import_editor_props58.stringPropTypeUtil.create(html) : null,
7802
+ content: html ? import_editor_props60.stringPropTypeUtil.create(html) : null,
7718
7803
  children: value?.children ?? []
7719
7804
  });
7720
7805
  debouncedParse(html);
@@ -7722,8 +7807,8 @@ var InlineEditingControl = createControl(
7722
7807
  [setValue, value?.children, debouncedParse]
7723
7808
  );
7724
7809
  (0, import_react66.useEffect)(() => () => debouncedParse.cancel(), [debouncedParse]);
7725
- return /* @__PURE__ */ React110.createElement(ControlActions, null, /* @__PURE__ */ React110.createElement(
7726
- import_ui94.Box,
7810
+ return /* @__PURE__ */ React112.createElement(ControlActions, null, /* @__PURE__ */ React112.createElement(
7811
+ import_ui96.Box,
7727
7812
  {
7728
7813
  sx: {
7729
7814
  p: 0.8,
@@ -7767,7 +7852,7 @@ var InlineEditingControl = createControl(
7767
7852
  ...attributes,
7768
7853
  ...props
7769
7854
  },
7770
- /* @__PURE__ */ React110.createElement(
7855
+ /* @__PURE__ */ React112.createElement(
7771
7856
  InlineEditor,
7772
7857
  {
7773
7858
  value: content,
@@ -7780,23 +7865,25 @@ var InlineEditingControl = createControl(
7780
7865
  );
7781
7866
 
7782
7867
  // src/controls/email-form-action-control.tsx
7783
- var React111 = __toESM(require("react"));
7784
- var import_editor_props60 = require("@elementor/editor-props");
7868
+ var React113 = __toESM(require("react"));
7869
+ var import_editor_props62 = require("@elementor/editor-props");
7785
7870
  var import_editor_ui15 = require("@elementor/editor-ui");
7786
- var import_ui95 = require("@elementor/ui");
7871
+ var import_ui97 = require("@elementor/ui");
7787
7872
  var import_utils9 = require("@elementor/utils");
7788
- var import_i18n54 = require("@wordpress/i18n");
7873
+ var import_i18n55 = require("@wordpress/i18n");
7789
7874
 
7790
7875
  // src/hooks/use-form-field-suggestions.ts
7791
7876
  var import_editor_elements6 = require("@elementor/editor-elements");
7792
- var import_editor_props59 = require("@elementor/editor-props");
7877
+ var import_editor_props61 = require("@elementor/editor-props");
7793
7878
  var import_editor_v1_adapters = require("@elementor/editor-v1-adapters");
7794
7879
  var FORM_FIELD_WIDGET_TYPES = [
7795
7880
  "e-form-input",
7796
7881
  "e-form-textarea",
7797
7882
  "e-form-checkbox",
7798
7883
  "e-form-radio-button",
7799
- "e-form-select"
7884
+ "e-form-select",
7885
+ "e-form-date-picker",
7886
+ "e-form-time-picker"
7800
7887
  ];
7801
7888
  function useFormFieldSuggestions(options) {
7802
7889
  return (0, import_editor_v1_adapters.__privateUseListenTo)(
@@ -7824,13 +7911,13 @@ function useFormFieldSuggestions(options) {
7824
7911
  }
7825
7912
  if (options?.inputType) {
7826
7913
  const typeProp = child.settings.get("type");
7827
- const typeValue = (0, import_editor_props59.isTransformable)(typeProp) ? typeProp.value : typeProp;
7914
+ const typeValue = (0, import_editor_props61.isTransformable)(typeProp) ? typeProp.value : typeProp;
7828
7915
  if (typeValue !== options.inputType) {
7829
7916
  return;
7830
7917
  }
7831
7918
  }
7832
7919
  const cssIdProp = child.settings.get("_cssid");
7833
- const fieldId = (0, import_editor_props59.isTransformable)(cssIdProp) ? cssIdProp.value : cssIdProp;
7920
+ const fieldId = (0, import_editor_props61.isTransformable)(cssIdProp) ? cssIdProp.value : cssIdProp;
7834
7921
  if (fieldId && typeof fieldId === "string") {
7835
7922
  suggestions.push({ label: fieldId, value: fieldId });
7836
7923
  }
@@ -7842,14 +7929,14 @@ function useFormFieldSuggestions(options) {
7842
7929
  }
7843
7930
 
7844
7931
  // src/controls/email-form-action-control.tsx
7845
- var EmailField = ({ bind, label, placeholder }) => /* @__PURE__ */ React111.createElement(PropKeyProvider, { bind }, /* @__PURE__ */ React111.createElement(import_ui95.Grid, { container: true, direction: "column", gap: 0.5 }, /* @__PURE__ */ React111.createElement(import_ui95.Grid, { item: true }, /* @__PURE__ */ React111.createElement(ControlFormLabel, null, label)), /* @__PURE__ */ React111.createElement(import_ui95.Grid, { item: true }, /* @__PURE__ */ React111.createElement(TextControl, { placeholder }))));
7846
- var SendToField = ({ placeholder }) => /* @__PURE__ */ React111.createElement(EmailField, { bind: "to", label: (0, import_i18n54.__)("Send to", "elementor"), placeholder });
7847
- var SubjectField = () => /* @__PURE__ */ React111.createElement(
7932
+ var EmailField = ({ bind, label, placeholder }) => /* @__PURE__ */ React113.createElement(PropKeyProvider, { bind }, /* @__PURE__ */ React113.createElement(import_ui97.Grid, { container: true, direction: "column", gap: 0.5 }, /* @__PURE__ */ React113.createElement(import_ui97.Grid, { item: true }, /* @__PURE__ */ React113.createElement(ControlFormLabel, null, label)), /* @__PURE__ */ React113.createElement(import_ui97.Grid, { item: true }, /* @__PURE__ */ React113.createElement(TextControl, { placeholder }))));
7933
+ var SendToField = ({ placeholder }) => /* @__PURE__ */ React113.createElement(EmailField, { bind: "to", label: (0, import_i18n55.__)("Send to", "elementor"), placeholder });
7934
+ var SubjectField = () => /* @__PURE__ */ React113.createElement(
7848
7935
  EmailField,
7849
7936
  {
7850
7937
  bind: "subject",
7851
- label: (0, import_i18n54.__)("Email subject", "elementor"),
7852
- placeholder: (0, import_i18n54.__)("New form submission", "elementor")
7938
+ label: (0, import_i18n55.__)("Email subject", "elementor"),
7939
+ placeholder: (0, import_i18n55.__)("New form submission", "elementor")
7853
7940
  }
7854
7941
  );
7855
7942
  var MIN_PRO_VERSION_FOR_MENTIONS = "4.1.0";
@@ -7865,92 +7952,92 @@ var shouldShowMentionsInfo = () => {
7865
7952
  };
7866
7953
  var MessageField = () => {
7867
7954
  const suggestions = useFormFieldSuggestions();
7868
- return /* @__PURE__ */ React111.createElement(PropKeyProvider, { bind: "message" }, /* @__PURE__ */ React111.createElement(import_ui95.Grid, { container: true, direction: "column", gap: 0.5 }, /* @__PURE__ */ React111.createElement(import_ui95.Grid, { item: true }, /* @__PURE__ */ React111.createElement(ControlFormLabel, null, (0, import_i18n54.__)("Message", "elementor"))), /* @__PURE__ */ React111.createElement(import_ui95.Grid, { item: true }, /* @__PURE__ */ React111.createElement(MentionTextAreaControl, { suggestions })), /* @__PURE__ */ React111.createElement(import_ui95.Grid, { item: true }, /* @__PURE__ */ React111.createElement(import_editor_ui15.InfoAlert, null, shouldShowMentionsInfo() ? (0, import_i18n54.__)(
7955
+ return /* @__PURE__ */ React113.createElement(PropKeyProvider, { bind: "message" }, /* @__PURE__ */ React113.createElement(import_ui97.Grid, { container: true, direction: "column", gap: 0.5 }, /* @__PURE__ */ React113.createElement(import_ui97.Grid, { item: true }, /* @__PURE__ */ React113.createElement(ControlFormLabel, null, (0, import_i18n55.__)("Message", "elementor"))), /* @__PURE__ */ React113.createElement(import_ui97.Grid, { item: true }, /* @__PURE__ */ React113.createElement(MentionTextAreaControl, { suggestions })), /* @__PURE__ */ React113.createElement(import_ui97.Grid, { item: true }, /* @__PURE__ */ React113.createElement(import_editor_ui15.InfoAlert, null, shouldShowMentionsInfo() ? (0, import_i18n55.__)(
7869
7956
  "[all-fields] shortcode sends all fields. Type @ to insert specific fields and customize your message.",
7870
7957
  "elementor"
7871
- ) : (0, import_i18n54.__)("[all-fields] shortcode sends all fields.", "elementor")))));
7958
+ ) : (0, import_i18n55.__)("[all-fields] shortcode sends all fields.", "elementor")))));
7872
7959
  };
7873
- var FromEmailField = () => /* @__PURE__ */ React111.createElement(
7960
+ var FromEmailField = () => /* @__PURE__ */ React113.createElement(
7874
7961
  EmailField,
7875
7962
  {
7876
7963
  bind: "from",
7877
- label: (0, import_i18n54.__)("From email", "elementor"),
7878
- placeholder: (0, import_i18n54.__)("What email should appear as the sender?", "elementor")
7964
+ label: (0, import_i18n55.__)("From email", "elementor"),
7965
+ placeholder: (0, import_i18n55.__)("What email should appear as the sender?", "elementor")
7879
7966
  }
7880
7967
  );
7881
- var FromNameField = () => /* @__PURE__ */ React111.createElement(
7968
+ var FromNameField = () => /* @__PURE__ */ React113.createElement(
7882
7969
  EmailField,
7883
7970
  {
7884
7971
  bind: "from-name",
7885
- label: (0, import_i18n54.__)("From name", "elementor"),
7886
- placeholder: (0, import_i18n54.__)("What name should appear as the sender?", "elementor")
7972
+ label: (0, import_i18n55.__)("From name", "elementor"),
7973
+ placeholder: (0, import_i18n55.__)("What name should appear as the sender?", "elementor")
7887
7974
  }
7888
7975
  );
7889
7976
  var ReplyToField = () => {
7890
7977
  const emailSuggestions = useFormFieldSuggestions({ inputType: "email" });
7891
- return /* @__PURE__ */ React111.createElement(PropKeyProvider, { bind: "reply-to" }, /* @__PURE__ */ React111.createElement(import_ui95.Grid, { container: true, direction: "column", gap: 0.5 }, /* @__PURE__ */ React111.createElement(import_ui95.Grid, { item: true }, /* @__PURE__ */ React111.createElement(ControlFormLabel, null, (0, import_i18n54.__)("Reply-to", "elementor"))), /* @__PURE__ */ React111.createElement(import_ui95.Grid, { item: true }, /* @__PURE__ */ React111.createElement(
7978
+ return /* @__PURE__ */ React113.createElement(PropKeyProvider, { bind: "reply-to" }, /* @__PURE__ */ React113.createElement(import_ui97.Grid, { container: true, direction: "column", gap: 0.5 }, /* @__PURE__ */ React113.createElement(import_ui97.Grid, { item: true }, /* @__PURE__ */ React113.createElement(ControlFormLabel, null, (0, import_i18n55.__)("Reply-to", "elementor"))), /* @__PURE__ */ React113.createElement(import_ui97.Grid, { item: true }, /* @__PURE__ */ React113.createElement(
7892
7979
  MentionTextAreaControl,
7893
7980
  {
7894
7981
  suggestions: emailSuggestions,
7895
7982
  rows: 1,
7896
7983
  triggerPosition: "start",
7897
- placeholder: (0, import_i18n54.__)("You can type @ to insert an email field", "elementor")
7984
+ placeholder: (0, import_i18n55.__)("You can type @ to insert an email field", "elementor")
7898
7985
  }
7899
7986
  ))));
7900
7987
  };
7901
- var CcField = () => /* @__PURE__ */ React111.createElement(EmailField, { bind: "cc", label: (0, import_i18n54.__)("Cc", "elementor") });
7902
- var BccField = () => /* @__PURE__ */ React111.createElement(EmailField, { bind: "bcc", label: (0, import_i18n54.__)("Bcc", "elementor") });
7903
- var MetaDataField = () => /* @__PURE__ */ React111.createElement(PropKeyProvider, { bind: "meta-data" }, /* @__PURE__ */ React111.createElement(import_ui95.Stack, { gap: 0.5 }, /* @__PURE__ */ React111.createElement(ControlFormLabel, null, (0, import_i18n54.__)("Metadata", "elementor")), /* @__PURE__ */ React111.createElement(
7988
+ var CcField = () => /* @__PURE__ */ React113.createElement(EmailField, { bind: "cc", label: (0, import_i18n55.__)("Cc", "elementor") });
7989
+ var BccField = () => /* @__PURE__ */ React113.createElement(EmailField, { bind: "bcc", label: (0, import_i18n55.__)("Bcc", "elementor") });
7990
+ var MetaDataField = () => /* @__PURE__ */ React113.createElement(PropKeyProvider, { bind: "meta-data" }, /* @__PURE__ */ React113.createElement(import_ui97.Stack, { gap: 0.5 }, /* @__PURE__ */ React113.createElement(ControlFormLabel, null, (0, import_i18n55.__)("Metadata", "elementor")), /* @__PURE__ */ React113.createElement(
7904
7991
  ChipsControl,
7905
7992
  {
7906
7993
  options: [
7907
- { label: (0, import_i18n54.__)("Date", "elementor"), value: "date" },
7908
- { label: (0, import_i18n54.__)("Time", "elementor"), value: "time" },
7909
- { label: (0, import_i18n54.__)("Page URL", "elementor"), value: "page-url" },
7910
- { label: (0, import_i18n54.__)("User agent", "elementor"), value: "user-agent" },
7911
- { label: (0, import_i18n54.__)("Credit", "elementor"), value: "credit" }
7994
+ { label: (0, import_i18n55.__)("Date", "elementor"), value: "date" },
7995
+ { label: (0, import_i18n55.__)("Time", "elementor"), value: "time" },
7996
+ { label: (0, import_i18n55.__)("Page URL", "elementor"), value: "page-url" },
7997
+ { label: (0, import_i18n55.__)("User agent", "elementor"), value: "user-agent" },
7998
+ { label: (0, import_i18n55.__)("Credit", "elementor"), value: "credit" }
7912
7999
  ]
7913
8000
  }
7914
8001
  )));
7915
- var SendAsField = () => /* @__PURE__ */ React111.createElement(PropKeyProvider, { bind: "send-as" }, /* @__PURE__ */ React111.createElement(import_ui95.Grid, { container: true, direction: "column", gap: 0.5 }, /* @__PURE__ */ React111.createElement(import_ui95.Grid, { item: true }, /* @__PURE__ */ React111.createElement(ControlFormLabel, null, (0, import_i18n54.__)("Send as", "elementor"))), /* @__PURE__ */ React111.createElement(import_ui95.Grid, { item: true }, /* @__PURE__ */ React111.createElement(
8002
+ var SendAsField = () => /* @__PURE__ */ React113.createElement(PropKeyProvider, { bind: "send-as" }, /* @__PURE__ */ React113.createElement(import_ui97.Grid, { container: true, direction: "column", gap: 0.5 }, /* @__PURE__ */ React113.createElement(import_ui97.Grid, { item: true }, /* @__PURE__ */ React113.createElement(ControlFormLabel, null, (0, import_i18n55.__)("Send as", "elementor"))), /* @__PURE__ */ React113.createElement(import_ui97.Grid, { item: true }, /* @__PURE__ */ React113.createElement(
7916
8003
  SelectControl,
7917
8004
  {
7918
8005
  options: [
7919
- { label: (0, import_i18n54.__)("HTML", "elementor"), value: "html" },
7920
- { label: (0, import_i18n54.__)("Plain Text", "elementor"), value: "plain" }
8006
+ { label: (0, import_i18n55.__)("HTML", "elementor"), value: "html" },
8007
+ { label: (0, import_i18n55.__)("Plain Text", "elementor"), value: "plain" }
7921
8008
  ]
7922
8009
  }
7923
8010
  ))));
7924
- var AdvancedSettings = () => /* @__PURE__ */ React111.createElement(import_editor_ui15.CollapsibleContent, { defaultOpen: false }, /* @__PURE__ */ React111.createElement(import_ui95.Box, { sx: { pt: 2 } }, /* @__PURE__ */ React111.createElement(import_ui95.Stack, { gap: 2 }, /* @__PURE__ */ React111.createElement(FromNameField, null), /* @__PURE__ */ React111.createElement(ReplyToField, null), /* @__PURE__ */ React111.createElement(CcField, null), /* @__PURE__ */ React111.createElement(BccField, null), /* @__PURE__ */ React111.createElement(import_ui95.Divider, null), /* @__PURE__ */ React111.createElement(MetaDataField, null), /* @__PURE__ */ React111.createElement(SendAsField, null))));
8011
+ var AdvancedSettings = () => /* @__PURE__ */ React113.createElement(import_editor_ui15.CollapsibleContent, { defaultOpen: false }, /* @__PURE__ */ React113.createElement(import_ui97.Box, { sx: { pt: 2 } }, /* @__PURE__ */ React113.createElement(import_ui97.Stack, { gap: 2 }, /* @__PURE__ */ React113.createElement(FromNameField, null), /* @__PURE__ */ React113.createElement(ReplyToField, null), /* @__PURE__ */ React113.createElement(CcField, null), /* @__PURE__ */ React113.createElement(BccField, null), /* @__PURE__ */ React113.createElement(import_ui97.Divider, null), /* @__PURE__ */ React113.createElement(MetaDataField, null), /* @__PURE__ */ React113.createElement(SendAsField, null))));
7925
8012
  var EmailFormActionControl = createControl(({ toPlaceholder }) => {
7926
- const { value, setValue, ...propContext } = useBoundProp(import_editor_props60.emailPropTypeUtil);
7927
- return /* @__PURE__ */ React111.createElement(PropProvider, { ...propContext, value, setValue }, /* @__PURE__ */ React111.createElement(import_ui95.Stack, { gap: 2 }, /* @__PURE__ */ React111.createElement(ControlLabel, null, (0, import_i18n54.__)("Email settings", "elementor")), /* @__PURE__ */ React111.createElement(SendToField, { placeholder: toPlaceholder }), /* @__PURE__ */ React111.createElement(SubjectField, null), /* @__PURE__ */ React111.createElement(MessageField, null), /* @__PURE__ */ React111.createElement(FromEmailField, null), /* @__PURE__ */ React111.createElement(AdvancedSettings, null)));
8013
+ const { value, setValue, ...propContext } = useBoundProp(import_editor_props62.emailPropTypeUtil);
8014
+ return /* @__PURE__ */ React113.createElement(PropProvider, { ...propContext, value, setValue }, /* @__PURE__ */ React113.createElement(import_ui97.Stack, { gap: 2 }, /* @__PURE__ */ React113.createElement(ControlLabel, null, (0, import_i18n55.__)("Email settings", "elementor")), /* @__PURE__ */ React113.createElement(SendToField, { placeholder: toPlaceholder }), /* @__PURE__ */ React113.createElement(SubjectField, null), /* @__PURE__ */ React113.createElement(MessageField, null), /* @__PURE__ */ React113.createElement(FromEmailField, null), /* @__PURE__ */ React113.createElement(AdvancedSettings, null)));
7928
8015
  });
7929
8016
 
7930
8017
  // src/controls/attachment-type-control.tsx
7931
- var React112 = __toESM(require("react"));
8018
+ var React114 = __toESM(require("react"));
7932
8019
  var import_editor_ui16 = require("@elementor/editor-ui");
7933
- var import_ui96 = require("@elementor/ui");
7934
- var import_i18n55 = require("@wordpress/i18n");
8020
+ var import_ui98 = require("@elementor/ui");
8021
+ var import_i18n56 = require("@wordpress/i18n");
7935
8022
  var AttachmentTypeControl = createControl(({ label, options }) => {
7936
- return /* @__PURE__ */ React112.createElement(import_ui96.Grid, { container: true, direction: "column", gap: 1 }, label && /* @__PURE__ */ React112.createElement(import_ui96.Grid, { item: true }, /* @__PURE__ */ React112.createElement(ControlFormLabel, null, label)), /* @__PURE__ */ React112.createElement(import_ui96.Grid, { item: true }, /* @__PURE__ */ React112.createElement(SelectControl, { options })), /* @__PURE__ */ React112.createElement(import_ui96.Grid, { item: true }, /* @__PURE__ */ React112.createElement(import_editor_ui16.InfoAlert, null, (0, import_i18n55.__)(
8023
+ return /* @__PURE__ */ React114.createElement(import_ui98.Grid, { container: true, direction: "column", gap: 1 }, label && /* @__PURE__ */ React114.createElement(import_ui98.Grid, { item: true }, /* @__PURE__ */ React114.createElement(ControlFormLabel, null, label)), /* @__PURE__ */ React114.createElement(import_ui98.Grid, { item: true }, /* @__PURE__ */ React114.createElement(SelectControl, { options })), /* @__PURE__ */ React114.createElement(import_ui98.Grid, { item: true }, /* @__PURE__ */ React114.createElement(import_editor_ui16.InfoAlert, null, (0, import_i18n56.__)(
7937
8024
  "Linked uploads are saved to the server. Direct attachments will not appear under Submissions.",
7938
8025
  "elementor"
7939
8026
  ))));
7940
8027
  });
7941
8028
 
7942
8029
  // src/components/promotions/display-conditions-control.tsx
7943
- var React114 = __toESM(require("react"));
8030
+ var React116 = __toESM(require("react"));
7944
8031
  var import_react68 = require("react");
7945
8032
  var import_icons36 = require("@elementor/icons");
7946
- var import_ui98 = require("@elementor/ui");
7947
- var import_i18n56 = require("@wordpress/i18n");
8033
+ var import_ui100 = require("@elementor/ui");
8034
+ var import_i18n57 = require("@wordpress/i18n");
7948
8035
 
7949
8036
  // src/components/promotions/promotion-trigger.tsx
7950
- var React113 = __toESM(require("react"));
8037
+ var React115 = __toESM(require("react"));
7951
8038
  var import_react67 = require("react");
7952
8039
  var import_editor_ui17 = require("@elementor/editor-ui");
7953
- var import_ui97 = require("@elementor/ui");
8040
+ var import_ui99 = require("@elementor/ui");
7954
8041
  function getV4Promotion(key) {
7955
8042
  return window.elementor?.config?.v4Promotions?.[key];
7956
8043
  }
@@ -7967,7 +8054,7 @@ var PromotionTrigger = (0, import_react67.forwardRef)(
7967
8054
  });
7968
8055
  }, [trackingData]);
7969
8056
  (0, import_react67.useImperativeHandle)(ref, () => ({ toggle }), [toggle]);
7970
- return /* @__PURE__ */ React113.createElement(React113.Fragment, null, promotion && /* @__PURE__ */ React113.createElement(
8057
+ return /* @__PURE__ */ React115.createElement(React115.Fragment, null, promotion && /* @__PURE__ */ React115.createElement(
7971
8058
  import_editor_ui17.PromotionInfotip,
7972
8059
  {
7973
8060
  title: promotion.title,
@@ -7981,8 +8068,8 @@ var PromotionTrigger = (0, import_react67.forwardRef)(
7981
8068
  },
7982
8069
  onCtaClick: () => trackUpgradePromotionClick(trackingData)
7983
8070
  },
7984
- /* @__PURE__ */ React113.createElement(
7985
- import_ui97.Box,
8071
+ /* @__PURE__ */ React115.createElement(
8072
+ import_ui99.Box,
7986
8073
  {
7987
8074
  onClick: (e) => {
7988
8075
  e.stopPropagation();
@@ -7990,19 +8077,19 @@ var PromotionTrigger = (0, import_react67.forwardRef)(
7990
8077
  },
7991
8078
  sx: { cursor: "pointer", display: "inline-flex" }
7992
8079
  },
7993
- children ?? /* @__PURE__ */ React113.createElement(import_editor_ui17.PromotionChip, null)
8080
+ children ?? /* @__PURE__ */ React115.createElement(import_editor_ui17.PromotionChip, null)
7994
8081
  )
7995
8082
  ));
7996
8083
  }
7997
8084
  );
7998
8085
 
7999
8086
  // src/components/promotions/display-conditions-control.tsx
8000
- var ARIA_LABEL = (0, import_i18n56.__)("Display Conditions", "elementor");
8087
+ var ARIA_LABEL = (0, import_i18n57.__)("Display Conditions", "elementor");
8001
8088
  var TRACKING_DATA = { target_name: "display_conditions", location_l2: "general" };
8002
8089
  var DisplayConditionsControl = createControl(() => {
8003
8090
  const triggerRef = (0, import_react68.useRef)(null);
8004
- return /* @__PURE__ */ React114.createElement(
8005
- import_ui98.Stack,
8091
+ return /* @__PURE__ */ React116.createElement(
8092
+ import_ui100.Stack,
8006
8093
  {
8007
8094
  direction: "row",
8008
8095
  spacing: 2,
@@ -8011,9 +8098,9 @@ var DisplayConditionsControl = createControl(() => {
8011
8098
  alignItems: "center"
8012
8099
  }
8013
8100
  },
8014
- /* @__PURE__ */ React114.createElement(PromotionTrigger, { ref: triggerRef, promotionKey: "displayConditions", trackingData: TRACKING_DATA }),
8015
- /* @__PURE__ */ React114.createElement(import_ui98.Tooltip, { title: ARIA_LABEL, placement: "top" }, /* @__PURE__ */ React114.createElement(
8016
- import_ui98.IconButton,
8101
+ /* @__PURE__ */ React116.createElement(PromotionTrigger, { ref: triggerRef, promotionKey: "displayConditions", trackingData: TRACKING_DATA }),
8102
+ /* @__PURE__ */ React116.createElement(import_ui100.Tooltip, { title: ARIA_LABEL, placement: "top" }, /* @__PURE__ */ React116.createElement(
8103
+ import_ui100.IconButton,
8017
8104
  {
8018
8105
  size: "tiny",
8019
8106
  "aria-label": ARIA_LABEL,
@@ -8025,23 +8112,23 @@ var DisplayConditionsControl = createControl(() => {
8025
8112
  borderRadius: 1
8026
8113
  }
8027
8114
  },
8028
- /* @__PURE__ */ React114.createElement(import_icons36.SitemapIcon, { fontSize: "tiny", color: "disabled" })
8115
+ /* @__PURE__ */ React116.createElement(import_icons36.SitemapIcon, { fontSize: "tiny", color: "disabled" })
8029
8116
  ))
8030
8117
  );
8031
8118
  });
8032
8119
 
8033
8120
  // src/components/promotions/attributes-control.tsx
8034
- var React115 = __toESM(require("react"));
8121
+ var React117 = __toESM(require("react"));
8035
8122
  var import_react69 = require("react");
8036
8123
  var import_icons37 = require("@elementor/icons");
8037
- var import_ui99 = require("@elementor/ui");
8038
- var import_i18n57 = require("@wordpress/i18n");
8039
- var ARIA_LABEL2 = (0, import_i18n57.__)("Attributes", "elementor");
8124
+ var import_ui101 = require("@elementor/ui");
8125
+ var import_i18n58 = require("@wordpress/i18n");
8126
+ var ARIA_LABEL2 = (0, import_i18n58.__)("Attributes", "elementor");
8040
8127
  var TRACKING_DATA2 = { target_name: "attributes", location_l2: "general" };
8041
8128
  var AttributesControl = createControl(() => {
8042
8129
  const triggerRef = (0, import_react69.useRef)(null);
8043
- return /* @__PURE__ */ React115.createElement(
8044
- import_ui99.Stack,
8130
+ return /* @__PURE__ */ React117.createElement(
8131
+ import_ui101.Stack,
8045
8132
  {
8046
8133
  direction: "row",
8047
8134
  spacing: 2,
@@ -8050,8 +8137,8 @@ var AttributesControl = createControl(() => {
8050
8137
  alignItems: "center"
8051
8138
  }
8052
8139
  },
8053
- /* @__PURE__ */ React115.createElement(PromotionTrigger, { ref: triggerRef, promotionKey: "attributes", trackingData: TRACKING_DATA2 }),
8054
- /* @__PURE__ */ React115.createElement(import_ui99.Tooltip, { title: ARIA_LABEL2, placement: "top" }, /* @__PURE__ */ React115.createElement(
8140
+ /* @__PURE__ */ React117.createElement(PromotionTrigger, { ref: triggerRef, promotionKey: "attributes", trackingData: TRACKING_DATA2 }),
8141
+ /* @__PURE__ */ React117.createElement(import_ui101.Tooltip, { title: ARIA_LABEL2, placement: "top" }, /* @__PURE__ */ React117.createElement(
8055
8142
  import_icons37.PlusIcon,
8056
8143
  {
8057
8144
  "aria-label": ARIA_LABEL2,
@@ -8065,21 +8152,21 @@ var AttributesControl = createControl(() => {
8065
8152
  });
8066
8153
 
8067
8154
  // src/components/icon-buttons/clear-icon-button.tsx
8068
- var React116 = __toESM(require("react"));
8155
+ var React118 = __toESM(require("react"));
8069
8156
  var import_icons38 = require("@elementor/icons");
8070
- var import_ui100 = require("@elementor/ui");
8071
- var CustomIconButton = (0, import_ui100.styled)(import_ui100.IconButton)(({ theme }) => ({
8157
+ var import_ui102 = require("@elementor/ui");
8158
+ var CustomIconButton = (0, import_ui102.styled)(import_ui102.IconButton)(({ theme }) => ({
8072
8159
  width: theme.spacing(2.5),
8073
8160
  height: theme.spacing(2.5)
8074
8161
  }));
8075
- var ClearIconButton = ({ tooltipText, onClick, disabled, size = "tiny" }) => /* @__PURE__ */ React116.createElement(import_ui100.Tooltip, { title: tooltipText, placement: "top", disableInteractive: true }, /* @__PURE__ */ React116.createElement(CustomIconButton, { "aria-label": tooltipText, size, onClick, disabled }, /* @__PURE__ */ React116.createElement(import_icons38.BrushBigIcon, { fontSize: size })));
8162
+ var ClearIconButton = ({ tooltipText, onClick, disabled, size = "tiny" }) => /* @__PURE__ */ React118.createElement(import_ui102.Tooltip, { title: tooltipText, placement: "top", disableInteractive: true }, /* @__PURE__ */ React118.createElement(CustomIconButton, { "aria-label": tooltipText, size, onClick, disabled }, /* @__PURE__ */ React118.createElement(import_icons38.BrushBigIcon, { fontSize: size })));
8076
8163
 
8077
8164
  // src/components/repeater/repeater.tsx
8078
- var React117 = __toESM(require("react"));
8165
+ var React119 = __toESM(require("react"));
8079
8166
  var import_react70 = require("react");
8080
8167
  var import_icons39 = require("@elementor/icons");
8081
- var import_ui101 = require("@elementor/ui");
8082
- var import_i18n58 = require("@wordpress/i18n");
8168
+ var import_ui103 = require("@elementor/ui");
8169
+ var import_i18n59 = require("@wordpress/i18n");
8083
8170
  var SIZE11 = "tiny";
8084
8171
  var EMPTY_OPEN_ITEM2 = -1;
8085
8172
  var Repeater3 = ({
@@ -8160,8 +8247,8 @@ var Repeater3 = ({
8160
8247
  };
8161
8248
  const isButtonDisabled = disabled || disableAddItemButton;
8162
8249
  const shouldShowInfotip = isButtonDisabled && addButtonInfotipContent;
8163
- const addButton = /* @__PURE__ */ React117.createElement(
8164
- import_ui101.IconButton,
8250
+ const addButton = /* @__PURE__ */ React119.createElement(
8251
+ import_ui103.IconButton,
8165
8252
  {
8166
8253
  size: SIZE11,
8167
8254
  sx: {
@@ -8169,32 +8256,32 @@ var Repeater3 = ({
8169
8256
  },
8170
8257
  disabled: isButtonDisabled,
8171
8258
  onClick: addRepeaterItem,
8172
- "aria-label": (0, import_i18n58.__)("Add item", "elementor")
8259
+ "aria-label": (0, import_i18n59.__)("Add item", "elementor")
8173
8260
  },
8174
- /* @__PURE__ */ React117.createElement(import_icons39.PlusIcon, { fontSize: SIZE11 })
8261
+ /* @__PURE__ */ React119.createElement(import_icons39.PlusIcon, { fontSize: SIZE11 })
8175
8262
  );
8176
- return /* @__PURE__ */ React117.createElement(SectionContent, { gap: 2 }, /* @__PURE__ */ React117.createElement(RepeaterHeader, { label, adornment: ControlAdornments }, shouldShowInfotip ? /* @__PURE__ */ React117.createElement(
8177
- import_ui101.Infotip,
8263
+ return /* @__PURE__ */ React119.createElement(SectionContent, { gap: 2 }, /* @__PURE__ */ React119.createElement(RepeaterHeader, { label, adornment: ControlAdornments }, shouldShowInfotip ? /* @__PURE__ */ React119.createElement(
8264
+ import_ui103.Infotip,
8178
8265
  {
8179
8266
  placement: "right",
8180
8267
  content: addButtonInfotipContent,
8181
8268
  color: "secondary",
8182
8269
  slotProps: { popper: { sx: { width: 300 } } }
8183
8270
  },
8184
- /* @__PURE__ */ React117.createElement(import_ui101.Box, { sx: { ...isButtonDisabled ? { cursor: "not-allowed" } : {} } }, addButton)
8185
- ) : addButton), 0 < uniqueKeys.length && /* @__PURE__ */ React117.createElement(SortableProvider, { value: uniqueKeys, onChange: onChangeOrder }, uniqueKeys.map((key) => {
8271
+ /* @__PURE__ */ React119.createElement(import_ui103.Box, { sx: { ...isButtonDisabled ? { cursor: "not-allowed" } : {} } }, addButton)
8272
+ ) : addButton), 0 < uniqueKeys.length && /* @__PURE__ */ React119.createElement(SortableProvider, { value: uniqueKeys, onChange: onChangeOrder }, uniqueKeys.map((key) => {
8186
8273
  const index = uniqueKeys.indexOf(key);
8187
8274
  const value = items2[index];
8188
8275
  if (!value) {
8189
8276
  return null;
8190
8277
  }
8191
- return /* @__PURE__ */ React117.createElement(SortableItem, { id: key, key: `sortable-${key}`, disabled: !isSortable }, /* @__PURE__ */ React117.createElement(
8278
+ return /* @__PURE__ */ React119.createElement(SortableItem, { id: key, key: `sortable-${key}`, disabled: !isSortable }, /* @__PURE__ */ React119.createElement(
8192
8279
  RepeaterItem,
8193
8280
  {
8194
8281
  disabled,
8195
8282
  propDisabled: value?.disabled,
8196
- label: /* @__PURE__ */ React117.createElement(RepeaterItemLabelSlot, { value }, /* @__PURE__ */ React117.createElement(itemSettings.Label, { value, index })),
8197
- startIcon: /* @__PURE__ */ React117.createElement(RepeaterItemIconSlot, { value }, /* @__PURE__ */ React117.createElement(itemSettings.Icon, { value })),
8283
+ label: /* @__PURE__ */ React119.createElement(RepeaterItemLabelSlot, { value }, /* @__PURE__ */ React119.createElement(itemSettings.Label, { value, index })),
8284
+ startIcon: /* @__PURE__ */ React119.createElement(RepeaterItemIconSlot, { value }, /* @__PURE__ */ React119.createElement(itemSettings.Icon, { value })),
8198
8285
  removeItem: () => removeRepeaterItem(index),
8199
8286
  duplicateItem: () => duplicateRepeaterItem(index),
8200
8287
  toggleDisableItem: () => toggleDisableRepeaterItem(index),
@@ -8208,7 +8295,7 @@ var Repeater3 = ({
8208
8295
  actions: itemSettings.actions,
8209
8296
  value
8210
8297
  },
8211
- (props) => /* @__PURE__ */ React117.createElement(
8298
+ (props) => /* @__PURE__ */ React119.createElement(
8212
8299
  itemSettings.Content,
8213
8300
  {
8214
8301
  ...props,
@@ -8248,18 +8335,18 @@ var RepeaterItem = ({
8248
8335
  },
8249
8336
  wrappedOnPopoverClose
8250
8337
  );
8251
- const triggerProps = (0, import_ui101.bindTrigger)(popoverState);
8338
+ const triggerProps = (0, import_ui103.bindTrigger)(popoverState);
8252
8339
  usePopoverDismiss({ isOpen: popoverState.isOpen, onClose: popoverProps.onClose });
8253
- const duplicateLabel = (0, import_i18n58.__)("Duplicate", "elementor");
8254
- const toggleLabel = propDisabled ? (0, import_i18n58.__)("Show", "elementor") : (0, import_i18n58.__)("Hide", "elementor");
8255
- const removeLabel = (0, import_i18n58.__)("Remove", "elementor");
8256
- return /* @__PURE__ */ React117.createElement(import_ui101.Box, { sx: { display: "contents" } }, /* @__PURE__ */ React117.createElement(
8340
+ const duplicateLabel = (0, import_i18n59.__)("Duplicate", "elementor");
8341
+ const toggleLabel = propDisabled ? (0, import_i18n59.__)("Show", "elementor") : (0, import_i18n59.__)("Hide", "elementor");
8342
+ const removeLabel = (0, import_i18n59.__)("Remove", "elementor");
8343
+ return /* @__PURE__ */ React119.createElement(import_ui103.Box, { sx: { display: "contents" } }, /* @__PURE__ */ React119.createElement(
8257
8344
  RepeaterTag,
8258
8345
  {
8259
8346
  disabled,
8260
8347
  label,
8261
8348
  ref: setRef,
8262
- "aria-label": (0, import_i18n58.__)("Open item", "elementor"),
8349
+ "aria-label": (0, import_i18n59.__)("Open item", "elementor"),
8263
8350
  ...triggerProps,
8264
8351
  onClick: (e) => {
8265
8352
  triggerProps.onClick(e);
@@ -8268,14 +8355,14 @@ var RepeaterItem = ({
8268
8355
  }
8269
8356
  },
8270
8357
  startIcon,
8271
- actions: /* @__PURE__ */ React117.createElement(React117.Fragment, null, showDuplicate && /* @__PURE__ */ React117.createElement(import_ui101.Tooltip, { title: duplicateLabel, placement: "top" }, /* @__PURE__ */ React117.createElement(import_ui101.IconButton, { size: SIZE11, onClick: duplicateItem, "aria-label": duplicateLabel }, /* @__PURE__ */ React117.createElement(import_icons39.CopyIcon, { fontSize: SIZE11 }))), showToggle && /* @__PURE__ */ React117.createElement(import_ui101.Tooltip, { title: toggleLabel, placement: "top" }, /* @__PURE__ */ React117.createElement(import_ui101.IconButton, { size: SIZE11, onClick: toggleDisableItem, "aria-label": toggleLabel }, propDisabled ? /* @__PURE__ */ React117.createElement(import_icons39.EyeOffIcon, { fontSize: SIZE11 }) : /* @__PURE__ */ React117.createElement(import_icons39.EyeIcon, { fontSize: SIZE11 }))), actions?.(value), showRemove && /* @__PURE__ */ React117.createElement(import_ui101.Tooltip, { title: removeLabel, placement: "top" }, /* @__PURE__ */ React117.createElement(import_ui101.IconButton, { size: SIZE11, onClick: removeItem, "aria-label": removeLabel }, /* @__PURE__ */ React117.createElement(import_icons39.XIcon, { fontSize: SIZE11 }))))
8358
+ actions: /* @__PURE__ */ React119.createElement(React119.Fragment, null, showDuplicate && /* @__PURE__ */ React119.createElement(import_ui103.Tooltip, { title: duplicateLabel, placement: "top" }, /* @__PURE__ */ React119.createElement(import_ui103.IconButton, { size: SIZE11, onClick: duplicateItem, "aria-label": duplicateLabel }, /* @__PURE__ */ React119.createElement(import_icons39.CopyIcon, { fontSize: SIZE11 }))), showToggle && /* @__PURE__ */ React119.createElement(import_ui103.Tooltip, { title: toggleLabel, placement: "top" }, /* @__PURE__ */ React119.createElement(import_ui103.IconButton, { size: SIZE11, onClick: toggleDisableItem, "aria-label": toggleLabel }, propDisabled ? /* @__PURE__ */ React119.createElement(import_icons39.EyeOffIcon, { fontSize: SIZE11 }) : /* @__PURE__ */ React119.createElement(import_icons39.EyeIcon, { fontSize: SIZE11 }))), actions?.(value), showRemove && /* @__PURE__ */ React119.createElement(import_ui103.Tooltip, { title: removeLabel, placement: "top" }, /* @__PURE__ */ React119.createElement(import_ui103.IconButton, { size: SIZE11, onClick: removeItem, "aria-label": removeLabel }, /* @__PURE__ */ React119.createElement(import_icons39.XIcon, { fontSize: SIZE11 }))))
8272
8359
  }
8273
- ), /* @__PURE__ */ React117.createElement(RepeaterPopover, { width: ref?.getBoundingClientRect().width, ...popoverProps, anchorEl: ref }, /* @__PURE__ */ React117.createElement(import_ui101.Box, null, children({ anchorEl: ref }))));
8360
+ ), /* @__PURE__ */ React119.createElement(RepeaterPopover, { width: ref?.getBoundingClientRect().width, ...popoverProps, anchorEl: ref }, /* @__PURE__ */ React119.createElement(import_ui103.Box, null, children({ anchorEl: ref }))));
8274
8361
  };
8275
8362
  var usePopover = (openOnMount, onOpen, onPopoverClose) => {
8276
8363
  const [ref, setRef] = (0, import_react70.useState)(null);
8277
- const popoverState = (0, import_ui101.usePopupState)({ variant: "popover" });
8278
- const popoverProps = (0, import_ui101.bindPopover)(popoverState);
8364
+ const popoverState = (0, import_ui103.usePopupState)({ variant: "popover" });
8365
+ const popoverProps = (0, import_ui103.bindPopover)(popoverState);
8279
8366
  (0, import_react70.useEffect)(() => {
8280
8367
  if (openOnMount && ref) {
8281
8368
  popoverState.open(ref);
@@ -8295,20 +8382,20 @@ var usePopover = (openOnMount, onOpen, onPopoverClose) => {
8295
8382
  };
8296
8383
 
8297
8384
  // src/components/inline-editor-toolbar.tsx
8298
- var React119 = __toESM(require("react"));
8385
+ var React121 = __toESM(require("react"));
8299
8386
  var import_react72 = require("react");
8300
8387
  var import_editor_elements7 = require("@elementor/editor-elements");
8301
8388
  var import_icons41 = require("@elementor/icons");
8302
- var import_ui103 = require("@elementor/ui");
8389
+ var import_ui105 = require("@elementor/ui");
8303
8390
  var import_react73 = require("@tiptap/react");
8304
- var import_i18n60 = require("@wordpress/i18n");
8391
+ var import_i18n61 = require("@wordpress/i18n");
8305
8392
 
8306
8393
  // src/components/url-popover.tsx
8307
- var React118 = __toESM(require("react"));
8394
+ var React120 = __toESM(require("react"));
8308
8395
  var import_react71 = require("react");
8309
8396
  var import_icons40 = require("@elementor/icons");
8310
- var import_ui102 = require("@elementor/ui");
8311
- var import_i18n59 = require("@wordpress/i18n");
8397
+ var import_ui104 = require("@elementor/ui");
8398
+ var import_i18n60 = require("@wordpress/i18n");
8312
8399
  var UrlPopover = ({
8313
8400
  popupState,
8314
8401
  restoreValue,
@@ -8328,41 +8415,41 @@ var UrlPopover = ({
8328
8415
  restoreValue();
8329
8416
  popupState.close();
8330
8417
  };
8331
- return /* @__PURE__ */ React118.createElement(
8332
- import_ui102.Popover,
8418
+ return /* @__PURE__ */ React120.createElement(
8419
+ import_ui104.Popover,
8333
8420
  {
8334
8421
  slotProps: {
8335
8422
  paper: { sx: { borderRadius: "16px", width: anchorRef.current?.offsetWidth + "px", marginTop: -1 } }
8336
8423
  },
8337
- ...(0, import_ui102.bindPopover)(popupState),
8424
+ ...(0, import_ui104.bindPopover)(popupState),
8338
8425
  anchorOrigin: { vertical: "top", horizontal: "left" },
8339
8426
  transformOrigin: { vertical: "top", horizontal: "left" },
8340
8427
  onClose: handleClose
8341
8428
  },
8342
- /* @__PURE__ */ React118.createElement(import_ui102.Stack, { direction: "row", alignItems: "center", gap: 1, sx: { p: 1.5 } }, /* @__PURE__ */ React118.createElement(
8343
- import_ui102.TextField,
8429
+ /* @__PURE__ */ React120.createElement(import_ui104.Stack, { direction: "row", alignItems: "center", gap: 1, sx: { p: 1.5 } }, /* @__PURE__ */ React120.createElement(
8430
+ import_ui104.TextField,
8344
8431
  {
8345
8432
  value,
8346
8433
  onChange,
8347
8434
  size: "tiny",
8348
8435
  fullWidth: true,
8349
- placeholder: (0, import_i18n59.__)("Type a URL", "elementor"),
8436
+ placeholder: (0, import_i18n60.__)("Type a URL", "elementor"),
8350
8437
  inputProps: { ref: inputRef },
8351
8438
  color: "secondary",
8352
8439
  InputProps: { sx: { borderRadius: "8px" } },
8353
8440
  onKeyUp: (event) => event.key === "Enter" && handleClose()
8354
8441
  }
8355
- ), /* @__PURE__ */ React118.createElement(import_ui102.Tooltip, { title: (0, import_i18n59.__)("Open in a new tab", "elementor") }, /* @__PURE__ */ React118.createElement(
8356
- import_ui102.ToggleButton,
8442
+ ), /* @__PURE__ */ React120.createElement(import_ui104.Tooltip, { title: (0, import_i18n60.__)("Open in a new tab", "elementor") }, /* @__PURE__ */ React120.createElement(
8443
+ import_ui104.ToggleButton,
8357
8444
  {
8358
8445
  size: "tiny",
8359
8446
  value: "newTab",
8360
8447
  selected: openInNewTab,
8361
8448
  onClick: onToggleNewTab,
8362
- "aria-label": (0, import_i18n59.__)("Open in a new tab", "elementor"),
8449
+ "aria-label": (0, import_i18n60.__)("Open in a new tab", "elementor"),
8363
8450
  sx: { borderRadius: "8px" }
8364
8451
  },
8365
- /* @__PURE__ */ React118.createElement(import_icons40.ExternalLinkIcon, { fontSize: "tiny" })
8452
+ /* @__PURE__ */ React120.createElement(import_icons40.ExternalLinkIcon, { fontSize: "tiny" })
8366
8453
  )))
8367
8454
  );
8368
8455
  };
@@ -8372,7 +8459,7 @@ var InlineEditorToolbar = ({ editor, elementId, sx = {} }) => {
8372
8459
  const [urlValue, setUrlValue] = (0, import_react72.useState)("");
8373
8460
  const [openInNewTab, setOpenInNewTab] = (0, import_react72.useState)(false);
8374
8461
  const toolbarRef = (0, import_react72.useRef)(null);
8375
- const linkPopupState = (0, import_ui103.usePopupState)({ variant: "popover" });
8462
+ const linkPopupState = (0, import_ui105.usePopupState)({ variant: "popover" });
8376
8463
  const isElementClickable = elementId ? checkIfElementIsClickable(elementId) : false;
8377
8464
  const editorState = (0, import_react73.useEditorState)({
8378
8465
  editor,
@@ -8418,8 +8505,8 @@ var InlineEditorToolbar = ({ editor, elementId, sx = {} }) => {
8418
8505
  (0, import_react72.useEffect)(() => {
8419
8506
  editor?.commands?.focus();
8420
8507
  }, [editor]);
8421
- return /* @__PURE__ */ React119.createElement(
8422
- import_ui103.Box,
8508
+ return /* @__PURE__ */ React121.createElement(
8509
+ import_ui105.Box,
8423
8510
  {
8424
8511
  ref: toolbarRef,
8425
8512
  sx: {
@@ -8435,9 +8522,9 @@ var InlineEditorToolbar = ({ editor, elementId, sx = {} }) => {
8435
8522
  ...sx
8436
8523
  }
8437
8524
  },
8438
- /* @__PURE__ */ React119.createElement(import_ui103.Tooltip, { title: clearButton.label, placement: "top", sx: { borderRadius: "8px" } }, /* @__PURE__ */ React119.createElement(import_ui103.IconButton, { "aria-label": clearButton.label, onClick: () => clearButton.method(editor), size: "tiny" }, clearButton.icon)),
8439
- /* @__PURE__ */ React119.createElement(
8440
- import_ui103.ToggleButtonGroup,
8525
+ /* @__PURE__ */ React121.createElement(import_ui105.Tooltip, { title: clearButton.label, placement: "top", sx: { borderRadius: "8px" } }, /* @__PURE__ */ React121.createElement(import_ui105.IconButton, { "aria-label": clearButton.label, onClick: () => clearButton.method(editor), size: "tiny" }, clearButton.icon)),
8526
+ /* @__PURE__ */ React121.createElement(
8527
+ import_ui105.ToggleButtonGroup,
8441
8528
  {
8442
8529
  value: editorState,
8443
8530
  size: "tiny",
@@ -8445,7 +8532,7 @@ var InlineEditorToolbar = ({ editor, elementId, sx = {} }) => {
8445
8532
  display: "flex",
8446
8533
  gap: 0.5,
8447
8534
  border: "none",
8448
- [`& .${import_ui103.toggleButtonGroupClasses.firstButton}, & .${import_ui103.toggleButtonGroupClasses.middleButton}, & .${import_ui103.toggleButtonGroupClasses.lastButton}`]: {
8535
+ [`& .${import_ui105.toggleButtonGroupClasses.firstButton}, & .${import_ui105.toggleButtonGroupClasses.middleButton}, & .${import_ui105.toggleButtonGroupClasses.lastButton}`]: {
8449
8536
  borderRadius: "8px",
8450
8537
  border: "none",
8451
8538
  marginLeft: 0,
@@ -8458,8 +8545,8 @@ var InlineEditorToolbar = ({ editor, elementId, sx = {} }) => {
8458
8545
  }
8459
8546
  }
8460
8547
  },
8461
- formatButtonsList.map((button) => /* @__PURE__ */ React119.createElement(import_ui103.Tooltip, { title: button.label, key: button.action, placement: "top" }, /* @__PURE__ */ React119.createElement(
8462
- import_ui103.ToggleButton,
8548
+ formatButtonsList.map((button) => /* @__PURE__ */ React121.createElement(import_ui105.Tooltip, { title: button.label, key: button.action, placement: "top" }, /* @__PURE__ */ React121.createElement(
8549
+ import_ui105.ToggleButton,
8463
8550
  {
8464
8551
  value: button.action,
8465
8552
  "aria-label": button.label,
@@ -8476,7 +8563,7 @@ var InlineEditorToolbar = ({ editor, elementId, sx = {} }) => {
8476
8563
  button.icon
8477
8564
  )))
8478
8565
  ),
8479
- /* @__PURE__ */ React119.createElement(
8566
+ /* @__PURE__ */ React121.createElement(
8480
8567
  UrlPopover,
8481
8568
  {
8482
8569
  popupState: linkPopupState,
@@ -8499,64 +8586,64 @@ var checkIfElementIsClickable = (elementId) => {
8499
8586
  };
8500
8587
  var toolbarButtons = {
8501
8588
  clear: {
8502
- label: (0, import_i18n60.__)("Clear", "elementor"),
8503
- icon: /* @__PURE__ */ React119.createElement(import_icons41.MinusIcon, { fontSize: "tiny" }),
8589
+ label: (0, import_i18n61.__)("Clear", "elementor"),
8590
+ icon: /* @__PURE__ */ React121.createElement(import_icons41.MinusIcon, { fontSize: "tiny" }),
8504
8591
  action: "clear",
8505
8592
  method: (editor) => {
8506
8593
  editor.chain().focus().clearNodes().unsetAllMarks().run();
8507
8594
  }
8508
8595
  },
8509
8596
  bold: {
8510
- label: (0, import_i18n60.__)("Bold", "elementor"),
8511
- icon: /* @__PURE__ */ React119.createElement(import_icons41.BoldIcon, { fontSize: "tiny" }),
8597
+ label: (0, import_i18n61.__)("Bold", "elementor"),
8598
+ icon: /* @__PURE__ */ React121.createElement(import_icons41.BoldIcon, { fontSize: "tiny" }),
8512
8599
  action: "bold",
8513
8600
  method: (editor) => {
8514
8601
  editor.chain().focus().toggleBold().run();
8515
8602
  }
8516
8603
  },
8517
8604
  italic: {
8518
- label: (0, import_i18n60.__)("Italic", "elementor"),
8519
- icon: /* @__PURE__ */ React119.createElement(import_icons41.ItalicIcon, { fontSize: "tiny" }),
8605
+ label: (0, import_i18n61.__)("Italic", "elementor"),
8606
+ icon: /* @__PURE__ */ React121.createElement(import_icons41.ItalicIcon, { fontSize: "tiny" }),
8520
8607
  action: "italic",
8521
8608
  method: (editor) => {
8522
8609
  editor.chain().focus().toggleItalic().run();
8523
8610
  }
8524
8611
  },
8525
8612
  underline: {
8526
- label: (0, import_i18n60.__)("Underline", "elementor"),
8527
- icon: /* @__PURE__ */ React119.createElement(import_icons41.UnderlineIcon, { fontSize: "tiny" }),
8613
+ label: (0, import_i18n61.__)("Underline", "elementor"),
8614
+ icon: /* @__PURE__ */ React121.createElement(import_icons41.UnderlineIcon, { fontSize: "tiny" }),
8528
8615
  action: "underline",
8529
8616
  method: (editor) => {
8530
8617
  editor.chain().focus().toggleUnderline().run();
8531
8618
  }
8532
8619
  },
8533
8620
  strike: {
8534
- label: (0, import_i18n60.__)("Strikethrough", "elementor"),
8535
- icon: /* @__PURE__ */ React119.createElement(import_icons41.StrikethroughIcon, { fontSize: "tiny" }),
8621
+ label: (0, import_i18n61.__)("Strikethrough", "elementor"),
8622
+ icon: /* @__PURE__ */ React121.createElement(import_icons41.StrikethroughIcon, { fontSize: "tiny" }),
8536
8623
  action: "strike",
8537
8624
  method: (editor) => {
8538
8625
  editor.chain().focus().toggleStrike().run();
8539
8626
  }
8540
8627
  },
8541
8628
  superscript: {
8542
- label: (0, import_i18n60.__)("Superscript", "elementor"),
8543
- icon: /* @__PURE__ */ React119.createElement(import_icons41.SuperscriptIcon, { fontSize: "tiny" }),
8629
+ label: (0, import_i18n61.__)("Superscript", "elementor"),
8630
+ icon: /* @__PURE__ */ React121.createElement(import_icons41.SuperscriptIcon, { fontSize: "tiny" }),
8544
8631
  action: "superscript",
8545
8632
  method: (editor) => {
8546
8633
  editor.chain().focus().toggleSuperscript().run();
8547
8634
  }
8548
8635
  },
8549
8636
  subscript: {
8550
- label: (0, import_i18n60.__)("Subscript", "elementor"),
8551
- icon: /* @__PURE__ */ React119.createElement(import_icons41.SubscriptIcon, { fontSize: "tiny" }),
8637
+ label: (0, import_i18n61.__)("Subscript", "elementor"),
8638
+ icon: /* @__PURE__ */ React121.createElement(import_icons41.SubscriptIcon, { fontSize: "tiny" }),
8552
8639
  action: "subscript",
8553
8640
  method: (editor) => {
8554
8641
  editor.chain().focus().toggleSubscript().run();
8555
8642
  }
8556
8643
  },
8557
8644
  link: {
8558
- label: (0, import_i18n60.__)("Link", "elementor"),
8559
- icon: /* @__PURE__ */ React119.createElement(import_icons41.LinkIcon, { fontSize: "tiny" }),
8645
+ label: (0, import_i18n61.__)("Link", "elementor"),
8646
+ icon: /* @__PURE__ */ React121.createElement(import_icons41.LinkIcon, { fontSize: "tiny" }),
8560
8647
  action: "link",
8561
8648
  method: null
8562
8649
  }
@@ -8565,8 +8652,8 @@ var { clear: clearButton, ...formatButtons } = toolbarButtons;
8565
8652
  var possibleFormats = Object.keys(formatButtons);
8566
8653
 
8567
8654
  // src/components/size/unstable-size-field.tsx
8568
- var React122 = __toESM(require("react"));
8569
- var import_ui105 = require("@elementor/ui");
8655
+ var React124 = __toESM(require("react"));
8656
+ var import_ui107 = require("@elementor/ui");
8570
8657
 
8571
8658
  // src/hooks/use-size-value.ts
8572
8659
  var DEFAULT_UNIT2 = "px";
@@ -8608,17 +8695,17 @@ var differsFromExternal = (newState, externalState) => {
8608
8695
  };
8609
8696
 
8610
8697
  // src/components/size/unit-select.tsx
8611
- var React120 = __toESM(require("react"));
8698
+ var React122 = __toESM(require("react"));
8612
8699
  var import_react74 = require("react");
8613
8700
  var import_editor_ui18 = require("@elementor/editor-ui");
8614
- var import_ui104 = require("@elementor/ui");
8701
+ var import_ui106 = require("@elementor/ui");
8615
8702
  var menuItemContentStyles2 = {
8616
8703
  display: "flex",
8617
8704
  flexDirection: "column",
8618
8705
  justifyContent: "center"
8619
8706
  };
8620
8707
  var UnitSelect = ({ value, showPrimaryColor, onClick, options }) => {
8621
- const popupState = (0, import_ui104.usePopupState)({
8708
+ const popupState = (0, import_ui106.usePopupState)({
8622
8709
  variant: "popover",
8623
8710
  popupId: (0, import_react74.useId)()
8624
8711
  });
@@ -8626,7 +8713,7 @@ var UnitSelect = ({ value, showPrimaryColor, onClick, options }) => {
8626
8713
  onClick(options[index]);
8627
8714
  popupState.close();
8628
8715
  };
8629
- return /* @__PURE__ */ React120.createElement(React120.Fragment, null, /* @__PURE__ */ React120.createElement(StyledButton3, { isPrimaryColor: showPrimaryColor, size: "small", ...(0, import_ui104.bindTrigger)(popupState) }, value), /* @__PURE__ */ React120.createElement(import_ui104.Menu, { MenuListProps: { dense: true }, ...(0, import_ui104.bindMenu)(popupState) }, options.map((option, index) => /* @__PURE__ */ React120.createElement(
8716
+ return /* @__PURE__ */ React122.createElement(React122.Fragment, null, /* @__PURE__ */ React122.createElement(StyledButton3, { isPrimaryColor: showPrimaryColor, size: "small", ...(0, import_ui106.bindTrigger)(popupState) }, value), /* @__PURE__ */ React122.createElement(import_ui106.Menu, { MenuListProps: { dense: true }, ...(0, import_ui106.bindMenu)(popupState) }, options.map((option, index) => /* @__PURE__ */ React122.createElement(
8630
8717
  import_editor_ui18.MenuListItem,
8631
8718
  {
8632
8719
  key: option,
@@ -8645,7 +8732,7 @@ var UnitSelect = ({ value, showPrimaryColor, onClick, options }) => {
8645
8732
  option.toUpperCase()
8646
8733
  ))));
8647
8734
  };
8648
- var StyledButton3 = (0, import_ui104.styled)(import_ui104.Button, {
8735
+ var StyledButton3 = (0, import_ui106.styled)(import_ui106.Button, {
8649
8736
  shouldForwardProp: (prop) => prop !== "isPrimaryColor"
8650
8737
  })(({ isPrimaryColor, theme }) => ({
8651
8738
  color: isPrimaryColor ? theme.palette.text.primary : theme.palette.text.tertiary,
@@ -8655,11 +8742,11 @@ var StyledButton3 = (0, import_ui104.styled)(import_ui104.Button, {
8655
8742
  }));
8656
8743
 
8657
8744
  // src/components/size/unstable-size-input.tsx
8658
- var React121 = __toESM(require("react"));
8745
+ var React123 = __toESM(require("react"));
8659
8746
  var import_react75 = require("react");
8660
8747
  var UnstableSizeInput = (0, import_react75.forwardRef)(
8661
8748
  ({ type, value, onChange, onKeyDown, onKeyUp, InputProps, onBlur, focused, disabled }, ref) => {
8662
- return /* @__PURE__ */ React121.createElement(
8749
+ return /* @__PURE__ */ React123.createElement(
8663
8750
  NumberInput,
8664
8751
  {
8665
8752
  ref,
@@ -8697,7 +8784,7 @@ var UnstableSizeField = ({
8697
8784
  const shouldHighlightUnit2 = () => {
8698
8785
  return hasValue(size);
8699
8786
  };
8700
- return /* @__PURE__ */ React122.createElement(
8787
+ return /* @__PURE__ */ React124.createElement(
8701
8788
  UnstableSizeInput,
8702
8789
  {
8703
8790
  type: "number",
@@ -8706,8 +8793,8 @@ var UnstableSizeField = ({
8706
8793
  onChange: (event) => setSize(event.target.value),
8707
8794
  InputProps: {
8708
8795
  ...InputProps,
8709
- startAdornment: startIcon && /* @__PURE__ */ React122.createElement(import_ui105.InputAdornment, { position: "start" }, startIcon),
8710
- endAdornment: /* @__PURE__ */ React122.createElement(import_ui105.InputAdornment, { position: "end" }, /* @__PURE__ */ React122.createElement(
8796
+ startAdornment: startIcon && /* @__PURE__ */ React124.createElement(import_ui107.InputAdornment, { position: "start" }, startIcon),
8797
+ endAdornment: /* @__PURE__ */ React124.createElement(import_ui107.InputAdornment, { position: "end" }, /* @__PURE__ */ React124.createElement(
8711
8798
  UnitSelect,
8712
8799
  {
8713
8800
  options: units2,
@@ -8811,6 +8898,8 @@ var useFontFamilies = () => {
8811
8898
  SwitchControl,
8812
8899
  TextAreaControl,
8813
8900
  TextControl,
8901
+ TimeRangeControl,
8902
+ TimeStringControl,
8814
8903
  ToggleButtonGroupUi,
8815
8904
  ToggleControl,
8816
8905
  TransformRepeaterControl,