@elementor/editor-site-navigation 4.5.0-1236 → 4.5.0-1238

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.mjs CHANGED
@@ -30,12 +30,12 @@ import { isSidebarEnabled as isSidebarEnabled2, sidebarTools } from "@elementor/
30
30
  import { createPanel } from "@elementor/editor-panels";
31
31
 
32
32
  // src/components/panel/shell.tsx
33
- import * as React39 from "react";
34
- import { useState as useState10 } from "react";
33
+ import * as React42 from "react";
34
+ import { useState as useState11 } from "react";
35
35
  import { Panel, PanelBody, PanelHeader, PanelHeaderTitle } from "@elementor/editor-panels";
36
36
  import { isSidebarEnabled } from "@elementor/editor-sidebar";
37
- import { Divider as Divider7, Stack as Stack9 } from "@elementor/ui";
38
- import { __ as __28 } from "@wordpress/i18n";
37
+ import { Divider as Divider8, Stack as Stack10 } from "@elementor/ui";
38
+ import { __ as __29 } from "@wordpress/i18n";
39
39
 
40
40
  // src/contexts/content-panel-coordinator.tsx
41
41
  import * as React from "react";
@@ -77,6 +77,10 @@ function useContentPanelCoordinator() {
77
77
  return context;
78
78
  }
79
79
 
80
+ // src/contexts/site-content-panel-sections-filter.tsx
81
+ import * as React2 from "react";
82
+ import { createContext as createContext2, useCallback as useCallback2, useContext as useContext2, useEffect, useMemo as useMemo3, useState } from "react";
83
+
80
84
  // src/hooks/use-accessible-panel-post-types.ts
81
85
  import { useMemo as useMemo2 } from "react";
82
86
 
@@ -264,6 +268,109 @@ function useAccessiblePanelPostTypes() {
264
268
  };
265
269
  }
266
270
 
271
+ // src/site-content-sections.ts
272
+ var registeredSections = /* @__PURE__ */ new Map();
273
+ var DEFAULT_SECTION_PRIORITY = 0;
274
+ function registerSiteContentSection(section) {
275
+ registeredSections.set(section.id, section);
276
+ }
277
+ function getSiteContentSections() {
278
+ return Array.from(registeredSections.values()).sort(
279
+ (first, second) => (first.priority ?? DEFAULT_SECTION_PRIORITY) - (second.priority ?? DEFAULT_SECTION_PRIORITY)
280
+ );
281
+ }
282
+ function resetSiteContentSections() {
283
+ registeredSections.clear();
284
+ }
285
+
286
+ // src/site-content-panel-sections.ts
287
+ var SITE_CONTENT_PANEL_SECTIONS_FILTER_POPOVER_WIDTH_PX = 280;
288
+ function getSiteContentPanelSectionDescriptors(accessiblePostTypes) {
289
+ const postTypeSections = accessiblePostTypes.map((slug) => ({
290
+ id: slug,
291
+ label: postTypesMap[slug].labels.plural_name
292
+ }));
293
+ const registeredSections2 = getSiteContentSections().map((section) => ({
294
+ id: section.id,
295
+ label: section.label ?? section.id
296
+ }));
297
+ return [...postTypeSections, ...registeredSections2];
298
+ }
299
+ function hasHiddenSiteContentPanelSections(hiddenSectionIds) {
300
+ return hiddenSectionIds.size > 0;
301
+ }
302
+
303
+ // src/contexts/site-content-panel-sections-filter.tsx
304
+ var SiteContentPanelSectionsFilterContext = createContext2(
305
+ null
306
+ );
307
+ function SiteContentPanelSectionsFilterProvider({ children }) {
308
+ const { accessiblePostTypes } = useAccessiblePanelPostTypes();
309
+ const descriptors = useMemo3(
310
+ () => getSiteContentPanelSectionDescriptors(accessiblePostTypes),
311
+ [accessiblePostTypes]
312
+ );
313
+ const [hiddenSectionIds, setHiddenSectionIds] = useState(() => /* @__PURE__ */ new Set());
314
+ useEffect(() => {
315
+ const validIds = new Set(descriptors.map((descriptor) => descriptor.id));
316
+ setHiddenSectionIds((current) => {
317
+ const nextHidden = new Set([...current].filter((id) => validIds.has(id)));
318
+ return nextHidden.size === current.size ? current : nextHidden;
319
+ });
320
+ }, [descriptors]);
321
+ const setSectionVisible = useCallback2(
322
+ (sectionId, visible) => {
323
+ setHiddenSectionIds((current) => {
324
+ if (visible) {
325
+ if (!current.has(sectionId)) {
326
+ return current;
327
+ }
328
+ const next2 = new Set(current);
329
+ next2.delete(sectionId);
330
+ return next2;
331
+ }
332
+ const visibleSectionCount = descriptors.length - current.size;
333
+ if (current.has(sectionId) || visibleSectionCount <= 1) {
334
+ return current;
335
+ }
336
+ const next = new Set(current);
337
+ next.add(sectionId);
338
+ return next;
339
+ });
340
+ },
341
+ [descriptors.length]
342
+ );
343
+ const isSectionVisible = useCallback2(
344
+ (sectionId) => !hiddenSectionIds.has(sectionId),
345
+ [hiddenSectionIds]
346
+ );
347
+ const clearHiddenSections = useCallback2(() => {
348
+ setHiddenSectionIds(() => /* @__PURE__ */ new Set());
349
+ }, []);
350
+ const value = useMemo3(
351
+ () => ({
352
+ clearHiddenSections,
353
+ descriptors,
354
+ hasHiddenSections: hasHiddenSiteContentPanelSections(hiddenSectionIds),
355
+ hiddenSectionIds,
356
+ isSectionVisible,
357
+ setSectionVisible,
358
+ shouldShowSectionsFilter: descriptors.length > 1
359
+ }),
360
+ [clearHiddenSections, descriptors, hiddenSectionIds, isSectionVisible, setSectionVisible]
361
+ );
362
+ return /* @__PURE__ */ React2.createElement(SiteContentPanelSectionsFilterContext.Provider, { value }, children);
363
+ }
364
+ function useSiteContentPanelSectionsFilter() {
365
+ const context = useContext2(SiteContentPanelSectionsFilterContext);
366
+ if (!context) {
367
+ throw new Error(
368
+ "useSiteContentPanelSectionsFilter() must be used within a SiteContentPanelSectionsFilterProvider"
369
+ );
370
+ }
371
+ return context;
372
+ }
373
+
267
374
  // src/components/panel/content-panel-chrome.ts
268
375
  var CONTENT_PANEL_INSET_SPACING = 2;
269
376
  var CONTENT_PANEL_LIST_ROW_GAP = 0.5;
@@ -359,7 +466,7 @@ var contentPanelListItemButtonSx = {
359
466
  };
360
467
 
361
468
  // src/components/panel/content-panel-header-add.tsx
362
- import * as React5 from "react";
469
+ import * as React6 from "react";
363
470
  import { PageTypeIcon as PageTypeIcon2, PostTypeIcon as PostTypeIcon2 } from "@elementor/icons";
364
471
  import { bindMenu, bindTrigger, ListItemIcon as ListItemIcon2, ListItemText as ListItemText2, Menu, MenuItem as MenuItem2, usePopupState } from "@elementor/ui";
365
472
  import { __ as __5 } from "@wordpress/i18n";
@@ -393,24 +500,24 @@ function resetSiteContentHeaderCreateItems() {
393
500
  }
394
501
 
395
502
  // src/components/panel/content-panel-add-icon-button.tsx
396
- import * as React2 from "react";
503
+ import * as React3 from "react";
397
504
  import { PlusIcon } from "@elementor/icons";
398
505
  import { IconButton } from "@elementor/ui";
399
506
  var CONTENT_PANEL_ADD_ICON_SIZE = "tiny";
400
507
  function ContentPanelAddIconButton(props) {
401
- return /* @__PURE__ */ React2.createElement(IconButton, { size: CONTENT_PANEL_ADD_ICON_SIZE, variant: "outlined", ...props }, /* @__PURE__ */ React2.createElement(PlusIcon, { fontSize: CONTENT_PANEL_ADD_ICON_SIZE }));
508
+ return /* @__PURE__ */ React3.createElement(IconButton, { size: CONTENT_PANEL_ADD_ICON_SIZE, variant: "outlined", ...props }, /* @__PURE__ */ React3.createElement(PlusIcon, { fontSize: CONTENT_PANEL_ADD_ICON_SIZE }));
402
509
  }
403
510
 
404
511
  // src/components/panel/popups/popup-header-create-menu-item.tsx
405
- import * as React4 from "react";
512
+ import * as React5 from "react";
406
513
  import { useRef as useRef2 } from "react";
407
514
  import { PopupTemplateIcon } from "@elementor/icons";
408
515
  import { Box as Box2, ListItemIcon, ListItemText, MenuItem } from "@elementor/ui";
409
516
  import { __ as __4 } from "@wordpress/i18n";
410
517
 
411
518
  // src/components/panel/popups/site-content-popups-promotion-chip.tsx
412
- import * as React3 from "react";
413
- import { forwardRef, useCallback as useCallback2, useImperativeHandle, useState } from "react";
519
+ import * as React4 from "react";
520
+ import { forwardRef, useCallback as useCallback3, useImperativeHandle, useState as useState2 } from "react";
414
521
  import { trackUpgradePromotionClick, trackViewPromotion } from "@elementor/editor-controls";
415
522
  import { PromotionChip, PromotionPopover, useCanvasClickHandler } from "@elementor/editor-ui";
416
523
  import { Box } from "@elementor/ui";
@@ -420,10 +527,10 @@ var TRACKING_DATA = {
420
527
  target_location: "widget_panel"
421
528
  };
422
529
  var SiteContentPopupsPromotionChip = forwardRef((_, ref) => {
423
- const [isOpen, setIsOpen] = useState(false);
530
+ const [isOpen, setIsOpen] = useState2(false);
424
531
  const upgradeUrl = env.popups?.upgrade_url ?? POPUP_SITE_CONTENT_UPGRADE_URL;
425
532
  useCanvasClickHandler(isOpen, () => setIsOpen(false));
426
- const toggle = useCallback2(() => {
533
+ const toggle = useCallback3(() => {
427
534
  setIsOpen((previous) => {
428
535
  if (!previous) {
429
536
  trackViewPromotion(TRACKING_DATA);
@@ -432,7 +539,7 @@ var SiteContentPopupsPromotionChip = forwardRef((_, ref) => {
432
539
  });
433
540
  }, []);
434
541
  useImperativeHandle(ref, () => ({ toggle }), [toggle]);
435
- return /* @__PURE__ */ React3.createElement(
542
+ return /* @__PURE__ */ React4.createElement(
436
543
  PromotionPopover,
437
544
  {
438
545
  open: isOpen,
@@ -446,7 +553,7 @@ var SiteContentPopupsPromotionChip = forwardRef((_, ref) => {
446
553
  },
447
554
  onCtaClick: () => trackUpgradePromotionClick(TRACKING_DATA)
448
555
  },
449
- /* @__PURE__ */ React3.createElement(
556
+ /* @__PURE__ */ React4.createElement(
450
557
  Box,
451
558
  {
452
559
  onClick: (event) => {
@@ -455,7 +562,7 @@ var SiteContentPopupsPromotionChip = forwardRef((_, ref) => {
455
562
  },
456
563
  sx: { cursor: "pointer", display: "inline-flex" }
457
564
  },
458
- /* @__PURE__ */ React3.createElement(PromotionChip, null)
565
+ /* @__PURE__ */ React4.createElement(PromotionChip, null)
459
566
  )
460
567
  );
461
568
  });
@@ -472,7 +579,7 @@ function PopupHeaderCreateMenuItem({ onSelect }) {
472
579
  }
473
580
  onSelect();
474
581
  };
475
- return /* @__PURE__ */ React4.createElement(MenuItem, { onClick: handleClick }, /* @__PURE__ */ React4.createElement(ListItemIcon, null, /* @__PURE__ */ React4.createElement(PopupTemplateIcon, { fontSize: "small", color: canCreate ? "action" : "disabled" })), /* @__PURE__ */ React4.createElement(
582
+ return /* @__PURE__ */ React5.createElement(MenuItem, { onClick: handleClick }, /* @__PURE__ */ React5.createElement(ListItemIcon, null, /* @__PURE__ */ React5.createElement(PopupTemplateIcon, { fontSize: "small", color: canCreate ? "action" : "disabled" })), /* @__PURE__ */ React5.createElement(
476
583
  ListItemText,
477
584
  {
478
585
  primary: label,
@@ -481,7 +588,7 @@ function PopupHeaderCreateMenuItem({ onSelect }) {
481
588
  color: canCreate ? "text.primary" : "text.disabled"
482
589
  }
483
590
  }
484
- ), !canCreate && /* @__PURE__ */ React4.createElement(Box2, { sx: { flexShrink: 0, ml: "auto", pl: 1 } }, /* @__PURE__ */ React4.createElement(SiteContentPopupsPromotionChip, { ref: promotionRef })));
591
+ ), !canCreate && /* @__PURE__ */ React5.createElement(Box2, { sx: { flexShrink: 0, ml: "auto", pl: 1 } }, /* @__PURE__ */ React5.createElement(SiteContentPopupsPromotionChip, { ref: promotionRef })));
485
592
  }
486
593
 
487
594
  // src/components/panel/content-panel-header-add.tsx
@@ -493,7 +600,7 @@ function HeaderAddMenuItem({ slug, onSelect }) {
493
600
  const canCreate = useCanCreate(slug);
494
601
  const Icon = typeIcons[slug];
495
602
  const singularName = postTypesMap[slug].labels.singular_name;
496
- return /* @__PURE__ */ React5.createElement(MenuItem2, { disabled: !canCreate, onClick: () => onSelect(slug) }, /* @__PURE__ */ React5.createElement(ListItemIcon2, null, /* @__PURE__ */ React5.createElement(Icon, { fontSize: "small" })), /* @__PURE__ */ React5.createElement(ListItemText2, { primary: singularName, primaryTypographyProps: { variant: "body2" } }));
603
+ return /* @__PURE__ */ React6.createElement(MenuItem2, { disabled: !canCreate, onClick: () => onSelect(slug) }, /* @__PURE__ */ React6.createElement(ListItemIcon2, null, /* @__PURE__ */ React6.createElement(Icon, { fontSize: "small" })), /* @__PURE__ */ React6.createElement(ListItemText2, { primary: singularName, primaryTypographyProps: { variant: "body2" } }));
497
604
  }
498
605
  function ContentPanelHeaderAdd() {
499
606
  const { requestCreate } = useContentPanelCoordinator();
@@ -518,14 +625,14 @@ function ContentPanelHeaderAdd() {
518
625
  requestCreate(POPUPS_SITE_CONTENT_SECTION_ID);
519
626
  });
520
627
  };
521
- return /* @__PURE__ */ React5.createElement(React5.Fragment, null, /* @__PURE__ */ React5.createElement(
628
+ return /* @__PURE__ */ React6.createElement(React6.Fragment, null, /* @__PURE__ */ React6.createElement(
522
629
  ContentPanelAddIconButton,
523
630
  {
524
631
  "aria-label": __5("Add new", "elementor"),
525
632
  ...buttonProps,
526
633
  disabled: !canAddAny
527
634
  }
528
- ), /* @__PURE__ */ React5.createElement(Menu, { ...menuProps }, accessibleSlugs.map((slug) => /* @__PURE__ */ React5.createElement(HeaderAddMenuItem, { key: slug, onSelect: handleSelectType, slug })), /* @__PURE__ */ React5.createElement(PopupHeaderCreateMenuItem, { onSelect: handleSelectPopup }), headerCreateItems.map((item) => /* @__PURE__ */ React5.createElement(React5.Fragment, { key: item.id }, item.renderMenuItem(() => {
635
+ ), /* @__PURE__ */ React6.createElement(Menu, { ...menuProps }, accessibleSlugs.map((slug) => /* @__PURE__ */ React6.createElement(HeaderAddMenuItem, { key: slug, onSelect: handleSelectType, slug })), /* @__PURE__ */ React6.createElement(PopupHeaderCreateMenuItem, { onSelect: handleSelectPopup }), headerCreateItems.map((item) => /* @__PURE__ */ React6.createElement(React6.Fragment, { key: item.id }, item.renderMenuItem(() => {
529
636
  popupState.close();
530
637
  requestAnimationFrame(() => {
531
638
  requestCreate(item.id);
@@ -533,11 +640,109 @@ function ContentPanelHeaderAdd() {
533
640
  })))));
534
641
  }
535
642
 
643
+ // src/components/panel/content-panel-sections-filter.tsx
644
+ import * as React9 from "react";
645
+ import { PopoverBody, PopoverHeader } from "@elementor/editor-ui";
646
+ import { FilterIcon } from "@elementor/icons";
647
+ import { bindPopover, bindToggle, Divider, Popover, ToggleButton, Tooltip as Tooltip2, usePopupState as usePopupState2 } from "@elementor/ui";
648
+ import { __ as __6 } from "@wordpress/i18n";
649
+
650
+ // src/components/panel/content-panel-clear-filters-button.tsx
651
+ import * as React7 from "react";
652
+ import { BrushBigIcon } from "@elementor/icons";
653
+ import { Box as Box3, IconButton as IconButton2, Tooltip } from "@elementor/ui";
654
+ function ContentPanelClearFiltersButton({ ariaLabel, onClear, sx, tooltipText }) {
655
+ return /* @__PURE__ */ React7.createElement(Tooltip, { disableInteractive: true, placement: "top", title: tooltipText }, /* @__PURE__ */ React7.createElement(Box3, null, /* @__PURE__ */ React7.createElement(IconButton2, { "aria-label": ariaLabel, onClick: onClear, size: "tiny", sx }, /* @__PURE__ */ React7.createElement(BrushBigIcon, { fontSize: "tiny" }))));
656
+ }
657
+
658
+ // src/components/panel/content-panel-sections-filter-list.tsx
659
+ import * as React8 from "react";
660
+ import { CheckIcon } from "@elementor/icons";
661
+ import { MenuItem as MenuItem3, MenuList, Stack, Typography } from "@elementor/ui";
662
+ var renderSectionMenuItemContent = (label, selected) => /* @__PURE__ */ React8.createElement(Stack, { alignItems: "center", direction: "row", gap: 1, width: "100%" }, /* @__PURE__ */ React8.createElement(Typography, { sx: { color: "text.secondary", flex: 1 }, variant: "caption" }, label), selected ? /* @__PURE__ */ React8.createElement(CheckIcon, { "aria-hidden": true, fontSize: "tiny" }) : null);
663
+ function ContentPanelSectionsFilterList() {
664
+ const { descriptors, isSectionVisible, setSectionVisible } = useSiteContentPanelSectionsFilter();
665
+ return /* @__PURE__ */ React8.createElement(MenuList, { dense: true }, descriptors.map((descriptor) => {
666
+ const selected = isSectionVisible(descriptor.id);
667
+ return /* @__PURE__ */ React8.createElement(
668
+ MenuItem3,
669
+ {
670
+ key: descriptor.id,
671
+ dense: true,
672
+ onClick: () => setSectionVisible(descriptor.id, !selected),
673
+ selected
674
+ },
675
+ renderSectionMenuItemContent(descriptor.label, selected)
676
+ );
677
+ }));
678
+ }
679
+
680
+ // src/components/panel/content-panel-sections-filter.tsx
681
+ function ContentPanelSectionsFilter() {
682
+ const { clearHiddenSections, hasHiddenSections, shouldShowSectionsFilter } = useSiteContentPanelSectionsFilter();
683
+ const popupState = usePopupState2({
684
+ variant: "popover",
685
+ disableAutoFocus: true
686
+ });
687
+ if (!shouldShowSectionsFilter) {
688
+ return null;
689
+ }
690
+ const filterLabel = __6("Content types", "elementor");
691
+ return /* @__PURE__ */ React9.createElement(React9.Fragment, null, /* @__PURE__ */ React9.createElement(Tooltip2, { placement: "top", title: filterLabel }, /* @__PURE__ */ React9.createElement(
692
+ ToggleButton,
693
+ {
694
+ "aria-label": filterLabel,
695
+ selected: popupState.isOpen || hasHiddenSections,
696
+ size: "tiny",
697
+ value: "content-types",
698
+ ...bindToggle(popupState)
699
+ },
700
+ /* @__PURE__ */ React9.createElement(FilterIcon, { fontSize: "tiny" })
701
+ )), /* @__PURE__ */ React9.createElement(
702
+ Popover,
703
+ {
704
+ anchorOrigin: {
705
+ horizontal: "right",
706
+ vertical: "top"
707
+ },
708
+ sx: {
709
+ maxWidth: `${SITE_CONTENT_PANEL_SECTIONS_FILTER_POPOVER_WIDTH_PX}px`
710
+ },
711
+ transformOrigin: {
712
+ horizontal: -21,
713
+ vertical: "top"
714
+ },
715
+ ...bindPopover(popupState)
716
+ },
717
+ /* @__PURE__ */ React9.createElement(
718
+ PopoverHeader,
719
+ {
720
+ actions: hasHiddenSections ? [
721
+ /* @__PURE__ */ React9.createElement(
722
+ ContentPanelClearFiltersButton,
723
+ {
724
+ ariaLabel: __6("Show all", "elementor"),
725
+ key: "show-all-content-types",
726
+ onClear: clearHiddenSections,
727
+ tooltipText: __6("Show all", "elementor")
728
+ }
729
+ )
730
+ ] : [],
731
+ icon: /* @__PURE__ */ React9.createElement(FilterIcon, { fontSize: "tiny" }),
732
+ onClose: popupState.close,
733
+ title: filterLabel
734
+ }
735
+ ),
736
+ /* @__PURE__ */ React9.createElement(Divider, { sx: { borderWidth: "1px 0 0 0" } }),
737
+ /* @__PURE__ */ React9.createElement(PopoverBody, { height: "auto", width: SITE_CONTENT_PANEL_SECTIONS_FILTER_POPOVER_WIDTH_PX }, /* @__PURE__ */ React9.createElement(ContentPanelSectionsFilterList, null))
738
+ ));
739
+ }
740
+
536
741
  // src/components/panel/error-snackbar.tsx
537
- import * as React6 from "react";
538
- import { Alert, Snackbar, Typography } from "@elementor/ui";
742
+ import * as React10 from "react";
743
+ import { Alert, Snackbar, Typography as Typography2 } from "@elementor/ui";
539
744
  var ErrorSnackbar = ({ open, onClose }) => {
540
- return /* @__PURE__ */ React6.createElement(
745
+ return /* @__PURE__ */ React10.createElement(
541
746
  Snackbar,
542
747
  {
543
748
  open,
@@ -547,8 +752,8 @@ var ErrorSnackbar = ({ open, onClose }) => {
547
752
  horizontal: "left"
548
753
  }
549
754
  },
550
- /* @__PURE__ */ React6.createElement(Alert, { onClose, severity: "error", sx: { width: "100%" } }, /* @__PURE__ */ React6.createElement(
551
- Typography,
755
+ /* @__PURE__ */ React10.createElement(Alert, { onClose, severity: "error", sx: { width: "100%" } }, /* @__PURE__ */ React10.createElement(
756
+ Typography2,
552
757
  {
553
758
  component: "span",
554
759
  sx: {
@@ -562,12 +767,12 @@ var ErrorSnackbar = ({ open, onClose }) => {
562
767
  var error_snackbar_default = ErrorSnackbar;
563
768
 
564
769
  // src/components/panel/shell-panel-body-content.tsx
565
- import * as React38 from "react";
566
- import { List as List2, Skeleton as Skeleton2, Stack as Stack8 } from "@elementor/ui";
770
+ import * as React41 from "react";
771
+ import { List as List2, Skeleton as Skeleton2, Stack as Stack9 } from "@elementor/ui";
567
772
 
568
773
  // src/contexts/post-list-context.tsx
569
- import * as React7 from "react";
570
- import { createContext as createContext2, useContext as useContext2, useState as useState2 } from "react";
774
+ import * as React11 from "react";
775
+ import { createContext as createContext3, useContext as useContext3, useState as useState3 } from "react";
571
776
  var defaultValues = {
572
777
  type: "page",
573
778
  editMode: { mode: "none", details: {} },
@@ -575,17 +780,17 @@ var defaultValues = {
575
780
  resetEditMode: () => null,
576
781
  setError: () => null
577
782
  };
578
- var PostListContext = createContext2(defaultValues);
783
+ var PostListContext = createContext3(defaultValues);
579
784
  var PostListContextProvider = ({
580
785
  type,
581
786
  setError,
582
787
  children
583
788
  }) => {
584
- const [editMode, setEditMode] = useState2(defaultValues.editMode);
789
+ const [editMode, setEditMode] = useState3(defaultValues.editMode);
585
790
  const resetEditMode = () => {
586
791
  setEditMode(defaultValues.editMode);
587
792
  };
588
- return /* @__PURE__ */ React7.createElement(
793
+ return /* @__PURE__ */ React11.createElement(
589
794
  PostListContext.Provider,
590
795
  {
591
796
  value: {
@@ -600,43 +805,28 @@ var PostListContextProvider = ({
600
805
  );
601
806
  };
602
807
  function usePostListContext() {
603
- const context = useContext2(PostListContext);
808
+ const context = useContext3(PostListContext);
604
809
  if (!context) {
605
810
  throw new Error("The `usePostListContext()` hook must be used within an `<PostListContextProvider />`");
606
811
  }
607
812
  return context;
608
813
  }
609
814
 
610
- // src/site-content-sections.ts
611
- var registeredSections = /* @__PURE__ */ new Map();
612
- var DEFAULT_SECTION_PRIORITY = 0;
613
- function registerSiteContentSection(section) {
614
- registeredSections.set(section.id, section);
615
- }
616
- function getSiteContentSections() {
617
- return Array.from(registeredSections.values()).sort(
618
- (first, second) => (first.priority ?? DEFAULT_SECTION_PRIORITY) - (second.priority ?? DEFAULT_SECTION_PRIORITY)
619
- );
620
- }
621
- function resetSiteContentSections() {
622
- registeredSections.clear();
623
- }
624
-
625
815
  // src/components/panel/posts-list/posts-collapsible-list.tsx
626
- import * as React36 from "react";
627
- import { useEffect as useEffect3, useMemo as useMemo5, useRef as useRef5, useState as useState9 } from "react";
628
- import { Box as Box11, Skeleton, Typography as Typography7 } from "@elementor/ui";
629
- import { __ as __26, sprintf as sprintf5 } from "@wordpress/i18n";
816
+ import * as React39 from "react";
817
+ import { useEffect as useEffect4, useMemo as useMemo6, useRef as useRef5, useState as useState10 } from "react";
818
+ import { Box as Box11, Skeleton, Typography as Typography8 } from "@elementor/ui";
819
+ import { __ as __27, sprintf as sprintf5 } from "@wordpress/i18n";
630
820
 
631
821
  // src/contexts/site-content-section-toolbar.tsx
632
- import * as React8 from "react";
633
- import { createContext as createContext3, useContext as useContext3, useMemo as useMemo3 } from "react";
822
+ import * as React12 from "react";
823
+ import { createContext as createContext4, useContext as useContext4, useMemo as useMemo4 } from "react";
634
824
 
635
825
  // src/hooks/use-site-content-section-list-controls.ts
636
- import { useCallback as useCallback3, useEffect, useState as useState3 } from "react";
826
+ import { useCallback as useCallback4, useEffect as useEffect2, useState as useState4 } from "react";
637
827
 
638
828
  // src/site-content-status-filter.ts
639
- import { __ as __6 } from "@wordpress/i18n";
829
+ import { __ as __7 } from "@wordpress/i18n";
640
830
  var SITE_CONTENT_SELECTABLE_STATUS_FILTERS = [
641
831
  "publish",
642
832
  "draft",
@@ -654,14 +844,14 @@ var EMPTY_SITE_CONTENT_STATUS_FILTERS = {
654
844
  trash: false
655
845
  };
656
846
  var filterLabels = {
657
- publish: __6("Published", "elementor"),
658
- draft: __6("Drafts", "elementor"),
659
- pending: __6("Pending", "elementor"),
660
- private: __6("Private", "elementor"),
661
- future: __6("Scheduled", "elementor"),
662
- trash: __6("Trash", "elementor")
847
+ publish: __7("Published", "elementor"),
848
+ draft: __7("Drafts", "elementor"),
849
+ pending: __7("Pending", "elementor"),
850
+ private: __7("Private", "elementor"),
851
+ future: __7("Scheduled", "elementor"),
852
+ trash: __7("Trash", "elementor")
663
853
  };
664
- var SITE_CONTENT_ALL_FILTER_LABEL = __6("All", "elementor");
854
+ var SITE_CONTENT_ALL_FILTER_LABEL = __7("All", "elementor");
665
855
  var SITE_CONTENT_FILTER_POPOVER_WIDTH_PX = 280;
666
856
  function getSiteContentStatusFilterLabel(filter) {
667
857
  return filterLabels[filter];
@@ -725,31 +915,31 @@ function shouldShowSiteContentStatusFilterRow(count, isLoadingCounts, isSelected
725
915
  // src/hooks/use-site-content-section-list-controls.ts
726
916
  var SEARCH_DEBOUNCE_MS = 300;
727
917
  function useSiteContentSectionListControls() {
728
- const [searchQuery, setSearchQuery] = useState3("");
729
- const [debouncedSearch, setDebouncedSearch] = useState3("");
730
- const [siteContentSort, setSiteContentSortState] = useState3(DEFAULT_SITE_CONTENT_SORT);
731
- const [statusFilters, setStatusFilters] = useState3(
918
+ const [searchQuery, setSearchQuery] = useState4("");
919
+ const [debouncedSearch, setDebouncedSearch] = useState4("");
920
+ const [siteContentSort, setSiteContentSortState] = useState4(DEFAULT_SITE_CONTENT_SORT);
921
+ const [statusFilters, setStatusFilters] = useState4(
732
922
  EMPTY_SITE_CONTENT_STATUS_FILTERS
733
923
  );
734
924
  const trimmedSearch = searchQuery.trim();
735
- useEffect(() => {
925
+ useEffect2(() => {
736
926
  const handle = window.setTimeout(() => setDebouncedSearch(trimmedSearch), SEARCH_DEBOUNCE_MS);
737
927
  return () => window.clearTimeout(handle);
738
928
  }, [trimmedSearch]);
739
- const clearActiveToolbarFilters = useCallback3(() => {
929
+ const clearActiveToolbarFilters = useCallback4(() => {
740
930
  setSiteContentSortState(DEFAULT_SITE_CONTENT_SORT);
741
931
  setStatusFilters(EMPTY_SITE_CONTENT_STATUS_FILTERS);
742
932
  }, []);
743
- const clearSiteContentSort = useCallback3(() => {
933
+ const clearSiteContentSort = useCallback4(() => {
744
934
  setSiteContentSortState(DEFAULT_SITE_CONTENT_SORT);
745
935
  }, []);
746
- const clearStatusFilters = useCallback3(() => {
936
+ const clearStatusFilters = useCallback4(() => {
747
937
  setStatusFilters(EMPTY_SITE_CONTENT_STATUS_FILTERS);
748
938
  }, []);
749
- const setSiteContentSort = useCallback3((sort) => {
939
+ const setSiteContentSort = useCallback4((sort) => {
750
940
  setSiteContentSortState(sort);
751
941
  }, []);
752
- const toggleStatusFilter = useCallback3((filter) => {
942
+ const toggleStatusFilter = useCallback4((filter) => {
753
943
  setStatusFilters((current) => toggleSiteContentStatusFilter(current, filter));
754
944
  }, []);
755
945
  return {
@@ -767,7 +957,7 @@ function useSiteContentSectionListControls() {
767
957
  }
768
958
 
769
959
  // src/contexts/site-content-section-toolbar.tsx
770
- var SiteContentSectionToolbarContext = createContext3(null);
960
+ var SiteContentSectionToolbarContext = createContext4(null);
771
961
  function SiteContentSectionToolbarProvider({
772
962
  children,
773
963
  statusFilterCountSlugs = [],
@@ -775,7 +965,7 @@ function SiteContentSectionToolbarProvider({
775
965
  statusFilterCountsPending = false
776
966
  }) {
777
967
  const controls = useSiteContentSectionListControls();
778
- const value = useMemo3(
968
+ const value = useMemo4(
779
969
  () => ({
780
970
  ...controls,
781
971
  statusFilterCountSlugs,
@@ -784,10 +974,10 @@ function SiteContentSectionToolbarProvider({
784
974
  }),
785
975
  [controls, statusFilterCountSlugs, statusFilterCounts, statusFilterCountsPending]
786
976
  );
787
- return /* @__PURE__ */ React8.createElement(SiteContentSectionToolbarContext.Provider, { value }, children);
977
+ return /* @__PURE__ */ React12.createElement(SiteContentSectionToolbarContext.Provider, { value }, children);
788
978
  }
789
979
  function useSiteContentSectionToolbar() {
790
- const context = useContext3(SiteContentSectionToolbarContext);
980
+ const context = useContext4(SiteContentSectionToolbarContext);
791
981
  if (!context) {
792
982
  throw new Error(
793
983
  "The `useSiteContentSectionToolbar()` hook must be used within a `<SiteContentSectionToolbarProvider />`"
@@ -824,7 +1014,7 @@ function useHomepage() {
824
1014
  }
825
1015
 
826
1016
  // src/hooks/use-post-list-pagination.ts
827
- import { useCallback as useCallback4, useEffect as useEffect2, useRef as useRef3, useState as useState4 } from "react";
1017
+ import { useCallback as useCallback5, useEffect as useEffect3, useRef as useRef3, useState as useState5 } from "react";
828
1018
  function usePostListPagination({
829
1019
  fetchNextPage,
830
1020
  hasNextPage,
@@ -833,13 +1023,13 @@ function usePostListPagination({
833
1023
  resetKey,
834
1024
  totalCount
835
1025
  }) {
836
- const [visibleCount, setVisibleCount] = useState4(POST_PER_PAGE);
1026
+ const [visibleCount, setVisibleCount] = useState5(POST_PER_PAGE);
837
1027
  const pendingVisibleTargetRef = useRef3(null);
838
- useEffect2(() => {
1028
+ useEffect3(() => {
839
1029
  setVisibleCount(POST_PER_PAGE);
840
1030
  pendingVisibleTargetRef.current = null;
841
1031
  }, [resetKey]);
842
- useEffect2(() => {
1032
+ useEffect3(() => {
843
1033
  const target = pendingVisibleTargetRef.current;
844
1034
  if (target === null) {
845
1035
  return;
@@ -856,7 +1046,7 @@ function usePostListPagination({
856
1046
  }, [isFetchingNextPage, loadedCount]);
857
1047
  const canShowLess = visibleCount > POST_PER_PAGE;
858
1048
  const canLoadMore = visibleCount < loadedCount || hasNextPage;
859
- const handleLoadMore = useCallback4(() => {
1049
+ const handleLoadMore = useCallback5(() => {
860
1050
  if (isFetchingNextPage || !canLoadMore) {
861
1051
  return;
862
1052
  }
@@ -874,7 +1064,7 @@ function usePostListPagination({
874
1064
  setVisibleCount(Math.min(visibleCount + POST_PER_PAGE, loadedCount));
875
1065
  }
876
1066
  }, [canLoadMore, fetchNextPage, hasNextPage, isFetchingNextPage, loadedCount, totalCount, visibleCount]);
877
- const handleShowLess = useCallback4(() => {
1067
+ const handleShowLess = useCallback5(() => {
878
1068
  pendingVisibleTargetRef.current = null;
879
1069
  setVisibleCount(POST_PER_PAGE);
880
1070
  }, []);
@@ -943,23 +1133,13 @@ function usePostsBaselineTotal(postTypeSlug, enabled, status = "any") {
943
1133
  }
944
1134
 
945
1135
  // src/components/panel/content-panel-section-toolbar.tsx
946
- import * as React16 from "react";
947
- import { Box as Box5, Stack as Stack4 } from "@elementor/ui";
948
-
949
- // src/components/panel/content-panel-active-filters.tsx
950
- import * as React10 from "react";
951
- import { Chip, Stack } from "@elementor/ui";
952
- import { __ as __7 } from "@wordpress/i18n";
953
-
954
- // src/components/panel/content-panel-clear-filters-button.tsx
955
- import * as React9 from "react";
956
- import { BrushBigIcon } from "@elementor/icons";
957
- import { Box as Box3, IconButton as IconButton2, Tooltip } from "@elementor/ui";
958
- function ContentPanelClearFiltersButton({ ariaLabel, onClear, sx, tooltipText }) {
959
- return /* @__PURE__ */ React9.createElement(Tooltip, { disableInteractive: true, placement: "top", title: tooltipText }, /* @__PURE__ */ React9.createElement(Box3, null, /* @__PURE__ */ React9.createElement(IconButton2, { "aria-label": ariaLabel, onClick: onClear, size: "tiny", sx }, /* @__PURE__ */ React9.createElement(BrushBigIcon, { fontSize: "tiny" }))));
960
- }
1136
+ import * as React19 from "react";
1137
+ import { Box as Box5, Stack as Stack5 } from "@elementor/ui";
961
1138
 
962
1139
  // src/components/panel/content-panel-active-filters.tsx
1140
+ import * as React13 from "react";
1141
+ import { Chip, Stack as Stack2 } from "@elementor/ui";
1142
+ import { __ as __8 } from "@wordpress/i18n";
963
1143
  var contentPanelFilterChipSx = {
964
1144
  "& .MuiChip-deleteIcon": {
965
1145
  display: "none",
@@ -977,7 +1157,7 @@ function ContentPanelActiveFilters() {
977
1157
  return null;
978
1158
  }
979
1159
  const activeKeys = getActiveSiteContentStatusFilterKeys(statusFilters);
980
- return /* @__PURE__ */ React10.createElement(Stack, { alignItems: "center", direction: "row", justifyContent: "space-between" }, /* @__PURE__ */ React10.createElement(Stack, { alignItems: "center", direction: "row", flexWrap: "wrap", gap: 0.5 }, hasSort && /* @__PURE__ */ React10.createElement(
1160
+ return /* @__PURE__ */ React13.createElement(Stack2, { alignItems: "center", direction: "row", justifyContent: "space-between" }, /* @__PURE__ */ React13.createElement(Stack2, { alignItems: "center", direction: "row", flexWrap: "wrap", gap: 0.5 }, hasSort && /* @__PURE__ */ React13.createElement(
981
1161
  Chip,
982
1162
  {
983
1163
  label: getSiteContentSortLabel(siteContentSort),
@@ -985,7 +1165,7 @@ function ContentPanelActiveFilters() {
985
1165
  size: "tiny",
986
1166
  sx: contentPanelFilterChipSx
987
1167
  }
988
- ), activeKeys.map((key) => /* @__PURE__ */ React10.createElement(
1168
+ ), activeKeys.map((key) => /* @__PURE__ */ React13.createElement(
989
1169
  Chip,
990
1170
  {
991
1171
  key,
@@ -994,61 +1174,61 @@ function ContentPanelActiveFilters() {
994
1174
  size: "tiny",
995
1175
  sx: contentPanelFilterChipSx
996
1176
  }
997
- ))), /* @__PURE__ */ React10.createElement(
1177
+ ))), /* @__PURE__ */ React13.createElement(
998
1178
  ContentPanelClearFiltersButton,
999
1179
  {
1000
- ariaLabel: __7("Clear Filters", "elementor"),
1180
+ ariaLabel: __8("Clear Filters", "elementor"),
1001
1181
  onClear: clearActiveToolbarFilters,
1002
1182
  sx: { margin: "0 0 auto auto" },
1003
- tooltipText: __7("Clear Filters", "elementor")
1183
+ tooltipText: __8("Clear Filters", "elementor")
1004
1184
  }
1005
1185
  ));
1006
1186
  }
1007
1187
 
1008
1188
  // src/components/panel/content-panel-search.tsx
1009
- import * as React11 from "react";
1189
+ import * as React14 from "react";
1010
1190
  import { SearchIcon } from "@elementor/icons";
1011
1191
  import { Box as Box4, InputAdornment, TextField } from "@elementor/ui";
1012
- import { __ as __8 } from "@wordpress/i18n";
1192
+ import { __ as __9 } from "@wordpress/i18n";
1013
1193
  function ContentPanelSearch({ searchAriaLabel }) {
1014
1194
  const { searchQuery, setSearchQuery } = useSiteContentSectionToolbar();
1015
- const ariaLabel = searchAriaLabel ?? __8("Search site content", "elementor");
1016
- return /* @__PURE__ */ React11.createElement(Box4, { component: "search", "aria-label": ariaLabel }, /* @__PURE__ */ React11.createElement(
1195
+ const ariaLabel = searchAriaLabel ?? __9("Search site content", "elementor");
1196
+ return /* @__PURE__ */ React14.createElement(Box4, { component: "search", "aria-label": ariaLabel }, /* @__PURE__ */ React14.createElement(
1017
1197
  TextField,
1018
1198
  {
1019
1199
  fullWidth: true,
1020
1200
  size: "tiny",
1021
1201
  value: searchQuery,
1022
- placeholder: __8("Search", "elementor"),
1202
+ placeholder: __9("Search", "elementor"),
1023
1203
  onChange: (event) => setSearchQuery(event.target.value),
1024
1204
  inputProps: {
1025
- "aria-label": __8("Search", "elementor")
1205
+ "aria-label": __9("Search", "elementor")
1026
1206
  },
1027
1207
  InputProps: {
1028
- startAdornment: /* @__PURE__ */ React11.createElement(InputAdornment, { position: "start" }, /* @__PURE__ */ React11.createElement(SearchIcon, { fontSize: "tiny" }))
1208
+ startAdornment: /* @__PURE__ */ React14.createElement(InputAdornment, { position: "start" }, /* @__PURE__ */ React14.createElement(SearchIcon, { fontSize: "tiny" }))
1029
1209
  }
1030
1210
  }
1031
1211
  ));
1032
1212
  }
1033
1213
 
1034
1214
  // src/components/panel/content-panel-sort.tsx
1035
- import * as React13 from "react";
1036
- import { PopoverBody, PopoverHeader } from "@elementor/editor-ui";
1215
+ import * as React16 from "react";
1216
+ import { PopoverBody as PopoverBody2, PopoverHeader as PopoverHeader2 } from "@elementor/editor-ui";
1037
1217
  import { ArrowsSortIcon } from "@elementor/icons";
1038
- import { bindPopover, bindToggle, Divider, Popover, ToggleButton, Tooltip as Tooltip2, usePopupState as usePopupState2 } from "@elementor/ui";
1039
- import { __ as __9 } from "@wordpress/i18n";
1218
+ import { bindPopover as bindPopover2, bindToggle as bindToggle2, Divider as Divider2, Popover as Popover2, ToggleButton as ToggleButton2, Tooltip as Tooltip3, usePopupState as usePopupState3 } from "@elementor/ui";
1219
+ import { __ as __10 } from "@wordpress/i18n";
1040
1220
 
1041
1221
  // src/components/panel/content-panel-sort-list.tsx
1042
- import * as React12 from "react";
1043
- import { CheckIcon } from "@elementor/icons";
1044
- import { MenuItem as MenuItem3, MenuList, Stack as Stack2, Typography as Typography2 } from "@elementor/ui";
1045
- var renderSortMenuItemContent = (label, selected) => /* @__PURE__ */ React12.createElement(Stack2, { alignItems: "center", direction: "row", gap: 1, width: "100%" }, /* @__PURE__ */ React12.createElement(Typography2, { sx: { color: "text.secondary", flex: 1 }, variant: "caption" }, label), selected ? /* @__PURE__ */ React12.createElement(CheckIcon, { "aria-hidden": true, fontSize: "tiny" }) : null);
1222
+ import * as React15 from "react";
1223
+ import { CheckIcon as CheckIcon2 } from "@elementor/icons";
1224
+ import { MenuItem as MenuItem4, MenuList as MenuList2, Stack as Stack3, Typography as Typography3 } from "@elementor/ui";
1225
+ var renderSortMenuItemContent = (label, selected) => /* @__PURE__ */ React15.createElement(Stack3, { alignItems: "center", direction: "row", gap: 1, width: "100%" }, /* @__PURE__ */ React15.createElement(Typography3, { sx: { color: "text.secondary", flex: 1 }, variant: "caption" }, label), selected ? /* @__PURE__ */ React15.createElement(CheckIcon2, { "aria-hidden": true, fontSize: "tiny" }) : null);
1046
1226
  function ContentPanelSortList() {
1047
1227
  const { setSiteContentSort, siteContentSort } = useSiteContentSectionToolbar();
1048
- return /* @__PURE__ */ React12.createElement(MenuList, { dense: true }, SITE_CONTENT_SORT_OPTIONS.map((option) => {
1228
+ return /* @__PURE__ */ React15.createElement(MenuList2, { dense: true }, SITE_CONTENT_SORT_OPTIONS.map((option) => {
1049
1229
  const isSelected = siteContentSort === option;
1050
- return /* @__PURE__ */ React12.createElement(
1051
- MenuItem3,
1230
+ return /* @__PURE__ */ React15.createElement(
1231
+ MenuItem4,
1052
1232
  {
1053
1233
  key: option,
1054
1234
  "aria-checked": isSelected,
@@ -1064,23 +1244,23 @@ function ContentPanelSortList() {
1064
1244
  // src/components/panel/content-panel-sort.tsx
1065
1245
  function ContentPanelSort() {
1066
1246
  const { clearSiteContentSort, siteContentSort } = useSiteContentSectionToolbar();
1067
- const popupState = usePopupState2({
1247
+ const popupState = usePopupState3({
1068
1248
  variant: "popover",
1069
1249
  disableAutoFocus: true
1070
1250
  });
1071
1251
  const hasActiveSort = hasActiveSiteContentSort(siteContentSort);
1072
- return /* @__PURE__ */ React13.createElement(React13.Fragment, null, /* @__PURE__ */ React13.createElement(Tooltip2, { placement: "top", title: __9("Sort", "elementor") }, /* @__PURE__ */ React13.createElement(
1073
- ToggleButton,
1252
+ return /* @__PURE__ */ React16.createElement(React16.Fragment, null, /* @__PURE__ */ React16.createElement(Tooltip3, { placement: "top", title: __10("Sort", "elementor") }, /* @__PURE__ */ React16.createElement(
1253
+ ToggleButton2,
1074
1254
  {
1075
- "aria-label": __9("Sort", "elementor"),
1255
+ "aria-label": __10("Sort", "elementor"),
1076
1256
  selected: popupState.isOpen || hasActiveSort,
1077
1257
  size: "tiny",
1078
1258
  value: "sort",
1079
- ...bindToggle(popupState)
1259
+ ...bindToggle2(popupState)
1080
1260
  },
1081
- /* @__PURE__ */ React13.createElement(ArrowsSortIcon, { fontSize: "tiny" })
1082
- )), /* @__PURE__ */ React13.createElement(
1083
- Popover,
1261
+ /* @__PURE__ */ React16.createElement(ArrowsSortIcon, { fontSize: "tiny" })
1262
+ )), /* @__PURE__ */ React16.createElement(
1263
+ Popover2,
1084
1264
  {
1085
1265
  anchorOrigin: {
1086
1266
  horizontal: "right",
@@ -1093,43 +1273,43 @@ function ContentPanelSort() {
1093
1273
  horizontal: -21,
1094
1274
  vertical: "top"
1095
1275
  },
1096
- ...bindPopover(popupState)
1276
+ ...bindPopover2(popupState)
1097
1277
  },
1098
- /* @__PURE__ */ React13.createElement(
1099
- PopoverHeader,
1278
+ /* @__PURE__ */ React16.createElement(
1279
+ PopoverHeader2,
1100
1280
  {
1101
1281
  actions: hasActiveSort ? [
1102
- /* @__PURE__ */ React13.createElement(
1282
+ /* @__PURE__ */ React16.createElement(
1103
1283
  ContentPanelClearFiltersButton,
1104
1284
  {
1105
- ariaLabel: __9("Clear sort", "elementor"),
1285
+ ariaLabel: __10("Clear sort", "elementor"),
1106
1286
  key: "clear-sort",
1107
1287
  onClear: clearSiteContentSort,
1108
- tooltipText: __9("Clear sort", "elementor")
1288
+ tooltipText: __10("Clear sort", "elementor")
1109
1289
  }
1110
1290
  )
1111
1291
  ] : [],
1112
- icon: /* @__PURE__ */ React13.createElement(ArrowsSortIcon, { fontSize: "tiny" }),
1292
+ icon: /* @__PURE__ */ React16.createElement(ArrowsSortIcon, { fontSize: "tiny" }),
1113
1293
  onClose: popupState.close,
1114
- title: __9("Sort", "elementor")
1294
+ title: __10("Sort", "elementor")
1115
1295
  }
1116
1296
  ),
1117
- /* @__PURE__ */ React13.createElement(Divider, { sx: { borderWidth: "1px 0 0 0" } }),
1118
- /* @__PURE__ */ React13.createElement(PopoverBody, { height: "auto", width: SITE_CONTENT_SORT_POPOVER_WIDTH_PX }, /* @__PURE__ */ React13.createElement(ContentPanelSortList, null))
1297
+ /* @__PURE__ */ React16.createElement(Divider2, { sx: { borderWidth: "1px 0 0 0" } }),
1298
+ /* @__PURE__ */ React16.createElement(PopoverBody2, { height: "auto", width: SITE_CONTENT_SORT_POPOVER_WIDTH_PX }, /* @__PURE__ */ React16.createElement(ContentPanelSortList, null))
1119
1299
  ));
1120
1300
  }
1121
1301
 
1122
1302
  // src/components/panel/content-panel-status-filter.tsx
1123
- import * as React15 from "react";
1124
- import { PopoverBody as PopoverBody2, PopoverHeader as PopoverHeader2 } from "@elementor/editor-ui";
1125
- import { FilterIcon } from "@elementor/icons";
1126
- import { bindPopover as bindPopover2, bindToggle as bindToggle2, Divider as Divider2, Popover as Popover2, ToggleButton as ToggleButton2, Tooltip as Tooltip3, usePopupState as usePopupState3 } from "@elementor/ui";
1127
- import { __ as __10 } from "@wordpress/i18n";
1303
+ import * as React18 from "react";
1304
+ import { PopoverBody as PopoverBody3, PopoverHeader as PopoverHeader3 } from "@elementor/editor-ui";
1305
+ import { FilterIcon as FilterIcon2 } from "@elementor/icons";
1306
+ import { bindPopover as bindPopover3, bindToggle as bindToggle3, Divider as Divider3, Popover as Popover3, ToggleButton as ToggleButton3, Tooltip as Tooltip4, usePopupState as usePopupState4 } from "@elementor/ui";
1307
+ import { __ as __11 } from "@wordpress/i18n";
1128
1308
 
1129
1309
  // src/components/panel/content-panel-status-filter-list.tsx
1130
- import * as React14 from "react";
1131
- import { CheckIcon as CheckIcon2 } from "@elementor/icons";
1132
- import { MenuItem as MenuItem4, MenuList as MenuList2, Stack as Stack3, Typography as Typography3 } from "@elementor/ui";
1310
+ import * as React17 from "react";
1311
+ import { CheckIcon as CheckIcon3 } from "@elementor/icons";
1312
+ import { MenuItem as MenuItem5, MenuList as MenuList3, Stack as Stack4, Typography as Typography4 } from "@elementor/ui";
1133
1313
 
1134
1314
  // src/hooks/use-site-content-status-filter-counts.ts
1135
1315
  import { useQuery as useQuery4 } from "@elementor/query";
@@ -1171,7 +1351,7 @@ function useSiteContentStatusFilterCounts(postTypes, enabled) {
1171
1351
  }
1172
1352
 
1173
1353
  // src/components/panel/content-panel-status-filter-list.tsx
1174
- var renderFilterMenuItemContent = (label, selected) => /* @__PURE__ */ React14.createElement(Stack3, { alignItems: "center", direction: "row", gap: 1, width: "100%" }, /* @__PURE__ */ React14.createElement(Typography3, { sx: { color: "text.secondary", flex: 1 }, variant: "caption" }, label), selected ? /* @__PURE__ */ React14.createElement(CheckIcon2, { "aria-hidden": true, fontSize: "tiny" }) : null);
1354
+ var renderFilterMenuItemContent = (label, selected) => /* @__PURE__ */ React17.createElement(Stack4, { alignItems: "center", direction: "row", gap: 1, width: "100%" }, /* @__PURE__ */ React17.createElement(Typography4, { sx: { color: "text.secondary", flex: 1 }, variant: "caption" }, label), selected ? /* @__PURE__ */ React17.createElement(CheckIcon3, { "aria-hidden": true, fontSize: "tiny" }) : null);
1175
1355
  function ContentPanelStatusFilterList({ loadCounts }) {
1176
1356
  const {
1177
1357
  clearStatusFilters,
@@ -1196,8 +1376,8 @@ function ContentPanelStatusFilterList({ loadCounts }) {
1196
1376
  statusFilters[filter]
1197
1377
  )
1198
1378
  );
1199
- return /* @__PURE__ */ React14.createElement(MenuList2, { dense: true }, /* @__PURE__ */ React14.createElement(
1200
- MenuItem4,
1379
+ return /* @__PURE__ */ React17.createElement(MenuList3, { dense: true }, /* @__PURE__ */ React17.createElement(
1380
+ MenuItem5,
1201
1381
  {
1202
1382
  "aria-checked": isAllSelected,
1203
1383
  onClick: clearStatusFilters,
@@ -1207,8 +1387,8 @@ function ContentPanelStatusFilterList({ loadCounts }) {
1207
1387
  renderFilterMenuItemContent(SITE_CONTENT_ALL_FILTER_LABEL, isAllSelected)
1208
1388
  ), visibleFilters.map((filter) => {
1209
1389
  const isSelected = statusFilters[filter];
1210
- return /* @__PURE__ */ React14.createElement(
1211
- MenuItem4,
1390
+ return /* @__PURE__ */ React17.createElement(
1391
+ MenuItem5,
1212
1392
  {
1213
1393
  key: filter,
1214
1394
  "aria-checked": isSelected,
@@ -1224,23 +1404,23 @@ function ContentPanelStatusFilterList({ loadCounts }) {
1224
1404
  // src/components/panel/content-panel-status-filter.tsx
1225
1405
  function ContentPanelStatusFilter() {
1226
1406
  const { clearStatusFilters, statusFilters } = useSiteContentSectionToolbar();
1227
- const popupState = usePopupState3({
1407
+ const popupState = usePopupState4({
1228
1408
  variant: "popover",
1229
1409
  disableAutoFocus: true
1230
1410
  });
1231
1411
  const hasActiveFilters = hasActiveSiteContentStatusFilters(statusFilters);
1232
- return /* @__PURE__ */ React15.createElement(React15.Fragment, null, /* @__PURE__ */ React15.createElement(Tooltip3, { placement: "top", title: __10("Filters", "elementor") }, /* @__PURE__ */ React15.createElement(
1233
- ToggleButton2,
1412
+ return /* @__PURE__ */ React18.createElement(React18.Fragment, null, /* @__PURE__ */ React18.createElement(Tooltip4, { placement: "top", title: __11("Filters", "elementor") }, /* @__PURE__ */ React18.createElement(
1413
+ ToggleButton3,
1234
1414
  {
1235
- "aria-label": __10("Filters", "elementor"),
1415
+ "aria-label": __11("Filters", "elementor"),
1236
1416
  selected: popupState.isOpen || hasActiveFilters,
1237
1417
  size: "tiny",
1238
1418
  value: "filter",
1239
- ...bindToggle2(popupState)
1419
+ ...bindToggle3(popupState)
1240
1420
  },
1241
- /* @__PURE__ */ React15.createElement(FilterIcon, { fontSize: "tiny" })
1242
- )), /* @__PURE__ */ React15.createElement(
1243
- Popover2,
1421
+ /* @__PURE__ */ React18.createElement(FilterIcon2, { fontSize: "tiny" })
1422
+ )), /* @__PURE__ */ React18.createElement(
1423
+ Popover3,
1244
1424
  {
1245
1425
  anchorOrigin: {
1246
1426
  horizontal: "right",
@@ -1253,50 +1433,50 @@ function ContentPanelStatusFilter() {
1253
1433
  horizontal: -21,
1254
1434
  vertical: "top"
1255
1435
  },
1256
- ...bindPopover2(popupState)
1436
+ ...bindPopover3(popupState)
1257
1437
  },
1258
- /* @__PURE__ */ React15.createElement(
1259
- PopoverHeader2,
1438
+ /* @__PURE__ */ React18.createElement(
1439
+ PopoverHeader3,
1260
1440
  {
1261
1441
  actions: hasActiveFilters ? [
1262
- /* @__PURE__ */ React15.createElement(
1442
+ /* @__PURE__ */ React18.createElement(
1263
1443
  ContentPanelClearFiltersButton,
1264
1444
  {
1265
- ariaLabel: __10("Clear all", "elementor"),
1445
+ ariaLabel: __11("Clear all", "elementor"),
1266
1446
  key: "clear-all-filters",
1267
1447
  onClear: clearStatusFilters,
1268
- tooltipText: __10("Clear all", "elementor")
1448
+ tooltipText: __11("Clear all", "elementor")
1269
1449
  }
1270
1450
  )
1271
1451
  ] : [],
1272
- icon: /* @__PURE__ */ React15.createElement(FilterIcon, { fontSize: "tiny" }),
1452
+ icon: /* @__PURE__ */ React18.createElement(FilterIcon2, { fontSize: "tiny" }),
1273
1453
  onClose: popupState.close,
1274
- title: __10("Filters", "elementor")
1454
+ title: __11("Filters", "elementor")
1275
1455
  }
1276
1456
  ),
1277
- /* @__PURE__ */ React15.createElement(Divider2, { sx: { borderWidth: "1px 0 0 0" } }),
1278
- /* @__PURE__ */ React15.createElement(PopoverBody2, { height: "auto", width: SITE_CONTENT_FILTER_POPOVER_WIDTH_PX }, /* @__PURE__ */ React15.createElement(ContentPanelStatusFilterList, { loadCounts: popupState.isOpen }))
1457
+ /* @__PURE__ */ React18.createElement(Divider3, { sx: { borderWidth: "1px 0 0 0" } }),
1458
+ /* @__PURE__ */ React18.createElement(PopoverBody3, { height: "auto", width: SITE_CONTENT_FILTER_POPOVER_WIDTH_PX }, /* @__PURE__ */ React18.createElement(ContentPanelStatusFilterList, { loadCounts: popupState.isOpen }))
1279
1459
  ));
1280
1460
  }
1281
1461
 
1282
1462
  // src/components/panel/content-panel-section-toolbar.tsx
1283
1463
  function ContentPanelSectionToolbar({ addAction, searchAriaLabel }) {
1284
- return /* @__PURE__ */ React16.createElement(Box5, { sx: contentPanelSearchBoxSx }, /* @__PURE__ */ React16.createElement(Stack4, { gap: 0.75, width: "100%" }, /* @__PURE__ */ React16.createElement(Stack4, { alignItems: "center", direction: "row", gap: 0.5, width: "100%" }, /* @__PURE__ */ React16.createElement(Box5, { sx: { flexGrow: 1, minWidth: 0 } }, /* @__PURE__ */ React16.createElement(ContentPanelSearch, { searchAriaLabel })), /* @__PURE__ */ React16.createElement(ContentPanelStatusFilter, null), /* @__PURE__ */ React16.createElement(ContentPanelSort, null), addAction), /* @__PURE__ */ React16.createElement(ContentPanelActiveFilters, null)));
1464
+ return /* @__PURE__ */ React19.createElement(Box5, { sx: contentPanelSearchBoxSx }, /* @__PURE__ */ React19.createElement(Stack5, { gap: 0.75, width: "100%" }, /* @__PURE__ */ React19.createElement(Stack5, { alignItems: "center", direction: "row", gap: 0.5, width: "100%" }, /* @__PURE__ */ React19.createElement(Box5, { sx: { flexGrow: 1, minWidth: 0 } }, /* @__PURE__ */ React19.createElement(ContentPanelSearch, { searchAriaLabel })), /* @__PURE__ */ React19.createElement(ContentPanelStatusFilter, null), /* @__PURE__ */ React19.createElement(ContentPanelSort, null), addAction), /* @__PURE__ */ React19.createElement(ContentPanelActiveFilters, null)));
1285
1465
  }
1286
1466
 
1287
1467
  // src/components/panel/section-add-button.tsx
1288
- import * as React17 from "react";
1289
- import { __ as __11, sprintf } from "@wordpress/i18n";
1468
+ import * as React20 from "react";
1469
+ import { __ as __12, sprintf } from "@wordpress/i18n";
1290
1470
  function SectionAddButton({ onBeforeCreate }) {
1291
1471
  const { type, setEditMode } = usePostListContext();
1292
1472
  const canCreate = useCanCreate(type);
1293
1473
  const singularName = postTypesMap[type].labels.singular_name;
1294
1474
  const ariaLabel = sprintf(
1295
1475
  /* translators: %s: Post type singular name (e.g. Page, Post). */
1296
- __11("New %s", "elementor"),
1476
+ __12("New %s", "elementor"),
1297
1477
  singularName
1298
1478
  );
1299
- return /* @__PURE__ */ React17.createElement(
1479
+ return /* @__PURE__ */ React20.createElement(
1300
1480
  ContentPanelAddIconButton,
1301
1481
  {
1302
1482
  "aria-label": ariaLabel,
@@ -1311,10 +1491,10 @@ function SectionAddButton({ onBeforeCreate }) {
1311
1491
  }
1312
1492
 
1313
1493
  // src/components/panel/posts-list/collapsible-list.tsx
1314
- import * as React18 from "react";
1494
+ import * as React21 from "react";
1315
1495
  import { useId } from "react";
1316
1496
  import { CollapseIcon } from "@elementor/editor-ui";
1317
- import { Box as Box6, Chip as Chip2, Collapse, Divider as Divider3, List, ListItemButton, ListItemText as ListItemText3, Stack as Stack5 } from "@elementor/ui";
1497
+ import { Box as Box6, Chip as Chip2, Collapse, Divider as Divider4, List, ListItemButton, ListItemText as ListItemText3, Stack as Stack6 } from "@elementor/ui";
1318
1498
  var sectionHeaderListItemButtonSx = {
1319
1499
  flexGrow: 1,
1320
1500
  justifyContent: "flex-start",
@@ -1344,7 +1524,7 @@ function CollapsibleList({
1344
1524
  const chipLabel = countChipLabel ?? count.toString();
1345
1525
  const sectionHeaderAriaLabel = getSectionHeaderAriaLabel(title, chipLabel);
1346
1526
  const handleClick = () => onOpenChange(!isOpen);
1347
- return /* @__PURE__ */ React18.createElement(React18.Fragment, null, /* @__PURE__ */ React18.createElement(
1527
+ return /* @__PURE__ */ React21.createElement(React21.Fragment, null, /* @__PURE__ */ React21.createElement(
1348
1528
  Box6,
1349
1529
  {
1350
1530
  sx: {
@@ -1355,7 +1535,7 @@ function CollapsibleList({
1355
1535
  width: "100%"
1356
1536
  }
1357
1537
  },
1358
- /* @__PURE__ */ React18.createElement(
1538
+ /* @__PURE__ */ React21.createElement(
1359
1539
  ListItemButton,
1360
1540
  {
1361
1541
  ref: headerRef,
@@ -1369,7 +1549,7 @@ function CollapsibleList({
1369
1549
  onClick: handleClick,
1370
1550
  sx: sectionHeaderListItemButtonSx
1371
1551
  },
1372
- /* @__PURE__ */ React18.createElement(Stack5, { alignItems: "center", direction: "row", flexGrow: 1, gap: 0.5, minWidth: 0, width: "100%" }, /* @__PURE__ */ React18.createElement(Stack5, { alignItems: "center", direction: "row", flex: 1, gap: 0.5, minWidth: 0 }, /* @__PURE__ */ React18.createElement(
1552
+ /* @__PURE__ */ React21.createElement(Stack6, { alignItems: "center", direction: "row", flexGrow: 1, gap: 0.5, minWidth: 0, width: "100%" }, /* @__PURE__ */ React21.createElement(Stack6, { alignItems: "center", direction: "row", flex: 1, gap: 0.5, minWidth: 0 }, /* @__PURE__ */ React21.createElement(
1373
1553
  ListItemText3,
1374
1554
  {
1375
1555
  secondary: title,
@@ -1380,10 +1560,10 @@ function CollapsibleList({
1380
1560
  },
1381
1561
  sx: { flexGrow: 0, flexShrink: 1, marginInlineEnd: 1 }
1382
1562
  }
1383
- ), /* @__PURE__ */ React18.createElement(Chip2, { label: chipLabel, size: "tiny" })), /* @__PURE__ */ React18.createElement(CollapseIcon, { color: "secondary", fontSize: "tiny", open: isOpen, sx: { flexShrink: 0 } }))
1563
+ ), /* @__PURE__ */ React21.createElement(Chip2, { label: chipLabel, size: "tiny" })), /* @__PURE__ */ React21.createElement(CollapseIcon, { color: "secondary", fontSize: "tiny", open: isOpen, sx: { flexShrink: 0 } }))
1384
1564
  ),
1385
- trailingActions && /* @__PURE__ */ React18.createElement(
1386
- Stack5,
1565
+ trailingActions && /* @__PURE__ */ React21.createElement(
1566
+ Stack6,
1387
1567
  {
1388
1568
  alignItems: "center",
1389
1569
  direction: "row",
@@ -1393,16 +1573,16 @@ function CollapsibleList({
1393
1573
  },
1394
1574
  trailingActions
1395
1575
  )
1396
- ), isOpen && sectionToolbar, /* @__PURE__ */ React18.createElement(Collapse, { "aria-labelledby": labelId, id: contentId, in: isOpen, timeout: "auto", unmountOnExit: true }, /* @__PURE__ */ React18.createElement(List, { dense: true, disablePadding: true, sx: contentPanelListSectionListSx }, children)), /* @__PURE__ */ React18.createElement(Divider3, null));
1576
+ ), isOpen && sectionToolbar, /* @__PURE__ */ React21.createElement(Collapse, { "aria-labelledby": labelId, id: contentId, in: isOpen, timeout: "auto", unmountOnExit: true }, /* @__PURE__ */ React21.createElement(List, { dense: true, disablePadding: true, sx: contentPanelListSectionListSx }, children)), /* @__PURE__ */ React21.createElement(Divider4, null));
1397
1577
  }
1398
1578
 
1399
1579
  // src/components/panel/posts-list/error-state.tsx
1400
- import * as React19 from "react";
1580
+ import * as React22 from "react";
1401
1581
  import { Error404TemplateIcon } from "@elementor/icons";
1402
- import { Box as Box7, Link, Typography as Typography4 } from "@elementor/ui";
1403
- import { __ as __12 } from "@wordpress/i18n";
1582
+ import { Box as Box7, Link, Typography as Typography5 } from "@elementor/ui";
1583
+ import { __ as __13 } from "@wordpress/i18n";
1404
1584
  function ErrorState() {
1405
- return /* @__PURE__ */ React19.createElement(
1585
+ return /* @__PURE__ */ React22.createElement(
1406
1586
  Box7,
1407
1587
  {
1408
1588
  sx: {
@@ -1414,8 +1594,8 @@ function ErrorState() {
1414
1594
  gap: "16px"
1415
1595
  }
1416
1596
  },
1417
- /* @__PURE__ */ React19.createElement(Error404TemplateIcon, null),
1418
- /* @__PURE__ */ React19.createElement(
1597
+ /* @__PURE__ */ React22.createElement(Error404TemplateIcon, null),
1598
+ /* @__PURE__ */ React22.createElement(
1419
1599
  Box7,
1420
1600
  {
1421
1601
  sx: {
@@ -1426,19 +1606,19 @@ function ErrorState() {
1426
1606
  gap: "8px"
1427
1607
  }
1428
1608
  },
1429
- /* @__PURE__ */ React19.createElement(Typography4, { variant: "body1", color: "text.primary" }, __12("We couldn\u2019t display your pages.", "elementor")),
1430
- /* @__PURE__ */ React19.createElement(Box7, null, /* @__PURE__ */ React19.createElement(Typography4, { variant: "body2", color: "text.primary", sx: { textAlign: "center" } }, __12("It\u2019s probably a temporary issue.", "elementor")), /* @__PURE__ */ React19.createElement(Typography4, { variant: "body2", color: "text.primary", sx: { textAlign: "center" } }, __12("If the problem persists,", "elementor"), " ", /* @__PURE__ */ React19.createElement(Link, { target: "_blank", href: "https://go.elementor.com/wp-editor-support-open-ticket/" }, "Notify support")))
1609
+ /* @__PURE__ */ React22.createElement(Typography5, { variant: "body1", color: "text.primary" }, __13("We couldn\u2019t display your pages.", "elementor")),
1610
+ /* @__PURE__ */ React22.createElement(Box7, null, /* @__PURE__ */ React22.createElement(Typography5, { variant: "body2", color: "text.primary", sx: { textAlign: "center" } }, __13("It\u2019s probably a temporary issue.", "elementor")), /* @__PURE__ */ React22.createElement(Typography5, { variant: "body2", color: "text.primary", sx: { textAlign: "center" } }, __13("If the problem persists,", "elementor"), " ", /* @__PURE__ */ React22.createElement(Link, { target: "_blank", href: "https://go.elementor.com/wp-editor-support-open-ticket/" }, "Notify support")))
1431
1611
  )
1432
1612
  );
1433
1613
  }
1434
1614
 
1435
1615
  // src/components/panel/posts-list/post-list-item.tsx
1436
- import * as React34 from "react";
1616
+ import * as React37 from "react";
1437
1617
 
1438
1618
  // src/components/panel/posts-list/list-items/list-item-create.tsx
1439
- import * as React21 from "react";
1619
+ import * as React24 from "react";
1440
1620
  import { __useNavigateToDocument as useNavigateToDocument } from "@elementor/editor-documents";
1441
- import { __ as __14, sprintf as sprintf2 } from "@wordpress/i18n";
1621
+ import { __ as __15, sprintf as sprintf2 } from "@wordpress/i18n";
1442
1622
 
1443
1623
  // src/hooks/use-posts-actions.ts
1444
1624
  import { useMutation, useQueryClient } from "@elementor/query";
@@ -1519,11 +1699,11 @@ function useInvalidatePosts(postTypeSlug) {
1519
1699
  }
1520
1700
 
1521
1701
  // src/components/panel/posts-list/list-items/edit-mode-template.tsx
1522
- import * as React20 from "react";
1523
- import { useRef as useRef4, useState as useState5 } from "react";
1702
+ import * as React23 from "react";
1703
+ import { useRef as useRef4, useState as useState6 } from "react";
1524
1704
  import { XIcon } from "@elementor/icons";
1525
1705
  import { Box as Box8, CircularProgress, IconButton as IconButton3, ListItem, ListItemText as ListItemText4 } from "@elementor/ui";
1526
- import { __ as __13 } from "@wordpress/i18n";
1706
+ import { __ as __14 } from "@wordpress/i18n";
1527
1707
  var EDIT_ROW_FOCUS_BORDER_WIDTH_PX = 2;
1528
1708
  var EDIT_ROW_MIN_HEIGHT_PX = 36;
1529
1709
  var editModeListItemButtonSx = {
@@ -1563,9 +1743,9 @@ var editRowInputSx = {
1563
1743
  function EditModeTemplate({ postTitle, isLoading, callback, onDismiss }) {
1564
1744
  const { resetEditMode } = usePostListContext();
1565
1745
  const dismissEditMode = onDismiss ?? resetEditMode;
1566
- const [title, setTitle] = useState5(postTitle);
1567
- const [touched, setTouched] = useState5(false);
1568
- const [inputError, setInputError] = useState5(null);
1746
+ const [title, setTitle] = useState6(postTitle);
1747
+ const [touched, setTouched] = useState6(false);
1748
+ const [inputError, setInputError] = useState6(null);
1569
1749
  const closeButton = useRef4();
1570
1750
  const hasSubmittedRef = useRef4(false);
1571
1751
  const onBlur = (e) => {
@@ -1601,32 +1781,32 @@ function EditModeTemplate({ postTitle, isLoading, callback, onDismiss }) {
1601
1781
  }
1602
1782
  const value = e.target.value;
1603
1783
  if (!validateInput(value)) {
1604
- setInputError(__13("Name is required", "elementor"));
1784
+ setInputError(__14("Name is required", "elementor"));
1605
1785
  } else {
1606
1786
  setInputError(null);
1607
1787
  }
1608
1788
  setTitle(value);
1609
1789
  };
1610
- return /* @__PURE__ */ React20.createElement(React20.Fragment, null, /* @__PURE__ */ React20.createElement(
1790
+ return /* @__PURE__ */ React23.createElement(React23.Fragment, null, /* @__PURE__ */ React23.createElement(
1611
1791
  ListItem,
1612
1792
  {
1613
1793
  disablePadding: true,
1614
1794
  sx: contentPanelListRowPaddingSx,
1615
- secondaryAction: /* @__PURE__ */ React20.createElement(CloseButton, { isLoading, closeButton, onDismiss: dismissEditMode })
1795
+ secondaryAction: /* @__PURE__ */ React23.createElement(CloseButton, { isLoading, closeButton, onDismiss: dismissEditMode })
1616
1796
  },
1617
- /* @__PURE__ */ React20.createElement(
1797
+ /* @__PURE__ */ React23.createElement(
1618
1798
  Box8,
1619
1799
  {
1620
1800
  component: "form",
1621
1801
  onSubmit: onFormSubmit,
1622
1802
  sx: { ...editModeListItemButtonSx, display: "flex", width: "100%" }
1623
1803
  },
1624
- /* @__PURE__ */ React20.createElement(Box8, { sx: editRowIndicatorSx(!!inputError) }, /* @__PURE__ */ React20.createElement(
1804
+ /* @__PURE__ */ React23.createElement(Box8, { sx: editRowIndicatorSx(!!inputError) }, /* @__PURE__ */ React23.createElement(
1625
1805
  Box8,
1626
1806
  {
1627
1807
  autoFocus: true,
1628
1808
  "aria-invalid": !!inputError,
1629
- "aria-label": __13("Name", "elementor"),
1809
+ "aria-label": __14("Name", "elementor"),
1630
1810
  component: "input",
1631
1811
  disabled: isLoading,
1632
1812
  onBlur,
@@ -1637,10 +1817,10 @@ function EditModeTemplate({ postTitle, isLoading, callback, onDismiss }) {
1637
1817
  }
1638
1818
  ))
1639
1819
  )
1640
- ), inputError && /* @__PURE__ */ React20.createElement(ListItem, { disablePadding: true, sx: contentPanelListRowPaddingSx }, /* @__PURE__ */ React20.createElement(ListItemText4, { sx: { color: "error.main", ...contentPanelListRowTitleSx } }, inputError)));
1820
+ ), inputError && /* @__PURE__ */ React23.createElement(ListItem, { disablePadding: true, sx: contentPanelListRowPaddingSx }, /* @__PURE__ */ React23.createElement(ListItemText4, { sx: { color: "error.main", ...contentPanelListRowTitleSx } }, inputError)));
1641
1821
  }
1642
1822
  function CloseButton({ isLoading, closeButton, onDismiss }) {
1643
- return /* @__PURE__ */ React20.createElement(IconButton3, { size: "tiny", color: "secondary", onClick: onDismiss, ref: closeButton, disabled: isLoading }, isLoading ? /* @__PURE__ */ React20.createElement(CircularProgress, { size: "1rem" }) : /* @__PURE__ */ React20.createElement(XIcon, { fontSize: "tiny" }));
1823
+ return /* @__PURE__ */ React23.createElement(IconButton3, { size: "tiny", color: "secondary", onClick: onDismiss, ref: closeButton, disabled: isLoading }, isLoading ? /* @__PURE__ */ React23.createElement(CircularProgress, { size: "1rem" }) : /* @__PURE__ */ React23.createElement(XIcon, { fontSize: "tiny" }));
1644
1824
  }
1645
1825
 
1646
1826
  // src/components/panel/posts-list/list-items/list-item-create.tsx
@@ -1665,10 +1845,10 @@ function ListItemCreate() {
1665
1845
  };
1666
1846
  const newItemLabel = sprintf2(
1667
1847
  /* translators: %s: Post type singular name (e.g. Page, Post). */
1668
- __14("New %s", "elementor"),
1848
+ __15("New %s", "elementor"),
1669
1849
  postTypesMap[type].labels.singular_name
1670
1850
  );
1671
- return /* @__PURE__ */ React21.createElement(
1851
+ return /* @__PURE__ */ React24.createElement(
1672
1852
  EditModeTemplate,
1673
1853
  {
1674
1854
  postTitle: newItemLabel,
@@ -1679,9 +1859,9 @@ function ListItemCreate() {
1679
1859
  }
1680
1860
 
1681
1861
  // src/components/panel/posts-list/list-items/list-item-duplicate.tsx
1682
- import * as React22 from "react";
1862
+ import * as React25 from "react";
1683
1863
  import { __useNavigateToDocument as useNavigateToDocument2 } from "@elementor/editor-documents";
1684
- import { __ as __15 } from "@wordpress/i18n";
1864
+ import { __ as __16 } from "@wordpress/i18n";
1685
1865
  function ListItemDuplicate() {
1686
1866
  const { type, editMode, resetEditMode } = usePostListContext();
1687
1867
  const navigateToDocument = useNavigateToDocument2();
@@ -1704,10 +1884,10 @@ function ListItemDuplicate() {
1704
1884
  resetEditMode();
1705
1885
  }
1706
1886
  };
1707
- return /* @__PURE__ */ React22.createElement(
1887
+ return /* @__PURE__ */ React25.createElement(
1708
1888
  EditModeTemplate,
1709
1889
  {
1710
- postTitle: `${editMode.details.title} ${__15("copy", "elementor")}`,
1890
+ postTitle: `${editMode.details.title} ${__16("copy", "elementor")}`,
1711
1891
  isLoading: duplicatePost.isPending,
1712
1892
  callback: duplicatePostCallback
1713
1893
  }
@@ -1715,7 +1895,7 @@ function ListItemDuplicate() {
1715
1895
  }
1716
1896
 
1717
1897
  // src/components/panel/posts-list/list-items/list-item-rename.tsx
1718
- import * as React23 from "react";
1898
+ import * as React26 from "react";
1719
1899
  import { __useActiveDocument as useActiveDocument } from "@elementor/editor-documents";
1720
1900
 
1721
1901
  // src/hooks/use-rename-active-document.ts
@@ -1766,12 +1946,12 @@ function ListItemRename({ post }) {
1766
1946
  resetEditMode();
1767
1947
  }
1768
1948
  };
1769
- return /* @__PURE__ */ React23.createElement(EditModeTemplate, { postTitle: title, isLoading: updatePost.isPending, callback: renamePostCallback });
1949
+ return /* @__PURE__ */ React26.createElement(EditModeTemplate, { postTitle: title, isLoading: updatePost.isPending, callback: renamePostCallback });
1770
1950
  }
1771
1951
 
1772
1952
  // src/components/panel/posts-list/list-items/list-item-view.tsx
1773
- import * as React33 from "react";
1774
- import { useState as useState8 } from "react";
1953
+ import * as React36 from "react";
1954
+ import { useState as useState9 } from "react";
1775
1955
  import {
1776
1956
  __useActiveDocument as useActiveDocument3,
1777
1957
  __useNavigateToDocument as useNavigateToDocument3
@@ -1780,26 +1960,26 @@ import { DotsVerticalIcon, HomeIcon as HomeIcon2 } from "@elementor/icons";
1780
1960
  import {
1781
1961
  bindMenu as bindMenu2,
1782
1962
  bindTrigger as bindTrigger2,
1783
- Divider as Divider6,
1963
+ Divider as Divider7,
1784
1964
  IconButton as IconButton4,
1785
1965
  ListItem as ListItem2,
1786
1966
  ListItemButton as ListItemButton2,
1787
1967
  ListItemText as ListItemText6,
1788
1968
  Menu as Menu2,
1789
- Stack as Stack6,
1790
- Tooltip as Tooltip4,
1791
- Typography as Typography6,
1792
- usePopupState as usePopupState4
1969
+ Stack as Stack7,
1970
+ Tooltip as Tooltip5,
1971
+ Typography as Typography7,
1972
+ usePopupState as usePopupState5
1793
1973
  } from "@elementor/ui";
1794
- import { __ as __24 } from "@wordpress/i18n";
1974
+ import { __ as __25 } from "@wordpress/i18n";
1795
1975
 
1796
1976
  // src/components/shared/page-title-and-status.tsx
1797
- import * as React24 from "react";
1798
- import { Box as Box9, Chip as Chip3, Typography as Typography5 } from "@elementor/ui";
1799
- import { __ as __16 } from "@wordpress/i18n";
1977
+ import * as React27 from "react";
1978
+ import { Box as Box9, Chip as Chip3, Typography as Typography6 } from "@elementor/ui";
1979
+ import { __ as __17 } from "@wordpress/i18n";
1800
1980
 
1801
1981
  // src/hooks/use-reverse-html-entities.ts
1802
- import { useMemo as useMemo4 } from "react";
1982
+ import { useMemo as useMemo5 } from "react";
1803
1983
 
1804
1984
  // src/utils/post-title-plain.ts
1805
1985
  function getPostTitlePlain(renderedTitle) {
@@ -1813,7 +1993,7 @@ function getPostTitlePlain(renderedTitle) {
1813
1993
 
1814
1994
  // src/hooks/use-reverse-html-entities.ts
1815
1995
  function useReverseHtmlEntities(escapedHTML = "") {
1816
- return useMemo4(() => getPostTitlePlain(escapedHTML), [escapedHTML]);
1996
+ return useMemo5(() => getPostTitlePlain(escapedHTML), [escapedHTML]);
1817
1997
  }
1818
1998
 
1819
1999
  // src/components/shared/page-title-and-status.tsx
@@ -1823,19 +2003,19 @@ function humanizeStatusSlug(status) {
1823
2003
  var statusChipConfig = {
1824
2004
  draft: {
1825
2005
  color: "default",
1826
- label: __16("Draft", "elementor")
2006
+ label: __17("Draft", "elementor")
1827
2007
  },
1828
2008
  future: {
1829
2009
  color: "default",
1830
- label: __16("Scheduled", "elementor")
2010
+ label: __17("Scheduled", "elementor")
1831
2011
  },
1832
2012
  pending: {
1833
2013
  color: "warning",
1834
- label: __16("Pending Review", "elementor")
2014
+ label: __17("Pending Review", "elementor")
1835
2015
  },
1836
2016
  private: {
1837
2017
  color: "default",
1838
- label: __16("Private", "elementor")
2018
+ label: __17("Private", "elementor")
1839
2019
  }
1840
2020
  };
1841
2021
  function getStatusChipConfig(status) {
@@ -1857,7 +2037,7 @@ var PageStatus = ({ status }) => {
1857
2037
  }
1858
2038
  const { color, label } = getStatusChipConfig(status);
1859
2039
  const isKnownStatus = isKnownPanelStatus(status);
1860
- return /* @__PURE__ */ React24.createElement(
2040
+ return /* @__PURE__ */ React27.createElement(
1861
2041
  Chip3,
1862
2042
  {
1863
2043
  color,
@@ -1883,8 +2063,8 @@ var PageStatus = ({ status }) => {
1883
2063
  var PageTitle = ({ status, title }) => {
1884
2064
  const modifiedTitle = useReverseHtmlEntities(title);
1885
2065
  const titleColor = "trash" === status ? "text.disabled" : "text.secondary";
1886
- return /* @__PURE__ */ React24.createElement(
1887
- Typography5,
2066
+ return /* @__PURE__ */ React27.createElement(
2067
+ Typography6,
1888
2068
  {
1889
2069
  component: "span",
1890
2070
  variant: "body2",
@@ -1903,12 +2083,12 @@ var PageTitle = ({ status, title }) => {
1903
2083
  );
1904
2084
  };
1905
2085
  function PageTitleAndStatus({ title, status }) {
1906
- return /* @__PURE__ */ React24.createElement(Box9, { alignItems: "center", display: "flex", minWidth: 0, sx: { overflow: "hidden" } }, /* @__PURE__ */ React24.createElement(PageTitle, { status, title }), /* @__PURE__ */ React24.createElement(PageStatus, { status }));
2086
+ return /* @__PURE__ */ React27.createElement(Box9, { alignItems: "center", display: "flex", minWidth: 0, sx: { overflow: "hidden" } }, /* @__PURE__ */ React27.createElement(PageTitle, { status, title }), /* @__PURE__ */ React27.createElement(PageStatus, { status }));
1907
2087
  }
1908
2088
 
1909
2089
  // src/components/panel/actions-menu/actions/delete.tsx
1910
- import * as React26 from "react";
1911
- import { useState as useState6 } from "react";
2090
+ import * as React29 from "react";
2091
+ import { useState as useState7 } from "react";
1912
2092
  import { __useActiveDocument as useActiveDocument2 } from "@elementor/editor-documents";
1913
2093
  import { TrashIcon } from "@elementor/icons";
1914
2094
  import {
@@ -1919,36 +2099,36 @@ import {
1919
2099
  DialogContent,
1920
2100
  DialogContentText,
1921
2101
  DialogTitle,
1922
- Divider as Divider4
2102
+ Divider as Divider5
1923
2103
  } from "@elementor/ui";
1924
- import { __ as __17, sprintf as sprintf3 } from "@wordpress/i18n";
2104
+ import { __ as __18, sprintf as sprintf3 } from "@wordpress/i18n";
1925
2105
 
1926
2106
  // src/components/panel/actions-menu/action-menu-item.tsx
1927
- import * as React25 from "react";
1928
- import { ListItemIcon as ListItemIcon3, ListItemText as ListItemText5, MenuItem as MenuItem5 } from "@elementor/ui";
2107
+ import * as React28 from "react";
2108
+ import { ListItemIcon as ListItemIcon3, ListItemText as ListItemText5, MenuItem as MenuItem6 } from "@elementor/ui";
1929
2109
  function ActionMenuItem({ description, icon: Icon, MenuItemProps, title }) {
1930
- return /* @__PURE__ */ React25.createElement(MenuItem5, { ...MenuItemProps }, /* @__PURE__ */ React25.createElement(
2110
+ return /* @__PURE__ */ React28.createElement(MenuItem6, { ...MenuItemProps }, /* @__PURE__ */ React28.createElement(
1931
2111
  ListItemIcon3,
1932
2112
  {
1933
2113
  sx: {
1934
2114
  color: "inherit"
1935
2115
  }
1936
2116
  },
1937
- /* @__PURE__ */ React25.createElement(Icon, null)
1938
- ), /* @__PURE__ */ React25.createElement(ListItemText5, { primary: title, secondary: description }));
2117
+ /* @__PURE__ */ React28.createElement(Icon, null)
2118
+ ), /* @__PURE__ */ React28.createElement(ListItemText5, { primary: title, secondary: description }));
1939
2119
  }
1940
2120
 
1941
2121
  // src/components/panel/actions-menu/actions/delete.tsx
1942
2122
  function Delete({ post }) {
1943
- const [isDialogOpen, setIsDialogOpen] = useState6(false);
2123
+ const [isDialogOpen, setIsDialogOpen] = useState7(false);
1944
2124
  const activeDocument = useActiveDocument2();
1945
2125
  const isPostActive = activeDocument?.id === post.id;
1946
2126
  const userCanDelete = post.user_can.delete;
1947
2127
  const isDisabled = !userCanDelete || post.isHome || isPostActive;
1948
- return /* @__PURE__ */ React26.createElement(React26.Fragment, null, /* @__PURE__ */ React26.createElement(
2128
+ return /* @__PURE__ */ React29.createElement(React29.Fragment, null, /* @__PURE__ */ React29.createElement(
1949
2129
  ActionMenuItem,
1950
2130
  {
1951
- title: __17("Delete", "elementor"),
2131
+ title: __18("Delete", "elementor"),
1952
2132
  icon: TrashIcon,
1953
2133
  MenuItemProps: {
1954
2134
  disabled: isDisabled,
@@ -1956,7 +2136,7 @@ function Delete({ post }) {
1956
2136
  sx: { "&:hover": { color: "error.main" } }
1957
2137
  }
1958
2138
  }
1959
- ), isDialogOpen && /* @__PURE__ */ React26.createElement(DeleteDialog, { post, setIsDialogOpen }));
2139
+ ), isDialogOpen && /* @__PURE__ */ React29.createElement(DeleteDialog, { post, setIsDialogOpen }));
1960
2140
  }
1961
2141
  function DeleteDialog({
1962
2142
  post,
@@ -1965,11 +2145,11 @@ function DeleteDialog({
1965
2145
  const { type } = usePostListContext();
1966
2146
  const { deletePost } = usePostActions(type);
1967
2147
  const { setError } = usePostListContext();
1968
- const dialogTitle = sprintf3(__17('Delete "%s"?', "elementor"), post.title.rendered);
1969
- const dialogBody = type === "post" ? __17(
2148
+ const dialogTitle = sprintf3(__18('Delete "%s"?', "elementor"), post.title.rendered);
2149
+ const dialogBody = type === "post" ? __18(
1970
2150
  "The post and its content will be deleted forever and we won\u2019t be able to recover them.",
1971
2151
  "elementor"
1972
- ) : __17(
2152
+ ) : __18(
1973
2153
  "The page and its content will be deleted forever and we won\u2019t be able to recover them.",
1974
2154
  "elementor"
1975
2155
  );
@@ -1987,7 +2167,7 @@ function DeleteDialog({
1987
2167
  }
1988
2168
  setIsDialogOpen(false);
1989
2169
  };
1990
- return /* @__PURE__ */ React26.createElement(Dialog, { open: true, onClose: handleCancel, "aria-labelledby": "delete-dialog" }, /* @__PURE__ */ React26.createElement(DialogTitle, { noWrap: true }, dialogTitle), /* @__PURE__ */ React26.createElement(Divider4, null), /* @__PURE__ */ React26.createElement(DialogContent, null, /* @__PURE__ */ React26.createElement(DialogContentText, null, dialogBody)), /* @__PURE__ */ React26.createElement(DialogActions, null, /* @__PURE__ */ React26.createElement(
2170
+ return /* @__PURE__ */ React29.createElement(Dialog, { open: true, onClose: handleCancel, "aria-labelledby": "delete-dialog" }, /* @__PURE__ */ React29.createElement(DialogTitle, { noWrap: true }, dialogTitle), /* @__PURE__ */ React29.createElement(Divider5, null), /* @__PURE__ */ React29.createElement(DialogContent, null, /* @__PURE__ */ React29.createElement(DialogContentText, null, dialogBody)), /* @__PURE__ */ React29.createElement(DialogActions, null, /* @__PURE__ */ React29.createElement(
1991
2171
  Button,
1992
2172
  {
1993
2173
  variant: "contained",
@@ -1995,14 +2175,14 @@ function DeleteDialog({
1995
2175
  onClick: handleCancel,
1996
2176
  disabled: deletePost.isPending
1997
2177
  },
1998
- __17("Cancel", "elementor")
1999
- ), /* @__PURE__ */ React26.createElement(Button, { variant: "contained", color: "error", onClick: deletePage, disabled: deletePost.isPending }, !deletePost.isPending ? __17("Delete", "elementor") : /* @__PURE__ */ React26.createElement(CircularProgress2, null))));
2178
+ __18("Cancel", "elementor")
2179
+ ), /* @__PURE__ */ React29.createElement(Button, { variant: "contained", color: "error", onClick: deletePage, disabled: deletePost.isPending }, !deletePost.isPending ? __18("Delete", "elementor") : /* @__PURE__ */ React29.createElement(CircularProgress2, null))));
2000
2180
  }
2001
2181
 
2002
2182
  // src/components/panel/actions-menu/actions/duplicate.tsx
2003
- import * as React27 from "react";
2183
+ import * as React30 from "react";
2004
2184
  import { CopyIcon } from "@elementor/icons";
2005
- import { __ as __18 } from "@wordpress/i18n";
2185
+ import { __ as __19 } from "@wordpress/i18n";
2006
2186
  function Duplicate({ post, popupState }) {
2007
2187
  const { setEditMode, type } = usePostListContext();
2008
2188
  const canCreate = useCanCreate(type);
@@ -2017,10 +2197,10 @@ function Duplicate({ post, popupState }) {
2017
2197
  });
2018
2198
  };
2019
2199
  const isDisabled = !canCreate;
2020
- return /* @__PURE__ */ React27.createElement(
2200
+ return /* @__PURE__ */ React30.createElement(
2021
2201
  ActionMenuItem,
2022
2202
  {
2023
- title: __18("Duplicate", "elementor"),
2203
+ title: __19("Duplicate", "elementor"),
2024
2204
  icon: CopyIcon,
2025
2205
  MenuItemProps: {
2026
2206
  disabled: isDisabled,
@@ -2031,8 +2211,8 @@ function Duplicate({ post, popupState }) {
2031
2211
  }
2032
2212
 
2033
2213
  // src/components/panel/actions-menu/actions/force-delete.tsx
2034
- import * as React28 from "react";
2035
- import { useState as useState7 } from "react";
2214
+ import * as React31 from "react";
2215
+ import { useState as useState8 } from "react";
2036
2216
  import { TrashIcon as TrashIcon2 } from "@elementor/icons";
2037
2217
  import {
2038
2218
  Button as Button2,
@@ -2042,12 +2222,12 @@ import {
2042
2222
  DialogContent as DialogContent2,
2043
2223
  DialogContentText as DialogContentText2,
2044
2224
  DialogTitle as DialogTitle2,
2045
- Divider as Divider5
2225
+ Divider as Divider6
2046
2226
  } from "@elementor/ui";
2047
- import { __ as __19, sprintf as sprintf4 } from "@wordpress/i18n";
2227
+ import { __ as __20, sprintf as sprintf4 } from "@wordpress/i18n";
2048
2228
  function ForceDelete({ post }) {
2049
- const [isDialogOpen, setIsDialogOpen] = useState7(false);
2050
- return /* @__PURE__ */ React28.createElement(React28.Fragment, null, /* @__PURE__ */ React28.createElement(
2229
+ const [isDialogOpen, setIsDialogOpen] = useState8(false);
2230
+ return /* @__PURE__ */ React31.createElement(React31.Fragment, null, /* @__PURE__ */ React31.createElement(
2051
2231
  ActionMenuItem,
2052
2232
  {
2053
2233
  icon: TrashIcon2,
@@ -2056,9 +2236,9 @@ function ForceDelete({ post }) {
2056
2236
  onClick: () => setIsDialogOpen(true),
2057
2237
  sx: { "&:hover": { color: "error.main" } }
2058
2238
  },
2059
- title: __19("Delete permanently", "elementor")
2239
+ title: __20("Delete permanently", "elementor")
2060
2240
  }
2061
- ), isDialogOpen && /* @__PURE__ */ React28.createElement(ForceDeleteDialog, { post, setIsDialogOpen }));
2241
+ ), isDialogOpen && /* @__PURE__ */ React31.createElement(ForceDeleteDialog, { post, setIsDialogOpen }));
2062
2242
  }
2063
2243
  function ForceDeleteDialog({
2064
2244
  post,
@@ -2066,8 +2246,8 @@ function ForceDeleteDialog({
2066
2246
  }) {
2067
2247
  const { setError, type } = usePostListContext();
2068
2248
  const { forceDeletePost } = usePostActions(type);
2069
- const dialogTitle = sprintf4(__19('Delete "%s" permanently?', "elementor"), post.title.rendered);
2070
- const dialogBody = __19("This will permanently delete the item. You cannot undo this action.", "elementor");
2249
+ const dialogTitle = sprintf4(__20('Delete "%s" permanently?', "elementor"), post.title.rendered);
2250
+ const dialogBody = __20("This will permanently delete the item. You cannot undo this action.", "elementor");
2071
2251
  const handleDelete = async () => {
2072
2252
  try {
2073
2253
  await forceDeletePost.mutateAsync(post.id);
@@ -2083,7 +2263,7 @@ function ForceDeleteDialog({
2083
2263
  }
2084
2264
  setIsDialogOpen(false);
2085
2265
  };
2086
- return /* @__PURE__ */ React28.createElement(Dialog2, { "aria-labelledby": "force-delete-dialog", onClose: handleCancel, open: true }, /* @__PURE__ */ React28.createElement(DialogTitle2, { noWrap: true }, dialogTitle), /* @__PURE__ */ React28.createElement(Divider5, null), /* @__PURE__ */ React28.createElement(DialogContent2, null, /* @__PURE__ */ React28.createElement(DialogContentText2, null, dialogBody)), /* @__PURE__ */ React28.createElement(DialogActions2, null, /* @__PURE__ */ React28.createElement(
2266
+ return /* @__PURE__ */ React31.createElement(Dialog2, { "aria-labelledby": "force-delete-dialog", onClose: handleCancel, open: true }, /* @__PURE__ */ React31.createElement(DialogTitle2, { noWrap: true }, dialogTitle), /* @__PURE__ */ React31.createElement(Divider6, null), /* @__PURE__ */ React31.createElement(DialogContent2, null, /* @__PURE__ */ React31.createElement(DialogContentText2, null, dialogBody)), /* @__PURE__ */ React31.createElement(DialogActions2, null, /* @__PURE__ */ React31.createElement(
2087
2267
  Button2,
2088
2268
  {
2089
2269
  variant: "contained",
@@ -2091,8 +2271,8 @@ function ForceDeleteDialog({
2091
2271
  onClick: handleCancel,
2092
2272
  disabled: forceDeletePost.isPending
2093
2273
  },
2094
- __19("Cancel", "elementor")
2095
- ), /* @__PURE__ */ React28.createElement(
2274
+ __20("Cancel", "elementor")
2275
+ ), /* @__PURE__ */ React31.createElement(
2096
2276
  Button2,
2097
2277
  {
2098
2278
  variant: "contained",
@@ -2100,20 +2280,20 @@ function ForceDeleteDialog({
2100
2280
  onClick: () => void handleDelete(),
2101
2281
  disabled: forceDeletePost.isPending
2102
2282
  },
2103
- !forceDeletePost.isPending ? __19("Delete permanently", "elementor") : /* @__PURE__ */ React28.createElement(CircularProgress3, null)
2283
+ !forceDeletePost.isPending ? __20("Delete permanently", "elementor") : /* @__PURE__ */ React31.createElement(CircularProgress3, null)
2104
2284
  )));
2105
2285
  }
2106
2286
 
2107
2287
  // src/components/panel/actions-menu/actions/rename.tsx
2108
- import * as React29 from "react";
2288
+ import * as React32 from "react";
2109
2289
  import { EraseIcon } from "@elementor/icons";
2110
- import { __ as __20 } from "@wordpress/i18n";
2290
+ import { __ as __21 } from "@wordpress/i18n";
2111
2291
  function Rename({ post }) {
2112
2292
  const { setEditMode } = usePostListContext();
2113
- return /* @__PURE__ */ React29.createElement(
2293
+ return /* @__PURE__ */ React32.createElement(
2114
2294
  ActionMenuItem,
2115
2295
  {
2116
- title: __20("Rename", "elementor"),
2296
+ title: __21("Rename", "elementor"),
2117
2297
  icon: EraseIcon,
2118
2298
  MenuItemProps: {
2119
2299
  disabled: !post.user_can.edit,
@@ -2131,9 +2311,9 @@ function Rename({ post }) {
2131
2311
  }
2132
2312
 
2133
2313
  // src/components/panel/actions-menu/actions/restore.tsx
2134
- import * as React30 from "react";
2314
+ import * as React33 from "react";
2135
2315
  import { RefreshIcon } from "@elementor/icons";
2136
- import { __ as __21 } from "@wordpress/i18n";
2316
+ import { __ as __22 } from "@wordpress/i18n";
2137
2317
  function Restore({ post }) {
2138
2318
  const { setError, type } = usePostListContext();
2139
2319
  const { restorePost } = usePostActions(type);
@@ -2144,11 +2324,11 @@ function Restore({ post }) {
2144
2324
  setError();
2145
2325
  }
2146
2326
  };
2147
- return /* @__PURE__ */ React30.createElement(
2327
+ return /* @__PURE__ */ React33.createElement(
2148
2328
  ActionMenuItem,
2149
2329
  {
2150
- description: __21("Restored as draft", "elementor"),
2151
- title: __21("Restore", "elementor"),
2330
+ description: __22("Restored as draft", "elementor"),
2331
+ title: __22("Restore", "elementor"),
2152
2332
  icon: RefreshIcon,
2153
2333
  MenuItemProps: {
2154
2334
  disabled: restorePost.isPending || !post.user_can.delete,
@@ -2159,11 +2339,11 @@ function Restore({ post }) {
2159
2339
  }
2160
2340
 
2161
2341
  // src/components/panel/actions-menu/actions/set-home.tsx
2162
- import * as React31 from "react";
2342
+ import * as React34 from "react";
2163
2343
  import { ConfirmationDialog } from "@elementor/editor-ui";
2164
2344
  import { HomeIcon } from "@elementor/icons";
2165
2345
  import { Button as Button3, CircularProgress as CircularProgress4, DialogActions as DialogActions3 } from "@elementor/ui";
2166
- import { __ as __22 } from "@wordpress/i18n";
2346
+ import { __ as __23 } from "@wordpress/i18n";
2167
2347
 
2168
2348
  // src/hooks/use-homepage-actions.ts
2169
2349
  import { useMutation as useMutation2, useQueryClient as useQueryClient2 } from "@elementor/query";
@@ -2221,8 +2401,8 @@ function SetHome({ post, closeMenu, onRequestRemoveHomepage }) {
2221
2401
  const isSetHomeDisabled = !canManageOptions || !isPostPublished || updateSettingsMutation.isPending;
2222
2402
  const isRemoveHomeDisabled = !canManageOptions || updateSettingsMutation.isPending;
2223
2403
  const isDisabled = isPostHomepage ? isRemoveHomeDisabled : isSetHomeDisabled;
2224
- const title = isPostHomepage ? __22("Remove as homepage", "elementor") : __22("Set as homepage", "elementor");
2225
- return /* @__PURE__ */ React31.createElement(
2404
+ const title = isPostHomepage ? __23("Remove as homepage", "elementor") : __23("Set as homepage", "elementor");
2405
+ return /* @__PURE__ */ React34.createElement(
2226
2406
  ActionMenuItem,
2227
2407
  {
2228
2408
  title,
@@ -2259,11 +2439,11 @@ function RemoveHomepageDialog({ open, onClose }) {
2259
2439
  }
2260
2440
  };
2261
2441
  const isPending = updateSettingsMutation.isPending;
2262
- const removeHomepageLabel = __22("Remove as homepage", "elementor");
2263
- return /* @__PURE__ */ React31.createElement(ConfirmationDialog, { open: true, onClose: handleCancel }, /* @__PURE__ */ React31.createElement(ConfirmationDialog.Title, { iconColor: "secondary" }, __22("Remove this page as your homepage?", "elementor")), /* @__PURE__ */ React31.createElement(ConfirmationDialog.Content, null, /* @__PURE__ */ React31.createElement(ConfirmationDialog.ContentText, null, __22(
2442
+ const removeHomepageLabel = __23("Remove as homepage", "elementor");
2443
+ return /* @__PURE__ */ React34.createElement(ConfirmationDialog, { open: true, onClose: handleCancel }, /* @__PURE__ */ React34.createElement(ConfirmationDialog.Title, { iconColor: "secondary" }, __23("Remove this page as your homepage?", "elementor")), /* @__PURE__ */ React34.createElement(ConfirmationDialog.Content, null, /* @__PURE__ */ React34.createElement(ConfirmationDialog.ContentText, null, __23(
2264
2444
  "Your homepage will go back to showing your latest posts. You can set a page as your homepage again at any time.",
2265
2445
  "elementor"
2266
- ))), /* @__PURE__ */ React31.createElement(DialogActions3, null, /* @__PURE__ */ React31.createElement(Button3, { color: "secondary", disabled: isPending, onClick: handleCancel }, __22("Not now", "elementor")), /* @__PURE__ */ React31.createElement(
2446
+ ))), /* @__PURE__ */ React34.createElement(DialogActions3, null, /* @__PURE__ */ React34.createElement(Button3, { color: "secondary", disabled: isPending, onClick: handleCancel }, __23("Not now", "elementor")), /* @__PURE__ */ React34.createElement(
2267
2447
  Button3,
2268
2448
  {
2269
2449
  color: "secondary",
@@ -2272,18 +2452,18 @@ function RemoveHomepageDialog({ open, onClose }) {
2272
2452
  sx: { ml: 1 },
2273
2453
  variant: "contained"
2274
2454
  },
2275
- !isPending ? removeHomepageLabel : /* @__PURE__ */ React31.createElement(CircularProgress4, null)
2455
+ !isPending ? removeHomepageLabel : /* @__PURE__ */ React34.createElement(CircularProgress4, null)
2276
2456
  )));
2277
2457
  }
2278
2458
 
2279
2459
  // src/components/panel/actions-menu/actions/view.tsx
2280
- import * as React32 from "react";
2460
+ import * as React35 from "react";
2281
2461
  import { EyeIcon } from "@elementor/icons";
2282
- import { __ as __23 } from "@wordpress/i18n";
2462
+ import { __ as __24 } from "@wordpress/i18n";
2283
2463
  function View({ post }) {
2284
2464
  const { type } = usePostListContext();
2285
- const title = __23("View %s", "elementor").replace("%s", postTypesMap[type].labels.singular_name);
2286
- return /* @__PURE__ */ React32.createElement(
2465
+ const title = __24("View %s", "elementor").replace("%s", postTypesMap[type].labels.singular_name);
2466
+ return /* @__PURE__ */ React35.createElement(
2287
2467
  ActionMenuItem,
2288
2468
  {
2289
2469
  title,
@@ -2310,17 +2490,17 @@ var DisabledPostTooltip = ({
2310
2490
  postTypeSlug
2311
2491
  }) => {
2312
2492
  if (isDisabled) {
2313
- const title = /* @__PURE__ */ React33.createElement(Typography6, { variant: "caption" }, getCannotEditPanelItemMessage(postTypeSlug), /* @__PURE__ */ React33.createElement("br", null), __24("To edit it directly, contact the site owner", "elementor"));
2314
- return /* @__PURE__ */ React33.createElement(Tooltip4, { title, placement: "bottom", arrow: false }, /* @__PURE__ */ React33.createElement("span", null, children));
2493
+ const title = /* @__PURE__ */ React36.createElement(Typography7, { variant: "caption" }, getCannotEditPanelItemMessage(postTypeSlug), /* @__PURE__ */ React36.createElement("br", null), __25("To edit it directly, contact the site owner", "elementor"));
2494
+ return /* @__PURE__ */ React36.createElement(Tooltip5, { title, placement: "bottom", arrow: false }, /* @__PURE__ */ React36.createElement("span", null, children));
2315
2495
  }
2316
- return /* @__PURE__ */ React33.createElement(React33.Fragment, null, children);
2496
+ return /* @__PURE__ */ React36.createElement(React36.Fragment, null, children);
2317
2497
  };
2318
2498
  function ListItemView({ post }) {
2319
2499
  const { type } = usePostListContext();
2320
- const [isRemoveHomeDialogOpen, setIsRemoveHomeDialogOpen] = useState8(false);
2500
+ const [isRemoveHomeDialogOpen, setIsRemoveHomeDialogOpen] = useState9(false);
2321
2501
  const activeDocument = useActiveDocument3();
2322
2502
  const navigateToDocument = useNavigateToDocument3();
2323
- const popupState = usePopupState4({
2503
+ const popupState = usePopupState5({
2324
2504
  variant: "popover",
2325
2505
  popupId: "post-actions",
2326
2506
  disableAutoFocus: true
@@ -2337,7 +2517,7 @@ function ListItemView({ post }) {
2337
2517
  const isHome = Boolean(post.isHome);
2338
2518
  const trailingActionCount = 1 + (showListItemActions ? 1 : 0) + (isHome ? 1 : 0);
2339
2519
  const allowRowHover = !isEditBlocked;
2340
- const listRow = /* @__PURE__ */ React33.createElement(
2520
+ const listRow = /* @__PURE__ */ React36.createElement(
2341
2521
  ListItem2,
2342
2522
  {
2343
2523
  disablePadding: true,
@@ -2345,10 +2525,10 @@ function ListItemView({ post }) {
2345
2525
  ...getContentPanelListItemSx(trailingActionCount),
2346
2526
  ...getContentPanelListItemRowStateSx(isActive, allowRowHover)
2347
2527
  },
2348
- secondaryAction: /* @__PURE__ */ React33.createElement(Stack6, { alignItems: "center", direction: "row", spacing: 0 }, showListItemActions && /* @__PURE__ */ React33.createElement(SiteContentListItemActionsSlot, { post, title }), isHome && /* @__PURE__ */ React33.createElement(HomeIcon2, { color: "disabled", fontSize: "tiny", titleAccess: __24("Homepage", "elementor") }), /* @__PURE__ */ React33.createElement(
2528
+ secondaryAction: /* @__PURE__ */ React36.createElement(Stack7, { alignItems: "center", direction: "row", spacing: 0 }, showListItemActions && /* @__PURE__ */ React36.createElement(SiteContentListItemActionsSlot, { post, title }), isHome && /* @__PURE__ */ React36.createElement(HomeIcon2, { color: "disabled", fontSize: "tiny", titleAccess: __25("Homepage", "elementor") }), /* @__PURE__ */ React36.createElement(
2349
2529
  IconButton4,
2350
2530
  {
2351
- "aria-label": __24("More actions", "elementor"),
2531
+ "aria-label": __25("More actions", "elementor"),
2352
2532
  size: "tiny",
2353
2533
  ...menuTriggerProps,
2354
2534
  onClick: (event) => {
@@ -2356,10 +2536,10 @@ function ListItemView({ post }) {
2356
2536
  menuTriggerProps.onClick?.(event);
2357
2537
  }
2358
2538
  },
2359
- /* @__PURE__ */ React33.createElement(DotsVerticalIcon, { fontSize: "tiny" })
2539
+ /* @__PURE__ */ React36.createElement(DotsVerticalIcon, { fontSize: "tiny" })
2360
2540
  ))
2361
2541
  },
2362
- /* @__PURE__ */ React33.createElement(
2542
+ /* @__PURE__ */ React36.createElement(
2363
2543
  ListItemButton2,
2364
2544
  {
2365
2545
  dense: true,
@@ -2375,17 +2555,17 @@ function ListItemView({ post }) {
2375
2555
  shape: "rounded",
2376
2556
  sx: contentPanelListItemButtonSx
2377
2557
  },
2378
- /* @__PURE__ */ React33.createElement(ListItemText6, { disableTypography: true, sx: { flex: 1, minWidth: 0 } }, /* @__PURE__ */ React33.createElement(PageTitleAndStatus, { title, status }))
2558
+ /* @__PURE__ */ React36.createElement(ListItemText6, { disableTypography: true, sx: { flex: 1, minWidth: 0 } }, /* @__PURE__ */ React36.createElement(PageTitleAndStatus, { title, status }))
2379
2559
  )
2380
2560
  );
2381
- return /* @__PURE__ */ React33.createElement(React33.Fragment, null, isEditBlocked ? /* @__PURE__ */ React33.createElement(DisabledPostTooltip, { isDisabled: true, postTypeSlug: type }, listRow) : listRow, /* @__PURE__ */ React33.createElement(
2561
+ return /* @__PURE__ */ React36.createElement(React36.Fragment, null, isEditBlocked ? /* @__PURE__ */ React36.createElement(DisabledPostTooltip, { isDisabled: true, postTypeSlug: type }, listRow) : listRow, /* @__PURE__ */ React36.createElement(
2382
2562
  Menu2,
2383
2563
  {
2384
2564
  PaperProps: { sx: { mt: 2, width: 200 } },
2385
2565
  MenuListProps: { dense: true },
2386
2566
  ...bindMenu2(popupState)
2387
2567
  },
2388
- isTrashed ? /* @__PURE__ */ React33.createElement(React33.Fragment, null, /* @__PURE__ */ React33.createElement(Restore, { post }), /* @__PURE__ */ React33.createElement(ForceDelete, { post })) : /* @__PURE__ */ React33.createElement(React33.Fragment, null, /* @__PURE__ */ React33.createElement(Rename, { post }), /* @__PURE__ */ React33.createElement(Duplicate, { post, popupState }), /* @__PURE__ */ React33.createElement(Delete, { post }), /* @__PURE__ */ React33.createElement(View, { post }), type === "page" && /* @__PURE__ */ React33.createElement(React33.Fragment, null, /* @__PURE__ */ React33.createElement(Divider6, null), /* @__PURE__ */ React33.createElement(
2568
+ isTrashed ? /* @__PURE__ */ React36.createElement(React36.Fragment, null, /* @__PURE__ */ React36.createElement(Restore, { post }), /* @__PURE__ */ React36.createElement(ForceDelete, { post })) : /* @__PURE__ */ React36.createElement(React36.Fragment, null, /* @__PURE__ */ React36.createElement(Rename, { post }), /* @__PURE__ */ React36.createElement(Duplicate, { post, popupState }), /* @__PURE__ */ React36.createElement(Delete, { post }), /* @__PURE__ */ React36.createElement(View, { post }), type === "page" && /* @__PURE__ */ React36.createElement(React36.Fragment, null, /* @__PURE__ */ React36.createElement(Divider7, null), /* @__PURE__ */ React36.createElement(
2389
2569
  SetHome,
2390
2570
  {
2391
2571
  post,
@@ -2393,7 +2573,7 @@ function ListItemView({ post }) {
2393
2573
  onRequestRemoveHomepage: () => setIsRemoveHomeDialogOpen(true)
2394
2574
  }
2395
2575
  )))
2396
- ), /* @__PURE__ */ React33.createElement(
2576
+ ), /* @__PURE__ */ React36.createElement(
2397
2577
  RemoveHomepageDialog,
2398
2578
  {
2399
2579
  open: isRemoveHomeDialogOpen,
@@ -2406,25 +2586,25 @@ function ListItemView({ post }) {
2406
2586
  function PostListItem({ post }) {
2407
2587
  const { editMode } = usePostListContext();
2408
2588
  if ("rename" === editMode.mode && post?.id && post?.id === editMode.details.postId) {
2409
- return /* @__PURE__ */ React34.createElement(ListItemRename, { post });
2589
+ return /* @__PURE__ */ React37.createElement(ListItemRename, { post });
2410
2590
  }
2411
2591
  if ("create" === editMode.mode && !post) {
2412
- return /* @__PURE__ */ React34.createElement(ListItemCreate, null);
2592
+ return /* @__PURE__ */ React37.createElement(ListItemCreate, null);
2413
2593
  }
2414
2594
  if ("duplicate" === editMode.mode && !post) {
2415
- return /* @__PURE__ */ React34.createElement(ListItemDuplicate, null);
2595
+ return /* @__PURE__ */ React37.createElement(ListItemDuplicate, null);
2416
2596
  }
2417
2597
  if (!post) {
2418
2598
  return null;
2419
2599
  }
2420
- return /* @__PURE__ */ React34.createElement(ListItemView, { post });
2600
+ return /* @__PURE__ */ React37.createElement(ListItemView, { post });
2421
2601
  }
2422
2602
 
2423
2603
  // src/components/panel/posts-list/post-list-pagination-actions.tsx
2424
- import * as React35 from "react";
2604
+ import * as React38 from "react";
2425
2605
  import { CollapseIcon as CollapseIcon2 } from "@elementor/editor-ui";
2426
- import { Box as Box10, Button as Button4, CircularProgress as CircularProgress5, Stack as Stack7 } from "@elementor/ui";
2427
- import { __ as __25 } from "@wordpress/i18n";
2606
+ import { Box as Box10, Button as Button4, CircularProgress as CircularProgress5, Stack as Stack8 } from "@elementor/ui";
2607
+ import { __ as __26 } from "@wordpress/i18n";
2428
2608
  var listPaginationButtonProps = {
2429
2609
  color: "secondary",
2430
2610
  size: "small",
@@ -2441,28 +2621,28 @@ function PostListPaginationActions({
2441
2621
  if (!canLoadMore && !canShowLess) {
2442
2622
  return null;
2443
2623
  }
2444
- const loadMoreLabel = __25("Load more", "elementor");
2445
- const showLessLabel = __25("Show less", "elementor");
2446
- const loadMoreButton = /* @__PURE__ */ React35.createElement(
2624
+ const loadMoreLabel = __26("Load more", "elementor");
2625
+ const showLessLabel = __26("Show less", "elementor");
2626
+ const loadMoreButton = /* @__PURE__ */ React38.createElement(
2447
2627
  Button4,
2448
2628
  {
2449
2629
  ...listPaginationButtonProps,
2450
2630
  ref: loadMoreButtonRef,
2451
2631
  "aria-label": loadMoreLabel,
2452
2632
  disabled: isLoadingMore,
2453
- endIcon: isLoadingMore ? void 0 : /* @__PURE__ */ React35.createElement(CollapseIcon2, { open: false }),
2633
+ endIcon: isLoadingMore ? void 0 : /* @__PURE__ */ React38.createElement(CollapseIcon2, { open: false }),
2454
2634
  fullWidth: true,
2455
2635
  onClick: onLoadMore,
2456
2636
  sx: { flex: 1, my: 0.5 }
2457
2637
  },
2458
- isLoadingMore ? /* @__PURE__ */ React35.createElement(CircularProgress5, { size: 20 }) : loadMoreLabel
2638
+ isLoadingMore ? /* @__PURE__ */ React38.createElement(CircularProgress5, { size: 20 }) : loadMoreLabel
2459
2639
  );
2460
- const showLessButton = /* @__PURE__ */ React35.createElement(
2640
+ const showLessButton = /* @__PURE__ */ React38.createElement(
2461
2641
  Button4,
2462
2642
  {
2463
2643
  ...listPaginationButtonProps,
2464
2644
  "aria-label": showLessLabel,
2465
- endIcon: /* @__PURE__ */ React35.createElement(CollapseIcon2, { open: true }),
2645
+ endIcon: /* @__PURE__ */ React38.createElement(CollapseIcon2, { open: true }),
2466
2646
  fullWidth: true,
2467
2647
  onClick: onShowLess,
2468
2648
  sx: { flex: 1, my: 0.5 }
@@ -2470,9 +2650,9 @@ function PostListPaginationActions({
2470
2650
  showLessLabel
2471
2651
  );
2472
2652
  if (canShowLess && canLoadMore) {
2473
- return /* @__PURE__ */ React35.createElement(Box10, { sx: { px: 2, width: "100%" } }, /* @__PURE__ */ React35.createElement(Stack7, { direction: "row", spacing: 1 }, showLessButton, loadMoreButton));
2653
+ return /* @__PURE__ */ React38.createElement(Box10, { sx: { px: 2, width: "100%" } }, /* @__PURE__ */ React38.createElement(Stack8, { direction: "row", spacing: 1 }, showLessButton, loadMoreButton));
2474
2654
  }
2475
- return /* @__PURE__ */ React35.createElement(Box10, { sx: { px: 2, width: "100%" } }, canShowLess ? showLessButton : loadMoreButton);
2655
+ return /* @__PURE__ */ React38.createElement(Box10, { sx: { px: 2, width: "100%" } }, canShowLess ? showLessButton : loadMoreButton);
2476
2656
  }
2477
2657
 
2478
2658
  // src/components/panel/posts-list/posts-collapsible-list.tsx
@@ -2480,7 +2660,7 @@ function PostsCollapsibleListContent({ isOpenByDefault = false }) {
2480
2660
  const { type, editMode, resetEditMode, setEditMode } = usePostListContext();
2481
2661
  const { registerSection, unregisterSection } = useContentPanelCoordinator();
2482
2662
  const { clearStatusFilters, debouncedSearch, siteContentSort, statusFilters } = useSiteContentSectionToolbar();
2483
- const [isOpen, setIsOpen] = useState9(isOpenByDefault);
2663
+ const [isOpen, setIsOpen] = useState10(isOpenByDefault);
2484
2664
  const focusAfterShowLessRef = useRef5(false);
2485
2665
  const listTopRef = useRef5(null);
2486
2666
  const loadMoreButtonRef = useRef5(null);
@@ -2500,12 +2680,12 @@ function PostsCollapsibleListContent({ isOpenByDefault = false }) {
2500
2680
  const { data: homepageId } = useHomepage();
2501
2681
  const isPageType = type === "page";
2502
2682
  const statusFiltersKey = serializeSiteContentStatusFilters(statusFilters);
2503
- useEffect3(() => {
2683
+ useEffect4(() => {
2504
2684
  if (isTrashFilter) {
2505
2685
  resetEditMode();
2506
2686
  }
2507
2687
  }, [isTrashFilter, resetEditMode]);
2508
- useEffect3(() => {
2688
+ useEffect4(() => {
2509
2689
  registerSection(type, {
2510
2690
  setExpanded: setIsOpen,
2511
2691
  startCreate: () => {
@@ -2517,7 +2697,7 @@ function PostsCollapsibleListContent({ isOpenByDefault = false }) {
2517
2697
  });
2518
2698
  return () => unregisterSection(type);
2519
2699
  }, [clearStatusFilters, registerSection, setEditMode, statusFilters, type, unregisterSection]);
2520
- const filteredPosts = useMemo5(() => {
2700
+ const filteredPosts = useMemo6(() => {
2521
2701
  if (!posts) {
2522
2702
  return [];
2523
2703
  }
@@ -2542,7 +2722,7 @@ function PostsCollapsibleListContent({ isOpenByDefault = false }) {
2542
2722
  resetKey: `${type}:${debouncedSearch}:${statusFiltersKey}:${siteContentSort}`,
2543
2723
  totalCount: total
2544
2724
  });
2545
- const displayedPosts = useMemo5(
2725
+ const displayedPosts = useMemo6(
2546
2726
  () => filteredPosts.slice(0, pagination.visibleCount),
2547
2727
  [filteredPosts, pagination.visibleCount]
2548
2728
  );
@@ -2554,7 +2734,7 @@ function PostsCollapsibleListContent({ isOpenByDefault = false }) {
2554
2734
  listTop.scrollIntoView({ block: "nearest" });
2555
2735
  }
2556
2736
  };
2557
- useEffect3(() => {
2737
+ useEffect4(() => {
2558
2738
  if (!focusAfterShowLessRef.current) {
2559
2739
  return;
2560
2740
  }
@@ -2566,16 +2746,16 @@ function PostsCollapsibleListContent({ isOpenByDefault = false }) {
2566
2746
  }
2567
2747
  sectionHeaderRef.current?.focus();
2568
2748
  }, [pagination.canLoadMore, pagination.visibleCount]);
2569
- useEffect3(() => {
2749
+ useEffect4(() => {
2570
2750
  if ((debouncedSearch || hasActiveSiteContentStatusFilters(statusFilters)) && filteredPosts.length > 0) {
2571
2751
  setIsOpen(true);
2572
2752
  }
2573
2753
  }, [debouncedSearch, filteredPosts.length, statusFilters]);
2574
2754
  if (postsError) {
2575
- return /* @__PURE__ */ React36.createElement(ErrorState, null);
2755
+ return /* @__PURE__ */ React39.createElement(ErrorState, null);
2576
2756
  }
2577
2757
  if (postsPending && !posts?.length) {
2578
- return /* @__PURE__ */ React36.createElement(Box11, { sx: { px: 2 } }, /* @__PURE__ */ React36.createElement(Box11, null, /* @__PURE__ */ React36.createElement(Skeleton, { sx: { my: 3 }, animation: "wave", variant: "rounded", width: "100%", height: "24px" }), /* @__PURE__ */ React36.createElement(Skeleton, { sx: { my: 3 }, animation: "wave", variant: "rounded", width: "70%", height: "24px" }), /* @__PURE__ */ React36.createElement(Skeleton, { sx: { my: 3 }, animation: "wave", variant: "rounded", width: "70%", height: "24px" }), /* @__PURE__ */ React36.createElement(Skeleton, { sx: { my: 3 }, animation: "wave", variant: "rounded", width: "70%", height: "24px" })));
2758
+ return /* @__PURE__ */ React39.createElement(Box11, { sx: { px: 2 } }, /* @__PURE__ */ React39.createElement(Box11, null, /* @__PURE__ */ React39.createElement(Skeleton, { sx: { my: 3 }, animation: "wave", variant: "rounded", width: "100%", height: "24px" }), /* @__PURE__ */ React39.createElement(Skeleton, { sx: { my: 3 }, animation: "wave", variant: "rounded", width: "70%", height: "24px" }), /* @__PURE__ */ React39.createElement(Skeleton, { sx: { my: 3 }, animation: "wave", variant: "rounded", width: "70%", height: "24px" }), /* @__PURE__ */ React39.createElement(Skeleton, { sx: { my: 3 }, animation: "wave", variant: "rounded", width: "70%", height: "24px" })));
2579
2759
  }
2580
2760
  const displayCount = total;
2581
2761
  const sectionTitle = postTypesMap[type].labels.plural_name;
@@ -2583,10 +2763,10 @@ function PostsCollapsibleListContent({ isOpenByDefault = false }) {
2583
2763
  const countChipLabel = isNarrowed && baselineTotal !== void 0 ? `${total} / ${baselineTotal}` : void 0;
2584
2764
  const searchAriaLabel = sprintf5(
2585
2765
  /* translators: %s: document type plural label. */
2586
- __26("Search %s", "elementor"),
2766
+ __27("Search %s", "elementor"),
2587
2767
  sectionTitle
2588
2768
  );
2589
- return /* @__PURE__ */ React36.createElement(
2769
+ return /* @__PURE__ */ React39.createElement(
2590
2770
  CollapsibleList,
2591
2771
  {
2592
2772
  count: displayCount,
@@ -2594,22 +2774,22 @@ function PostsCollapsibleListContent({ isOpenByDefault = false }) {
2594
2774
  headerRef: sectionHeaderRef,
2595
2775
  isOpen,
2596
2776
  onOpenChange: setIsOpen,
2597
- sectionToolbar: /* @__PURE__ */ React36.createElement(
2777
+ sectionToolbar: /* @__PURE__ */ React39.createElement(
2598
2778
  ContentPanelSectionToolbar,
2599
2779
  {
2600
- addAction: isTrashFilter ? void 0 : /* @__PURE__ */ React36.createElement(SectionAddButton, { onBeforeCreate: () => setIsOpen(true) }),
2780
+ addAction: isTrashFilter ? void 0 : /* @__PURE__ */ React39.createElement(SectionAddButton, { onBeforeCreate: () => setIsOpen(true) }),
2601
2781
  searchAriaLabel
2602
2782
  }
2603
2783
  ),
2604
2784
  title: sectionTitle
2605
2785
  },
2606
- showNoResults && /* @__PURE__ */ React36.createElement(Box11, { sx: { py: 2, px: 2 } }, /* @__PURE__ */ React36.createElement(Typography7, { variant: "body2", color: "text.secondary" }, __26("No results found", "elementor"))),
2607
- /* @__PURE__ */ React36.createElement(Box11, { ref: listTopRef }),
2786
+ showNoResults && /* @__PURE__ */ React39.createElement(Box11, { sx: { py: 2, px: 2 } }, /* @__PURE__ */ React39.createElement(Typography8, { variant: "body2", color: "text.secondary" }, __27("No results found", "elementor"))),
2787
+ /* @__PURE__ */ React39.createElement(Box11, { ref: listTopRef }),
2608
2788
  displayedPosts.map((post) => {
2609
- return /* @__PURE__ */ React36.createElement(PostListItem, { key: post.id, post });
2789
+ return /* @__PURE__ */ React39.createElement(PostListItem, { key: post.id, post });
2610
2790
  }),
2611
- !isTrashFilter && ["duplicate", "create"].includes(editMode.mode) && /* @__PURE__ */ React36.createElement(PostListItem, null),
2612
- /* @__PURE__ */ React36.createElement(
2791
+ !isTrashFilter && ["duplicate", "create"].includes(editMode.mode) && /* @__PURE__ */ React39.createElement(PostListItem, null),
2792
+ /* @__PURE__ */ React39.createElement(
2613
2793
  PostListPaginationActions,
2614
2794
  {
2615
2795
  canLoadMore: pagination.canLoadMore,
@@ -2624,15 +2804,15 @@ function PostsCollapsibleListContent({ isOpenByDefault = false }) {
2624
2804
  }
2625
2805
  function PostsCollapsibleList(props) {
2626
2806
  const { type } = usePostListContext();
2627
- return /* @__PURE__ */ React36.createElement(SiteContentSectionToolbarProvider, { statusFilterCountSlugs: [type] }, /* @__PURE__ */ React36.createElement(PostsCollapsibleListContent, { ...props }));
2807
+ return /* @__PURE__ */ React39.createElement(SiteContentSectionToolbarProvider, { statusFilterCountSlugs: [type] }, /* @__PURE__ */ React39.createElement(PostsCollapsibleListContent, { ...props }));
2628
2808
  }
2629
2809
 
2630
2810
  // src/components/panel/user-load-error.tsx
2631
- import * as React37 from "react";
2632
- import { Box as Box12, Typography as Typography8 } from "@elementor/ui";
2633
- import { __ as __27 } from "@wordpress/i18n";
2811
+ import * as React40 from "react";
2812
+ import { Box as Box12, Typography as Typography9 } from "@elementor/ui";
2813
+ import { __ as __28 } from "@wordpress/i18n";
2634
2814
  function UserLoadError() {
2635
- return /* @__PURE__ */ React37.createElement(Box12, { sx: { px: 2, py: 2 } }, /* @__PURE__ */ React37.createElement(Typography8, { variant: "body2", color: "text.secondary" }, __27(
2815
+ return /* @__PURE__ */ React40.createElement(Box12, { sx: { px: 2, py: 2 } }, /* @__PURE__ */ React40.createElement(Typography9, { variant: "body2", color: "text.secondary" }, __28(
2636
2816
  "We couldn\u2019t load your content permissions. Try closing and reopening this panel.",
2637
2817
  "elementor"
2638
2818
  )));
@@ -2646,22 +2826,31 @@ function ShellPanelBodyContent({
2646
2826
  showUserLoadError
2647
2827
  }) {
2648
2828
  if (isUserPending) {
2649
- return /* @__PURE__ */ React38.createElement(Stack8, { spacing: 1, sx: { px: 2, py: 1 } }, /* @__PURE__ */ React38.createElement(Skeleton2, { animation: "wave", height: 28, variant: "rounded", width: "100%" }), /* @__PURE__ */ React38.createElement(Skeleton2, { animation: "wave", height: 28, variant: "rounded", width: "80%" }));
2829
+ return /* @__PURE__ */ React41.createElement(Stack9, { spacing: 1, sx: { px: 2, py: 1 } }, /* @__PURE__ */ React41.createElement(Skeleton2, { animation: "wave", height: 28, variant: "rounded", width: "100%" }), /* @__PURE__ */ React41.createElement(Skeleton2, { animation: "wave", height: 28, variant: "rounded", width: "80%" }));
2650
2830
  }
2651
2831
  if (showUserLoadError) {
2652
- return /* @__PURE__ */ React38.createElement(UserLoadError, null);
2832
+ return /* @__PURE__ */ React41.createElement(UserLoadError, null);
2653
2833
  }
2834
+ return /* @__PURE__ */ React41.createElement(ShellPanelBodySections, { accessiblePostTypes, onListError });
2835
+ }
2836
+ function ShellPanelBodySections({
2837
+ accessiblePostTypes,
2838
+ onListError
2839
+ }) {
2840
+ const { isSectionVisible } = useSiteContentPanelSectionsFilter();
2654
2841
  const extraSections = getSiteContentSections();
2655
- return /* @__PURE__ */ React38.createElement(List2, { dense: true, disablePadding: true, sx: { py: 0, width: "100%" } }, accessiblePostTypes.map((postTypeSlug, index) => /* @__PURE__ */ React38.createElement(PostListContextProvider, { key: postTypeSlug, type: postTypeSlug, setError: onListError }, /* @__PURE__ */ React38.createElement(PostsCollapsibleList, { isOpenByDefault: index === 0 }))), extraSections.map((section) => /* @__PURE__ */ React38.createElement(React38.Fragment, { key: section.id }, section.render())));
2842
+ const visiblePostTypes = accessiblePostTypes.filter((postTypeSlug) => isSectionVisible(postTypeSlug));
2843
+ const visibleSections = extraSections.filter((section) => isSectionVisible(section.id));
2844
+ return /* @__PURE__ */ React41.createElement(List2, { dense: true, disablePadding: true, sx: { py: 0, width: "100%" } }, visiblePostTypes.map((postTypeSlug, index) => /* @__PURE__ */ React41.createElement(PostListContextProvider, { key: postTypeSlug, type: postTypeSlug, setError: onListError }, /* @__PURE__ */ React41.createElement(PostsCollapsibleList, { isOpenByDefault: index === 0 }))), visibleSections.map((section) => /* @__PURE__ */ React41.createElement(React41.Fragment, { key: section.id }, section.render())));
2656
2845
  }
2657
2846
 
2658
2847
  // src/components/panel/shell.tsx
2659
2848
  var Shell = () => {
2660
2849
  const sidebarPanelChrome = isSidebarEnabled();
2661
- const [isErrorSnackbarOpen, setIsErrorSnackbarOpen] = useState10(false);
2850
+ const [isErrorSnackbarOpen, setIsErrorSnackbarOpen] = useState11(false);
2662
2851
  const { accessiblePostTypes, isUserPending, showUserLoadError } = useAccessiblePanelPostTypes();
2663
- return /* @__PURE__ */ React39.createElement(ContentPanelCoordinatorProvider, null, /* @__PURE__ */ React39.createElement(Panel, null, /* @__PURE__ */ React39.createElement(PanelHeader, null, /* @__PURE__ */ React39.createElement(
2664
- Stack9,
2852
+ return /* @__PURE__ */ React42.createElement(ContentPanelCoordinatorProvider, null, /* @__PURE__ */ React42.createElement(SiteContentPanelSectionsFilterProvider, null, /* @__PURE__ */ React42.createElement(Panel, null, /* @__PURE__ */ React42.createElement(PanelHeader, null, /* @__PURE__ */ React42.createElement(
2853
+ Stack10,
2665
2854
  {
2666
2855
  alignItems: "center",
2667
2856
  direction: "row",
@@ -2671,9 +2860,10 @@ var Shell = () => {
2671
2860
  ...sidebarPanelChrome ? {} : { p: 1, pl: 2 }
2672
2861
  }
2673
2862
  },
2674
- /* @__PURE__ */ React39.createElement(PanelHeaderTitle, { sx: { flex: 1, minWidth: 0, textAlign: "start" } }, __28("Site content", "elementor")),
2675
- /* @__PURE__ */ React39.createElement(ContentPanelHeaderAdd, null)
2676
- )), /* @__PURE__ */ React39.createElement(Divider7, null), /* @__PURE__ */ React39.createElement(PanelBody, null, /* @__PURE__ */ React39.createElement(
2863
+ /* @__PURE__ */ React42.createElement(PanelHeaderTitle, { sx: { flex: 1, minWidth: 0, textAlign: "start" } }, __29("Site content", "elementor")),
2864
+ /* @__PURE__ */ React42.createElement(ContentPanelSectionsFilter, null),
2865
+ /* @__PURE__ */ React42.createElement(ContentPanelHeaderAdd, null)
2866
+ )), /* @__PURE__ */ React42.createElement(Divider8, null), /* @__PURE__ */ React42.createElement(PanelBody, null, /* @__PURE__ */ React42.createElement(
2677
2867
  ShellPanelBodyContent,
2678
2868
  {
2679
2869
  accessiblePostTypes,
@@ -2681,7 +2871,7 @@ var Shell = () => {
2681
2871
  onListError: () => setIsErrorSnackbarOpen(true),
2682
2872
  showUserLoadError
2683
2873
  }
2684
- ), /* @__PURE__ */ React39.createElement(error_snackbar_default, { open: isErrorSnackbarOpen, onClose: () => setIsErrorSnackbarOpen(false) }))));
2874
+ ), /* @__PURE__ */ React42.createElement(error_snackbar_default, { open: isErrorSnackbarOpen, onClose: () => setIsErrorSnackbarOpen(false) })))));
2685
2875
  };
2686
2876
  var shell_default = Shell;
2687
2877
 
@@ -2692,7 +2882,7 @@ var { panel, usePanelStatus, usePanelActions } = createPanel({
2692
2882
  });
2693
2883
 
2694
2884
  // src/components/top-bar/recently-edited.tsx
2695
- import * as React44 from "react";
2885
+ import * as React47 from "react";
2696
2886
  import {
2697
2887
  __useActiveDocument as useActiveDocument4,
2698
2888
  __useHostDocument as useHostDocument
@@ -2702,29 +2892,29 @@ import {
2702
2892
  bindMenu as bindMenu3,
2703
2893
  bindTrigger as bindTrigger3,
2704
2894
  Button as Button5,
2705
- Divider as Divider8,
2895
+ Divider as Divider9,
2706
2896
  ListItemText as ListItemText9,
2707
2897
  ListSubheader,
2708
2898
  Menu as Menu3,
2709
- MenuItem as MenuItem8,
2710
- usePopupState as usePopupState5
2899
+ MenuItem as MenuItem9,
2900
+ usePopupState as usePopupState6
2711
2901
  } from "@elementor/ui";
2712
- import { __ as __30 } from "@wordpress/i18n";
2902
+ import { __ as __31 } from "@wordpress/i18n";
2713
2903
 
2714
2904
  // src/components/top-bar/create-post-list-item.tsx
2715
- import * as React40 from "react";
2905
+ import * as React43 from "react";
2716
2906
  import { __useNavigateToDocument as useNavigateToDocument4 } from "@elementor/editor-documents";
2717
2907
  import { useMixpanel } from "@elementor/events";
2718
2908
  import { PlusIcon as PlusIcon2 } from "@elementor/icons";
2719
- import { CircularProgress as CircularProgress6, ListItemIcon as ListItemIcon4, ListItemText as ListItemText7, MenuItem as MenuItem6 } from "@elementor/ui";
2720
- import { __ as __29 } from "@wordpress/i18n";
2909
+ import { CircularProgress as CircularProgress6, ListItemIcon as ListItemIcon4, ListItemText as ListItemText7, MenuItem as MenuItem7 } from "@elementor/ui";
2910
+ import { __ as __30 } from "@wordpress/i18n";
2721
2911
 
2722
2912
  // src/hooks/use-create-page.ts
2723
- import { useState as useState11 } from "react";
2913
+ import { useState as useState12 } from "react";
2724
2914
  import apiFetch5 from "@wordpress/api-fetch";
2725
2915
  var endpointPath = "/elementor/v1/site-navigation/add-new-post";
2726
2916
  function useCreatePage() {
2727
- const [isLoading, setIsLoading] = useState11(false);
2917
+ const [isLoading, setIsLoading] = useState12(false);
2728
2918
  return {
2729
2919
  create: () => {
2730
2920
  setIsLoading(true);
@@ -2747,8 +2937,8 @@ function CreatePostListItem({ closePopup, ...props }) {
2747
2937
  const navigateToDocument = useNavigateToDocument4();
2748
2938
  const { data: user } = useUser();
2749
2939
  const { dispatchEvent, config } = useMixpanel();
2750
- return /* @__PURE__ */ React40.createElement(
2751
- MenuItem6,
2940
+ return /* @__PURE__ */ React43.createElement(
2941
+ MenuItem7,
2752
2942
  {
2753
2943
  disabled: isLoading || !user?.capabilities?.edit_pages,
2754
2944
  onClick: async () => {
@@ -2771,25 +2961,25 @@ function CreatePostListItem({ closePopup, ...props }) {
2771
2961
  },
2772
2962
  ...props
2773
2963
  },
2774
- /* @__PURE__ */ React40.createElement(ListItemIcon4, null, isLoading ? /* @__PURE__ */ React40.createElement(CircularProgress6, { size: "1.25rem" }) : /* @__PURE__ */ React40.createElement(PlusIcon2, { fontSize: "small" })),
2775
- /* @__PURE__ */ React40.createElement(
2964
+ /* @__PURE__ */ React43.createElement(ListItemIcon4, null, isLoading ? /* @__PURE__ */ React43.createElement(CircularProgress6, { size: "1.25rem" }) : /* @__PURE__ */ React43.createElement(PlusIcon2, { fontSize: "small" })),
2965
+ /* @__PURE__ */ React43.createElement(
2776
2966
  ListItemText7,
2777
2967
  {
2778
2968
  primaryTypographyProps: { variant: "body2" },
2779
- primary: __29("Add new page", "elementor")
2969
+ primary: __30("Add new page", "elementor")
2780
2970
  }
2781
2971
  )
2782
2972
  );
2783
2973
  }
2784
2974
 
2785
2975
  // src/components/top-bar/indicator.tsx
2786
- import * as React41 from "react";
2787
- import { Stack as Stack10, Tooltip as BaseTooltip, Typography as Typography9 } from "@elementor/ui";
2976
+ import * as React44 from "react";
2977
+ import { Stack as Stack11, Tooltip as BaseTooltip, Typography as Typography10 } from "@elementor/ui";
2788
2978
  function Indicator({ title, status }) {
2789
- return /* @__PURE__ */ React41.createElement(Tooltip5, { title }, /* @__PURE__ */ React41.createElement(Stack10, { component: "span", direction: "row", alignItems: "center", spacing: 0.5 }, /* @__PURE__ */ React41.createElement(Typography9, { component: "span", variant: "body2", sx: { maxWidth: "120px" }, noWrap: true }, title), status.value !== "publish" && /* @__PURE__ */ React41.createElement(Typography9, { component: "span", variant: "body2", sx: { fontStyle: "italic" } }, "(", status.label, ")")));
2979
+ return /* @__PURE__ */ React44.createElement(Tooltip6, { title }, /* @__PURE__ */ React44.createElement(Stack11, { component: "span", direction: "row", alignItems: "center", spacing: 0.5 }, /* @__PURE__ */ React44.createElement(Typography10, { component: "span", variant: "body2", sx: { maxWidth: "120px" }, noWrap: true }, title), status.value !== "publish" && /* @__PURE__ */ React44.createElement(Typography10, { component: "span", variant: "body2", sx: { fontStyle: "italic" } }, "(", status.label, ")")));
2790
2980
  }
2791
- function Tooltip5(props) {
2792
- return /* @__PURE__ */ React41.createElement(
2981
+ function Tooltip6(props) {
2982
+ return /* @__PURE__ */ React44.createElement(
2793
2983
  BaseTooltip,
2794
2984
  {
2795
2985
  PopperProps: {
@@ -2805,20 +2995,20 @@ function Tooltip5(props) {
2805
2995
  }
2806
2996
 
2807
2997
  // src/components/top-bar/post-list-item.tsx
2808
- import * as React43 from "react";
2998
+ import * as React46 from "react";
2809
2999
  import { __useNavigateToDocument as useNavigateToDocument5 } from "@elementor/editor-documents";
2810
3000
  import { useMixpanel as useMixpanel2 } from "@elementor/events";
2811
- import { ListItemText as ListItemText8, MenuItem as MenuItem7 } from "@elementor/ui";
3001
+ import { ListItemText as ListItemText8, MenuItem as MenuItem8 } from "@elementor/ui";
2812
3002
 
2813
3003
  // src/components/top-bar/chip-doc-type.tsx
2814
- import * as React42 from "react";
3004
+ import * as React45 from "react";
2815
3005
  import { PostTypeIcon as PostTypeIcon3 } from "@elementor/icons";
2816
3006
  import { Chip as Chip4 } from "@elementor/ui";
2817
3007
  var iconsMap2 = getIconsMap();
2818
3008
  function DocTypeChip({ postType, docType, label }) {
2819
3009
  const color = "elementor_library" === postType ? "global" : "accent";
2820
3010
  const Icon = iconsMap2[docType] || PostTypeIcon3;
2821
- return /* @__PURE__ */ React42.createElement(
3011
+ return /* @__PURE__ */ React45.createElement(
2822
3012
  Chip4,
2823
3013
  {
2824
3014
  component: "span",
@@ -2827,7 +3017,7 @@ function DocTypeChip({ postType, docType, label }) {
2827
3017
  label,
2828
3018
  "data-value": docType,
2829
3019
  color,
2830
- icon: /* @__PURE__ */ React42.createElement(Icon, null),
3020
+ icon: /* @__PURE__ */ React45.createElement(Icon, null),
2831
3021
  sx: { ml: 1, cursor: "inherit" }
2832
3022
  }
2833
3023
  );
@@ -2838,8 +3028,8 @@ function PostListItem2({ post, closePopup, ...props }) {
2838
3028
  const navigateToDocument = useNavigateToDocument5();
2839
3029
  const postTitle = useReverseHtmlEntities(post.title);
2840
3030
  const { dispatchEvent, config } = useMixpanel2();
2841
- return /* @__PURE__ */ React43.createElement(
2842
- MenuItem7,
3031
+ return /* @__PURE__ */ React46.createElement(
3032
+ MenuItem8,
2843
3033
  {
2844
3034
  disabled: !post.user_can.edit,
2845
3035
  onClick: async () => {
@@ -2861,7 +3051,7 @@ function PostListItem2({ post, closePopup, ...props }) {
2861
3051
  },
2862
3052
  ...props
2863
3053
  },
2864
- /* @__PURE__ */ React43.createElement(
3054
+ /* @__PURE__ */ React46.createElement(
2865
3055
  ListItemText8,
2866
3056
  {
2867
3057
  sx: { flexGrow: 0 },
@@ -2869,7 +3059,7 @@ function PostListItem2({ post, closePopup, ...props }) {
2869
3059
  primary: postTitle
2870
3060
  }
2871
3061
  ),
2872
- /* @__PURE__ */ React43.createElement(DocTypeChip, { postType: post.type.post_type, docType: post.type.doc_type, label: post.type.label })
3062
+ /* @__PURE__ */ React46.createElement(DocTypeChip, { postType: post.type.post_type, docType: post.type.doc_type, label: post.type.label })
2873
3063
  );
2874
3064
  }
2875
3065
 
@@ -2886,7 +3076,7 @@ function RecentlyEdited() {
2886
3076
  return data.filter((post) => post.id !== document2?.id).splice(0, NUMBER_OF_RECENT_POSTS - 1);
2887
3077
  };
2888
3078
  const recentPosts = getRecentPosts();
2889
- const popupState = usePopupState5({
3079
+ const popupState = usePopupState6({
2890
3080
  variant: "popover",
2891
3081
  popupId: "elementor-v2-top-bar-recently-edited"
2892
3082
  });
@@ -2895,12 +3085,12 @@ function RecentlyEdited() {
2895
3085
  return null;
2896
3086
  }
2897
3087
  const buttonProps = bindTrigger3(popupState);
2898
- return /* @__PURE__ */ React44.createElement(React44.Fragment, null, /* @__PURE__ */ React44.createElement(
3088
+ return /* @__PURE__ */ React47.createElement(React47.Fragment, null, /* @__PURE__ */ React47.createElement(
2899
3089
  Button5,
2900
3090
  {
2901
3091
  color: "inherit",
2902
3092
  size: "small",
2903
- endIcon: /* @__PURE__ */ React44.createElement(ChevronDownIcon, { fontSize: "small" }),
3093
+ endIcon: /* @__PURE__ */ React47.createElement(ChevronDownIcon, { fontSize: "small" }),
2904
3094
  ...buttonProps,
2905
3095
  onClick: (e) => {
2906
3096
  const extendedWindow = window;
@@ -2919,40 +3109,40 @@ function RecentlyEdited() {
2919
3109
  buttonProps.onClick(e);
2920
3110
  }
2921
3111
  },
2922
- /* @__PURE__ */ React44.createElement(Indicator, { title: documentTitle, status: document2.status })
2923
- ), /* @__PURE__ */ React44.createElement(
3112
+ /* @__PURE__ */ React47.createElement(Indicator, { title: documentTitle, status: document2.status })
3113
+ ), /* @__PURE__ */ React47.createElement(
2924
3114
  Menu3,
2925
3115
  {
2926
3116
  MenuListProps: {
2927
- subheader: /* @__PURE__ */ React44.createElement(ListSubheader, { sx: { color: "accent.main", fontStyle: "italic", fontWeight: "300" } }, __30("Recent", "elementor"))
3117
+ subheader: /* @__PURE__ */ React47.createElement(ListSubheader, { sx: { color: "accent.main", fontStyle: "italic", fontWeight: "300" } }, __31("Recent", "elementor"))
2928
3118
  },
2929
3119
  PaperProps: { sx: { mt: 2.5, width: 320 } },
2930
3120
  ...bindMenu3(popupState)
2931
3121
  },
2932
- recentPosts.map((post) => /* @__PURE__ */ React44.createElement(PostListItem2, { key: post.id, post, closePopup: popupState.close })),
2933
- recentPosts.length === 0 && /* @__PURE__ */ React44.createElement(MenuItem8, { disabled: true }, /* @__PURE__ */ React44.createElement(
3122
+ recentPosts.map((post) => /* @__PURE__ */ React47.createElement(PostListItem2, { key: post.id, post, closePopup: popupState.close })),
3123
+ recentPosts.length === 0 && /* @__PURE__ */ React47.createElement(MenuItem9, { disabled: true }, /* @__PURE__ */ React47.createElement(
2934
3124
  ListItemText9,
2935
3125
  {
2936
3126
  primaryTypographyProps: {
2937
3127
  variant: "caption",
2938
3128
  fontStyle: "italic"
2939
3129
  },
2940
- primary: __30("There are no other pages or templates on this site yet.", "elementor")
3130
+ primary: __31("There are no other pages or templates on this site yet.", "elementor")
2941
3131
  }
2942
3132
  )),
2943
- /* @__PURE__ */ React44.createElement(Divider8, { disabled: recentPosts.length === 0 }),
2944
- /* @__PURE__ */ React44.createElement(CreatePostListItem, { closePopup: popupState.close })
3133
+ /* @__PURE__ */ React47.createElement(Divider9, { disabled: recentPosts.length === 0 }),
3134
+ /* @__PURE__ */ React47.createElement(CreatePostListItem, { closePopup: popupState.close })
2945
3135
  ));
2946
3136
  }
2947
3137
 
2948
3138
  // src/hooks/use-toggle-button-props.ts
2949
3139
  import { PagesIcon } from "@elementor/icons";
2950
- import { __ as __31 } from "@wordpress/i18n";
3140
+ import { __ as __32 } from "@wordpress/i18n";
2951
3141
  function useToggleButtonProps() {
2952
3142
  const { isOpen: selectedState, isBlocked } = usePanelStatus();
2953
3143
  const { open, close } = usePanelActions();
2954
3144
  return {
2955
- title: __31("Site content", "elementor"),
3145
+ title: __32("Site content", "elementor"),
2956
3146
  icon: PagesIcon,
2957
3147
  onClick: () => {
2958
3148
  const extendedWindow = window;
@@ -2996,25 +3186,25 @@ function registerButton() {
2996
3186
  }
2997
3187
 
2998
3188
  // src/components/panel/popups/popup-section-add-button.tsx
2999
- import * as React45 from "react";
3000
- import { forwardRef as forwardRef2, useCallback as useCallback5, useImperativeHandle as useImperativeHandle2, useRef as useRef6 } from "react";
3001
- import { Stack as Stack11 } from "@elementor/ui";
3002
- import { __ as __32, sprintf as sprintf6 } from "@wordpress/i18n";
3189
+ import * as React48 from "react";
3190
+ import { forwardRef as forwardRef2, useCallback as useCallback6, useImperativeHandle as useImperativeHandle2, useRef as useRef6 } from "react";
3191
+ import { Stack as Stack12 } from "@elementor/ui";
3192
+ import { __ as __33, sprintf as sprintf6 } from "@wordpress/i18n";
3003
3193
  var PopupSectionAddButton = forwardRef2(
3004
3194
  ({ disabled, onBeforeCreate, onCreate }, ref) => {
3005
3195
  const promotionRef = useRef6(null);
3006
3196
  const canCreate = env.popups?.can_use ?? false;
3007
- const togglePromotion = useCallback5(() => {
3197
+ const togglePromotion = useCallback6(() => {
3008
3198
  promotionRef.current?.toggle();
3009
3199
  }, []);
3010
3200
  useImperativeHandle2(ref, () => ({ togglePromotion }), [togglePromotion]);
3011
3201
  const ariaLabel = sprintf6(
3012
3202
  /* translators: %s: Document type singular name. */
3013
- __32("New %s", "elementor"),
3014
- __32("Popup", "elementor")
3203
+ __33("New %s", "elementor"),
3204
+ __33("Popup", "elementor")
3015
3205
  );
3016
3206
  if (canCreate) {
3017
- return /* @__PURE__ */ React45.createElement(
3207
+ return /* @__PURE__ */ React48.createElement(
3018
3208
  ContentPanelAddIconButton,
3019
3209
  {
3020
3210
  "aria-label": ariaLabel,
@@ -3027,8 +3217,8 @@ var PopupSectionAddButton = forwardRef2(
3027
3217
  }
3028
3218
  );
3029
3219
  }
3030
- return /* @__PURE__ */ React45.createElement(
3031
- Stack11,
3220
+ return /* @__PURE__ */ React48.createElement(
3221
+ Stack12,
3032
3222
  {
3033
3223
  alignItems: "center",
3034
3224
  direction: "row",
@@ -3039,8 +3229,8 @@ var PopupSectionAddButton = forwardRef2(
3039
3229
  },
3040
3230
  sx: { cursor: "pointer" }
3041
3231
  },
3042
- /* @__PURE__ */ React45.createElement(ContentPanelAddIconButton, { "aria-label": ariaLabel, tabIndex: -1 }),
3043
- /* @__PURE__ */ React45.createElement(SiteContentPopupsPromotionChip, { ref: promotionRef })
3232
+ /* @__PURE__ */ React48.createElement(ContentPanelAddIconButton, { "aria-label": ariaLabel, tabIndex: -1 }),
3233
+ /* @__PURE__ */ React48.createElement(SiteContentPopupsPromotionChip, { ref: promotionRef })
3044
3234
  );
3045
3235
  }
3046
3236
  );