@elementor/editor-app-bar 4.0.7 → 4.0.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -31,7 +31,7 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
31
31
  var index_exports = {};
32
32
  __export(index_exports, {
33
33
  documentOptionsMenu: () => documentOptionsMenu,
34
- init: () => init18,
34
+ init: () => init19,
35
35
  injectIntoPageIndication: () => injectIntoPageIndication,
36
36
  injectIntoPrimaryAction: () => injectIntoPrimaryAction,
37
37
  injectIntoResponsive: () => injectIntoResponsive,
@@ -233,9 +233,9 @@ var documentOptionsMenu = (0, import_menus2.createMenu)({
233
233
  var import_editor2 = require("@elementor/editor");
234
234
 
235
235
  // src/components/app-bar.tsx
236
- var React20 = __toESM(require("react"));
236
+ var React22 = __toESM(require("react"));
237
237
  var import_editor_documents = require("@elementor/editor-documents");
238
- var import_ui11 = require("@elementor/ui");
238
+ var import_ui13 = require("@elementor/ui");
239
239
 
240
240
  // src/components/locations/main-menu-location.tsx
241
241
  var React10 = __toESM(require("react"));
@@ -373,65 +373,194 @@ function ResponsiveLocation() {
373
373
  }
374
374
 
375
375
  // src/components/locations/tools-menu-location.tsx
376
- var React18 = __toESM(require("react"));
376
+ var React20 = __toESM(require("react"));
377
377
 
378
- // src/components/ui/toolbar-menu.tsx
378
+ // src/extensions/angie/components/angie-guide-location.tsx
379
+ var React15 = __toESM(require("react"));
380
+ var import_react4 = require("react");
381
+ var import_editor_current_user = require("@elementor/editor-current-user");
382
+ var import_editor_ui = require("@elementor/editor-ui");
383
+ var import_events = require("@elementor/events");
384
+ var import_ui8 = require("@elementor/ui");
385
+
386
+ // src/extensions/angie/angie-consts.ts
387
+ var import_i18n2 = require("@wordpress/i18n");
388
+ var ANGIE_GUIDE_TOGGLE_EVENT = "elementor/editor/toggle-angie-guide";
389
+ var CREATE_WIDGET_EVENT = "elementor/editor/create-widget";
390
+ var ANGIE_BUTTON_ARIA_LABEL = (0, import_i18n2.__)("Angie", "elementor");
391
+ var ANGIE_LEARN_MORE_URL = "https://go.elementor.com/angie-learn-more";
392
+ var ANGIE_DESCRIPTION = (0, import_i18n2.__)(
393
+ "Angie lets you generate custom widgets, sections, and code using simple instructions.",
394
+ "elementor"
395
+ );
396
+ var AI_WIDGET_CTA_VIEWED_EVENT = "ai_widget_cta_viewed";
397
+ var ANGIE_TOP_BAR_PROMOTION_IMAGE_URL = "https://assets.elementor.com/packages/v1/images/angie-top-bar-promotion.svg";
398
+ var ANGIE_TOP_BAR_DESCRIPTION = (0, import_i18n2.__)("Build custom widgets using simple instructions.", "elementor");
399
+
400
+ // src/extensions/angie/components/angie-guide-card.tsx
379
401
  var React14 = __toESM(require("react"));
380
402
  var import_ui7 = require("@elementor/ui");
403
+ var import_i18n3 = require("@wordpress/i18n");
404
+ function AngieGuideCard({ imageUrl, description, learnMoreUrl, onInstall, onClose }) {
405
+ return /* @__PURE__ */ React14.createElement(import_ui7.ClickAwayListener, { onClickAway: onClose }, /* @__PURE__ */ React14.createElement(import_ui7.Stack, { sx: { width: 296 }, "data-testid": "e-angie-guide-card" }, /* @__PURE__ */ React14.createElement(import_ui7.Stack, { direction: "row", alignItems: "center", gap: 1, py: 1, px: 2 }, /* @__PURE__ */ React14.createElement(import_ui7.Typography, { variant: "subtitle2" }, (0, import_i18n3.__)("Meet Angie", "elementor")), /* @__PURE__ */ React14.createElement(import_ui7.Chip, { label: (0, import_i18n3.__)("New", "elementor"), size: "small", color: "info", variant: "standard" }), /* @__PURE__ */ React14.createElement(
406
+ import_ui7.CloseButton,
407
+ {
408
+ edge: "end",
409
+ sx: { ml: "auto" },
410
+ slotProps: { icon: { fontSize: "small" } },
411
+ onClick: onClose
412
+ }
413
+ )), /* @__PURE__ */ React14.createElement(import_ui7.Image, { src: imageUrl, alt: (0, import_i18n3.__)("Angie", "elementor"), sx: { height: 150, width: "100%" } }), /* @__PURE__ */ React14.createElement(import_ui7.Stack, { px: 2, pt: 1.5, pb: 1 }, /* @__PURE__ */ React14.createElement(import_ui7.Typography, { variant: "body2", color: "secondary" }, description)), /* @__PURE__ */ React14.createElement(import_ui7.Stack, { direction: "row", justifyContent: "flex-end", gap: 1, pt: 1, pb: 1.5, px: 2 }, /* @__PURE__ */ React14.createElement(
414
+ import_ui7.Button,
415
+ {
416
+ variant: "text",
417
+ size: "small",
418
+ color: "secondary",
419
+ onClick: () => {
420
+ window.open(learnMoreUrl, "_blank", "noopener,noreferrer");
421
+ onClose();
422
+ }
423
+ },
424
+ (0, import_i18n3.__)("Learn More", "elementor")
425
+ ), onInstall && /* @__PURE__ */ React14.createElement(import_ui7.Button, { variant: "contained", size: "small", color: "accent", onClick: onInstall }, (0, import_i18n3.__)("Try for free", "elementor")))));
426
+ }
427
+
428
+ // src/extensions/angie/hooks/use-auto-show.ts
429
+ var import_react3 = require("react");
430
+ function useAutoShow() {
431
+ (0, import_react3.useEffect)(() => {
432
+ if (!window.elementor?.config?.angie?.autoShow) {
433
+ return;
434
+ }
435
+ const id = setTimeout(() => {
436
+ window.dispatchEvent(new CustomEvent(ANGIE_GUIDE_TOGGLE_EVENT));
437
+ }, 0);
438
+ return () => clearTimeout(id);
439
+ }, []);
440
+ }
441
+
442
+ // src/extensions/angie/components/angie-guide-location.tsx
443
+ function AngieGuideLocation() {
444
+ useAutoShow();
445
+ const [anchorEl, setAnchorEl] = (0, import_react4.useState)(null);
446
+ const { dispatchEvent: dispatchEvent2 } = (0, import_events.useMixpanel)();
447
+ const { isAdmin } = (0, import_editor_current_user.useCurrentUserCapabilities)();
448
+ const isOpen = Boolean(anchorEl);
449
+ (0, import_react4.useEffect)(() => {
450
+ const handleToggle = () => {
451
+ setAnchorEl((prev) => {
452
+ if (prev) {
453
+ return null;
454
+ }
455
+ return document.querySelector(`[aria-label="${ANGIE_BUTTON_ARIA_LABEL}"]`);
456
+ });
457
+ };
458
+ window.addEventListener(ANGIE_GUIDE_TOGGLE_EVENT, handleToggle);
459
+ return () => {
460
+ window.removeEventListener(ANGIE_GUIDE_TOGGLE_EVENT, handleToggle);
461
+ };
462
+ }, []);
463
+ const handleClose = () => setAnchorEl(null);
464
+ const handleInstall = async () => {
465
+ dispatchEvent2?.(AI_WIDGET_CTA_VIEWED_EVENT, {
466
+ entry_point: "top_bar_icon"
467
+ });
468
+ window.dispatchEvent(
469
+ new CustomEvent(CREATE_WIDGET_EVENT, {
470
+ detail: {
471
+ entry_point: "top_bar_icon"
472
+ }
473
+ })
474
+ );
475
+ handleClose();
476
+ };
477
+ return /* @__PURE__ */ React15.createElement(import_editor_ui.ThemeProvider, null, /* @__PURE__ */ React15.createElement(
478
+ import_ui8.Infotip,
479
+ {
480
+ content: /* @__PURE__ */ React15.createElement(
481
+ AngieGuideCard,
482
+ {
483
+ imageUrl: ANGIE_TOP_BAR_PROMOTION_IMAGE_URL,
484
+ description: ANGIE_TOP_BAR_DESCRIPTION,
485
+ learnMoreUrl: ANGIE_LEARN_MORE_URL,
486
+ onInstall: isAdmin ? handleInstall : void 0,
487
+ onClose: handleClose
488
+ }
489
+ ),
490
+ placement: "bottom-start",
491
+ open: isOpen,
492
+ disableHoverListener: true,
493
+ PopperProps: {
494
+ anchorEl,
495
+ modifiers: [
496
+ {
497
+ name: "offset",
498
+ options: { offset: [-4, -4] }
499
+ }
500
+ ]
501
+ }
502
+ },
503
+ /* @__PURE__ */ React15.createElement("span", null)
504
+ ));
505
+ }
506
+
507
+ // src/components/ui/toolbar-menu.tsx
508
+ var React16 = __toESM(require("react"));
509
+ var import_ui9 = require("@elementor/ui");
381
510
  function ToolbarMenu({ children, ...props }) {
382
- return /* @__PURE__ */ React14.createElement(MenuContextProvider, { type: "toolbar" }, /* @__PURE__ */ React14.createElement(import_ui7.Stack, { sx: { px: 1.5 }, spacing: 1.5, direction: "row", alignItems: "center", ...props }, children));
511
+ return /* @__PURE__ */ React16.createElement(MenuContextProvider, { type: "toolbar" }, /* @__PURE__ */ React16.createElement(import_ui9.Stack, { sx: { px: 1.5 }, spacing: 1.5, direction: "row", alignItems: "center", ...props }, children));
383
512
  }
384
513
 
385
514
  // src/components/ui/toolbar-menu-more.tsx
386
- var React15 = __toESM(require("react"));
515
+ var React17 = __toESM(require("react"));
387
516
  var import_icons2 = require("@elementor/icons");
388
- var import_ui8 = require("@elementor/ui");
389
- var import_i18n2 = require("@wordpress/i18n");
517
+ var import_ui10 = require("@elementor/ui");
518
+ var import_i18n4 = require("@wordpress/i18n");
390
519
  function ToolbarMenuMore({ children, id }) {
391
- const popupState = (0, import_ui8.usePopupState)({
520
+ const popupState = (0, import_ui10.usePopupState)({
392
521
  variant: "popover",
393
522
  popupId: id
394
523
  });
395
- return /* @__PURE__ */ React15.createElement(React15.Fragment, null, /* @__PURE__ */ React15.createElement(ToolbarMenuItem, { ...(0, import_ui8.bindTrigger)(popupState), title: (0, import_i18n2.__)("More", "elementor") }, /* @__PURE__ */ React15.createElement(import_icons2.DotsVerticalIcon, null)), /* @__PURE__ */ React15.createElement(PopoverMenu, { onClick: popupState.close, ...(0, import_ui8.bindMenu)(popupState) }, children));
524
+ return /* @__PURE__ */ React17.createElement(React17.Fragment, null, /* @__PURE__ */ React17.createElement(ToolbarMenuItem, { ...(0, import_ui10.bindTrigger)(popupState), title: (0, import_i18n4.__)("More", "elementor") }, /* @__PURE__ */ React17.createElement(import_icons2.DotsVerticalIcon, null)), /* @__PURE__ */ React17.createElement(PopoverMenu, { onClick: popupState.close, ...(0, import_ui10.bindMenu)(popupState) }, children));
396
525
  }
397
526
 
398
527
  // src/components/locations/integrations-menu-location.tsx
399
- var React16 = __toESM(require("react"));
528
+ var React18 = __toESM(require("react"));
400
529
  var import_icons3 = require("@elementor/icons");
401
- var import_ui9 = require("@elementor/ui");
402
- var import_i18n3 = require("@wordpress/i18n");
530
+ var import_ui11 = require("@elementor/ui");
531
+ var import_i18n5 = require("@wordpress/i18n");
403
532
  var { useMenuItems: useMenuItems2 } = integrationsMenu;
404
533
  function IntegrationsMenuLocation() {
405
534
  const menuItems = useMenuItems2();
406
- const popupState = (0, import_ui9.usePopupState)({
535
+ const popupState = (0, import_ui11.usePopupState)({
407
536
  variant: "popover",
408
537
  popupId: "elementor-v2-app-bar-integrations"
409
538
  });
410
539
  if (menuItems.default.length === 0) {
411
540
  return null;
412
541
  }
413
- return /* @__PURE__ */ React16.createElement(React16.Fragment, null, /* @__PURE__ */ React16.createElement(ToolbarMenuItem, { ...(0, import_ui9.bindTrigger)(popupState), title: (0, import_i18n3.__)("Integrations", "elementor") }, /* @__PURE__ */ React16.createElement(import_icons3.PlugIcon, null)), /* @__PURE__ */ React16.createElement(
542
+ return /* @__PURE__ */ React18.createElement(React18.Fragment, null, /* @__PURE__ */ React18.createElement(ToolbarMenuItem, { ...(0, import_ui11.bindTrigger)(popupState), title: (0, import_i18n5.__)("Integrations", "elementor") }, /* @__PURE__ */ React18.createElement(import_icons3.PlugIcon, null)), /* @__PURE__ */ React18.createElement(
414
543
  PopoverMenu,
415
544
  {
416
545
  onClick: popupState.close,
417
- ...(0, import_ui9.bindMenu)(popupState),
546
+ ...(0, import_ui11.bindMenu)(popupState),
418
547
  marginThreshold: 8,
419
548
  open: popupState.isOpen
420
549
  },
421
- menuItems.default.map(({ MenuItem: IntegrationsMenuItem, id }) => /* @__PURE__ */ React16.createElement(IntegrationsMenuItem, { key: id }))
550
+ menuItems.default.map(({ MenuItem: IntegrationsMenuItem, id }) => /* @__PURE__ */ React18.createElement(IntegrationsMenuItem, { key: id }))
422
551
  ));
423
552
  }
424
553
 
425
554
  // src/components/locations/send-feedback-popup-location.tsx
426
- var React17 = __toESM(require("react"));
427
- var import_react3 = require("react");
428
- var import_editor_ui = require("@elementor/editor-ui");
555
+ var React19 = __toESM(require("react"));
556
+ var import_react5 = require("react");
557
+ var import_editor_ui2 = require("@elementor/editor-ui");
429
558
  var import_editor_v1_adapters = require("@elementor/editor-v1-adapters");
430
- var import_events = require("@elementor/events");
559
+ var import_events2 = require("@elementor/events");
431
560
  var import_http_client = require("@elementor/http-client");
432
561
  var import_icons4 = require("@elementor/icons");
433
- var import_ui10 = require("@elementor/ui");
434
- var import_i18n4 = require("@wordpress/i18n");
562
+ var import_ui12 = require("@elementor/ui");
563
+ var import_i18n6 = require("@wordpress/i18n");
435
564
 
436
565
  // src/extensions/feedback/feedback-consts.ts
437
566
  var EXPERIMENT_NAME = "in_editor_feedback";
@@ -445,23 +574,23 @@ var checkIfUserIsConnected = () => {
445
574
  function SendFeedbackPopupLocation() {
446
575
  const isActive = (0, import_editor_v1_adapters.isExperimentActive)(EXPERIMENT_NAME);
447
576
  const extendedWindow = window;
448
- const [isUserConnected, setIsUserConnected] = (0, import_react3.useState)(checkIfUserIsConnected());
577
+ const [isUserConnected, setIsUserConnected] = (0, import_react5.useState)(checkIfUserIsConnected());
449
578
  const connectUrl = extendedWindow?.elementor?.config.user.top_bar.connect_url;
450
- const [feedbackContent, setFeedbackContent] = (0, import_react3.useState)("");
451
- const [feedbackResult, setFeedbackResult] = (0, import_react3.useState)(null);
452
- const [submitDisabled, setSubmitDisabled] = (0, import_react3.useState)(true);
453
- const { dispatchEvent: trackEvent = (...args) => void args } = (0, import_events.useMixpanel)();
454
- const popupState = (0, import_ui10.usePopupState)({
579
+ const [feedbackContent, setFeedbackContent] = (0, import_react5.useState)("");
580
+ const [feedbackResult, setFeedbackResult] = (0, import_react5.useState)(null);
581
+ const [submitDisabled, setSubmitDisabled] = (0, import_react5.useState)(true);
582
+ const { dispatchEvent: trackEvent2 = (...args) => void args } = (0, import_events2.useMixpanel)();
583
+ const popupState = (0, import_ui12.usePopupState)({
455
584
  variant: "dialog",
456
585
  popupId: FEEDBACK_TOGGLE_EVENT
457
586
  });
458
- const [isFetching, setIsFetching] = (0, import_react3.useState)(false);
459
- (0, import_react3.useEffect)(() => {
587
+ const [isFetching, setIsFetching] = (0, import_react5.useState)(false);
588
+ (0, import_react5.useEffect)(() => {
460
589
  const handler = () => {
461
590
  popupState.toggle();
462
591
  setIsUserConnected(checkIfUserIsConnected());
463
592
  setFeedbackResult(null);
464
- trackEvent("feedback_modal_opened", {
593
+ trackEvent2("feedback_modal_opened", {
465
594
  source: "top_bar",
466
595
  context: "v4_beta"
467
596
  });
@@ -470,13 +599,13 @@ function SendFeedbackPopupLocation() {
470
599
  return () => {
471
600
  window.removeEventListener(FEEDBACK_TOGGLE_EVENT, handler);
472
601
  };
473
- }, [popupState, trackEvent]);
474
- (0, import_react3.useEffect)(() => {
602
+ }, [popupState, trackEvent2]);
603
+ (0, import_react5.useEffect)(() => {
475
604
  setSubmitDisabled(feedbackContent.trim().length < 10 || !isUserConnected || isFetching);
476
605
  }, [feedbackContent, feedbackResult, isUserConnected, isFetching]);
477
606
  const handleClose = () => {
478
607
  popupState.close();
479
- trackEvent("feedback_modal_closed", {
608
+ trackEvent2("feedback_modal_closed", {
480
609
  feedback_text: feedbackContent
481
610
  });
482
611
  };
@@ -496,7 +625,7 @@ function SendFeedbackPopupLocation() {
496
625
  if (!response.data.success && response.data.code.toString() === "401" || response.data.code.toString() === "403") {
497
626
  setIsUserConnected(false);
498
627
  }
499
- trackEvent(response.data.success ? "feedback_submitted" : "feedback_error", {
628
+ trackEvent2(response.data.success ? "feedback_submitted" : "feedback_error", {
500
629
  feedback_length: feedbackContent.length,
501
630
  error_type: response.data.success ? void 0 : "server",
502
631
  error_message: response.data.success ? void 0 : response.data.message
@@ -506,8 +635,8 @@ function SendFeedbackPopupLocation() {
506
635
  if (!isActive) {
507
636
  return null;
508
637
  }
509
- return /* @__PURE__ */ React17.createElement(import_editor_ui.ThemeProvider, null, /* @__PURE__ */ React17.createElement(import_ui10.Popover, { ...(0, import_ui10.bindDialog)(popupState), onClose: () => handleClose() }, /* @__PURE__ */ React17.createElement(import_ui10.Dialog, { open: popupState.isOpen }, /* @__PURE__ */ React17.createElement(import_ui10.DialogHeader, { style: { width: "100%", minWidth: "35rem" } }, /* @__PURE__ */ React17.createElement(import_ui10.DialogTitle, { style: { width: "100%" } }, /* @__PURE__ */ React17.createElement(
510
- import_ui10.Stack,
638
+ return /* @__PURE__ */ React19.createElement(import_editor_ui2.ThemeProvider, null, /* @__PURE__ */ React19.createElement(import_ui12.Popover, { ...(0, import_ui12.bindDialog)(popupState), onClose: () => handleClose() }, /* @__PURE__ */ React19.createElement(import_ui12.Dialog, { open: popupState.isOpen }, /* @__PURE__ */ React19.createElement(import_ui12.DialogHeader, { style: { width: "100%", minWidth: "35rem" } }, /* @__PURE__ */ React19.createElement(import_ui12.DialogTitle, { style: { width: "100%" } }, /* @__PURE__ */ React19.createElement(
639
+ import_ui12.Stack,
511
640
  {
512
641
  display: "flex",
513
642
  direction: "row",
@@ -515,18 +644,18 @@ function SendFeedbackPopupLocation() {
515
644
  justifyContent: "space-between",
516
645
  width: "100%"
517
646
  },
518
- (0, import_i18n4.__)("Submit Feedback", "elementor"),
519
- /* @__PURE__ */ React17.createElement(import_ui10.CloseButton, { onClick: popupState.close })
520
- ))), /* @__PURE__ */ React17.createElement(import_ui10.DialogContent, null, /* @__PURE__ */ React17.createElement(import_ui10.Stack, { direction: "column", gap: 2 }, isUserConnected ? /* @__PURE__ */ React17.createElement(React17.Fragment, null, /* @__PURE__ */ React17.createElement(
521
- import_ui10.TextField,
647
+ (0, import_i18n6.__)("Submit Feedback", "elementor"),
648
+ /* @__PURE__ */ React19.createElement(import_ui12.CloseButton, { onClick: popupState.close })
649
+ ))), /* @__PURE__ */ React19.createElement(import_ui12.DialogContent, null, /* @__PURE__ */ React19.createElement(import_ui12.Stack, { direction: "column", gap: 2 }, isUserConnected ? /* @__PURE__ */ React19.createElement(React19.Fragment, null, /* @__PURE__ */ React19.createElement(
650
+ import_ui12.TextField,
522
651
  {
523
652
  autofocus: true,
524
- placeholder: (0, import_i18n4.__)(
653
+ placeholder: (0, import_i18n6.__)(
525
654
  "E.g. Can you add ABC features? I want to do ABC and it\u2019s important because \u2026",
526
655
  "elementor"
527
656
  ),
528
657
  fullwith: true,
529
- label: (0, import_i18n4.__)("Your Feedback", "elementor"),
658
+ label: (0, import_i18n6.__)("Your Feedback", "elementor"),
530
659
  multiline: true,
531
660
  id: "elementor-feedback-usercontent",
532
661
  rows: 6,
@@ -535,8 +664,8 @@ function SendFeedbackPopupLocation() {
535
664
  onChange: (event) => setFeedbackContent(event.target.value),
536
665
  value: feedbackContent
537
666
  }
538
- ), /* @__PURE__ */ React17.createElement(import_ui10.Stack, { direction: "row", justifyContent: "flex-end", alignItems: "center", gap: 2 }, feedbackResult && /* @__PURE__ */ React17.createElement(React17.Fragment, null, feedbackResult.success ? /* @__PURE__ */ React17.createElement(import_icons4.CheckIcon, { color: "success" }) : /* @__PURE__ */ React17.createElement(import_icons4.AlertCircleIcon, { color: "error" }), feedbackResult.message), feedbackResult?.success ? /* @__PURE__ */ React17.createElement(import_ui10.Button, { variant: "text", onClick: () => handleStartAntoher() }, (0, import_i18n4.__)("Submit Another Feedback", "elementor")) : /* @__PURE__ */ React17.createElement(
539
- import_ui10.Button,
667
+ ), /* @__PURE__ */ React19.createElement(import_ui12.Stack, { direction: "row", justifyContent: "flex-end", alignItems: "center", gap: 2 }, feedbackResult && /* @__PURE__ */ React19.createElement(React19.Fragment, null, feedbackResult.success ? /* @__PURE__ */ React19.createElement(import_icons4.CheckIcon, { color: "success" }) : /* @__PURE__ */ React19.createElement(import_icons4.AlertCircleIcon, { color: "error" }), feedbackResult.message), feedbackResult?.success ? /* @__PURE__ */ React19.createElement(import_ui12.Button, { variant: "text", onClick: () => handleStartAntoher() }, (0, import_i18n6.__)("Submit Another Feedback", "elementor")) : /* @__PURE__ */ React19.createElement(
668
+ import_ui12.Button,
540
669
  {
541
670
  disabled: submitDisabled,
542
671
  onClick: submitFeedback,
@@ -544,9 +673,9 @@ function SendFeedbackPopupLocation() {
544
673
  color: "primary",
545
674
  size: "small"
546
675
  },
547
- (0, import_i18n4.__)("Submit", "elementor")
548
- ))) : /* @__PURE__ */ React17.createElement(React17.Fragment, null, /* @__PURE__ */ React17.createElement(
549
- import_ui10.Button,
676
+ (0, import_i18n6.__)("Submit", "elementor")
677
+ ))) : /* @__PURE__ */ React19.createElement(React19.Fragment, null, /* @__PURE__ */ React19.createElement(
678
+ import_ui12.Button,
550
679
  {
551
680
  variant: "contained",
552
681
  color: "primary",
@@ -556,7 +685,7 @@ function SendFeedbackPopupLocation() {
556
685
  rel: "noopener",
557
686
  onClick: popupState.close
558
687
  },
559
- (0, import_i18n4.__)("Connect to Elementor", "elementor")
688
+ (0, import_i18n6.__)("Connect to Elementor", "elementor")
560
689
  )))))));
561
690
  }
562
691
 
@@ -567,12 +696,12 @@ function ToolsMenuLocation() {
567
696
  const menuItems = useMenuItems3();
568
697
  const toolbarMenuItems = menuItems.default.slice(0, MAX_TOOLBAR_ACTIONS);
569
698
  const popoverMenuItems = menuItems.default.slice(MAX_TOOLBAR_ACTIONS);
570
- return /* @__PURE__ */ React18.createElement(ToolbarMenu, null, toolbarMenuItems.map(({ MenuItem: MenuItem2, id }) => /* @__PURE__ */ React18.createElement(MenuItem2, { key: id })), /* @__PURE__ */ React18.createElement(SendFeedbackPopupLocation, null), /* @__PURE__ */ React18.createElement(IntegrationsMenuLocation, null), popoverMenuItems.length > 0 && /* @__PURE__ */ React18.createElement(ToolbarMenuMore, { id: "elementor-editor-app-bar-tools-more" }, popoverMenuItems.map(({ MenuItem: MenuItem2, id }) => /* @__PURE__ */ React18.createElement(MenuItem2, { key: id }))));
699
+ return /* @__PURE__ */ React20.createElement(ToolbarMenu, null, toolbarMenuItems.map(({ MenuItem: MenuItem2, id }) => /* @__PURE__ */ React20.createElement(MenuItem2, { key: id })), /* @__PURE__ */ React20.createElement(AngieGuideLocation, null), /* @__PURE__ */ React20.createElement(SendFeedbackPopupLocation, null), /* @__PURE__ */ React20.createElement(IntegrationsMenuLocation, null), popoverMenuItems.length > 0 && /* @__PURE__ */ React20.createElement(ToolbarMenuMore, { id: "elementor-editor-app-bar-tools-more" }, popoverMenuItems.map(({ MenuItem: MenuItem2, id }) => /* @__PURE__ */ React20.createElement(MenuItem2, { key: id }))));
571
700
  }
572
701
 
573
702
  // src/components/locations/utilities-menu-location.tsx
574
- var React19 = __toESM(require("react"));
575
- var import_react4 = require("react");
703
+ var React21 = __toESM(require("react"));
704
+ var import_react6 = require("react");
576
705
  var MAX_TOOLBAR_ACTIONS2 = 4;
577
706
  var { useMenuItems: useMenuItems4 } = utilitiesMenu;
578
707
  function UtilitiesMenuLocation() {
@@ -580,19 +709,58 @@ function UtilitiesMenuLocation() {
580
709
  const shouldUsePopover = menuItems.default.length > MAX_TOOLBAR_ACTIONS2 + 1;
581
710
  const toolbarMenuItems = shouldUsePopover ? menuItems.default.slice(0, MAX_TOOLBAR_ACTIONS2) : menuItems.default;
582
711
  const popoverMenuItems = shouldUsePopover ? menuItems.default.slice(MAX_TOOLBAR_ACTIONS2) : [];
583
- return /* @__PURE__ */ React19.createElement(ToolbarMenu, null, toolbarMenuItems.map(({ MenuItem: MenuItem2, id }) => /* @__PURE__ */ React19.createElement(import_react4.Fragment, { key: id }, /* @__PURE__ */ React19.createElement(MenuItem2, null))), popoverMenuItems.length > 0 && /* @__PURE__ */ React19.createElement(ToolbarMenuMore, { id: "elementor-editor-app-bar-utilities-more" }, popoverMenuItems.map(({ MenuItem: MenuItem2, id }) => /* @__PURE__ */ React19.createElement(MenuItem2, { key: id }))));
712
+ return /* @__PURE__ */ React21.createElement(ToolbarMenu, null, toolbarMenuItems.map(({ MenuItem: MenuItem2, id }) => /* @__PURE__ */ React21.createElement(import_react6.Fragment, { key: id }, /* @__PURE__ */ React21.createElement(MenuItem2, null))), popoverMenuItems.length > 0 && /* @__PURE__ */ React21.createElement(ToolbarMenuMore, { id: "elementor-editor-app-bar-utilities-more" }, popoverMenuItems.map(({ MenuItem: MenuItem2, id }) => /* @__PURE__ */ React21.createElement(MenuItem2, { key: id }))));
584
713
  }
585
714
 
586
715
  // src/components/app-bar.tsx
587
716
  function AppBar() {
588
717
  const document2 = (0, import_editor_documents.__useActiveDocument)();
589
- return /* @__PURE__ */ React20.createElement(import_ui11.ThemeProvider, { colorScheme: "dark" }, /* @__PURE__ */ React20.createElement(import_ui11.AppBar, { position: "sticky" }, /* @__PURE__ */ React20.createElement(import_ui11.Toolbar, { disableGutters: true, variant: "dense" }, /* @__PURE__ */ React20.createElement(import_ui11.Box, { display: "grid", gridTemplateColumns: "repeat(3, 1fr)", flexGrow: 1 }, /* @__PURE__ */ React20.createElement(import_ui11.Grid, { container: true, flexWrap: "nowrap" }, /* @__PURE__ */ React20.createElement(MainMenuLocation, null), document2?.permissions?.allowAddingWidgets && /* @__PURE__ */ React20.createElement(ToolsMenuLocation, null)), /* @__PURE__ */ React20.createElement(import_ui11.Grid, { container: true, justifyContent: "center" }, /* @__PURE__ */ React20.createElement(ToolbarMenu, { spacing: 1.5 }, /* @__PURE__ */ React20.createElement(import_ui11.Divider, { orientation: "vertical" }), /* @__PURE__ */ React20.createElement(PageIndicationLocation, null), /* @__PURE__ */ React20.createElement(import_ui11.Divider, { orientation: "vertical" }), /* @__PURE__ */ React20.createElement(ResponsiveLocation, null), /* @__PURE__ */ React20.createElement(import_ui11.Divider, { orientation: "vertical" }))), /* @__PURE__ */ React20.createElement(import_ui11.Grid, { container: true, justifyContent: "flex-end", flexWrap: "nowrap" }, /* @__PURE__ */ React20.createElement(UtilitiesMenuLocation, null), /* @__PURE__ */ React20.createElement(PrimaryActionLocation, null))))));
718
+ return /* @__PURE__ */ React22.createElement(import_ui13.ThemeProvider, { colorScheme: "dark" }, /* @__PURE__ */ React22.createElement(import_ui13.AppBar, { position: "sticky" }, /* @__PURE__ */ React22.createElement(import_ui13.Toolbar, { disableGutters: true, variant: "dense" }, /* @__PURE__ */ React22.createElement(import_ui13.Box, { display: "grid", gridTemplateColumns: "repeat(3, 1fr)", flexGrow: 1 }, /* @__PURE__ */ React22.createElement(import_ui13.Grid, { container: true, flexWrap: "nowrap" }, /* @__PURE__ */ React22.createElement(MainMenuLocation, null), document2?.permissions?.allowAddingWidgets && /* @__PURE__ */ React22.createElement(ToolsMenuLocation, null)), /* @__PURE__ */ React22.createElement(import_ui13.Grid, { container: true, justifyContent: "center" }, /* @__PURE__ */ React22.createElement(ToolbarMenu, { spacing: 1.5 }, /* @__PURE__ */ React22.createElement(import_ui13.Divider, { orientation: "vertical" }), /* @__PURE__ */ React22.createElement(PageIndicationLocation, null), /* @__PURE__ */ React22.createElement(import_ui13.Divider, { orientation: "vertical" }), /* @__PURE__ */ React22.createElement(ResponsiveLocation, null), /* @__PURE__ */ React22.createElement(import_ui13.Divider, { orientation: "vertical" }))), /* @__PURE__ */ React22.createElement(import_ui13.Grid, { container: true, justifyContent: "flex-end", flexWrap: "nowrap" }, /* @__PURE__ */ React22.createElement(UtilitiesMenuLocation, null), /* @__PURE__ */ React22.createElement(PrimaryActionLocation, null))))));
590
719
  }
591
720
 
592
- // src/extensions/connect/hooks/use-connect-link-config.tsx
593
- var import_react5 = require("react");
721
+ // src/extensions/angie/hooks/use-action-props.ts
722
+ var import_react7 = require("react");
723
+ var import_editor_mcp = require("@elementor/editor-mcp");
724
+ var import_events3 = require("@elementor/events");
594
725
  var import_icons5 = require("@elementor/icons");
595
- var import_i18n5 = require("@wordpress/i18n");
726
+ var import_i18n7 = require("@wordpress/i18n");
727
+ function useActionProps() {
728
+ const hasAngieInstalled = (0, import_editor_mcp.isAngieAvailable)();
729
+ const visible = !hasAngieInstalled;
730
+ (0, import_react7.useEffect)(() => {
731
+ if (!visible) {
732
+ return;
733
+ }
734
+ (0, import_events3.trackEvent)({
735
+ eventName: AI_WIDGET_CTA_VIEWED_EVENT,
736
+ entry_point: "top_bar_icon",
737
+ has_angie_installed: false
738
+ });
739
+ }, [visible]);
740
+ return {
741
+ title: (0, import_i18n7.__)("Angie", "elementor"),
742
+ icon: import_icons5.AngieIcon,
743
+ onClick: () => {
744
+ window.dispatchEvent(new CustomEvent(ANGIE_GUIDE_TOGGLE_EVENT));
745
+ },
746
+ selected: false,
747
+ visible
748
+ };
749
+ }
750
+
751
+ // src/extensions/angie/index.ts
752
+ function init() {
753
+ toolsMenu.registerToggleAction({
754
+ id: "toggle-angie",
755
+ priority: 2,
756
+ useProps: useActionProps
757
+ });
758
+ }
759
+
760
+ // src/extensions/connect/hooks/use-connect-link-config.tsx
761
+ var import_react8 = require("react");
762
+ var import_icons6 = require("@elementor/icons");
763
+ var import_i18n8 = require("@wordpress/i18n");
596
764
  var dispatchConnectClickEvent = (eventName) => {
597
765
  try {
598
766
  const extendedWindow = window;
@@ -620,7 +788,7 @@ function useConnectLinkConfig() {
620
788
  isUserConnected = extendedWindow?.elementorCommon?.config.library_connect.is_connected ?? false;
621
789
  target = "_self";
622
790
  }
623
- const handleConnectClick = (0, import_react5.useCallback)(
791
+ const handleConnectClick = (0, import_react8.useCallback)(
624
792
  (event) => {
625
793
  event.preventDefault();
626
794
  if (extendedWindow.jQuery && extendedWindow.jQuery.fn?.elementorConnect) {
@@ -645,21 +813,21 @@ function useConnectLinkConfig() {
645
813
  [extendedWindow]
646
814
  );
647
815
  return isUserConnected ? {
648
- title: (0, import_i18n5.__)("My Elementor", "elementor"),
816
+ title: (0, import_i18n8.__)("My Elementor", "elementor"),
649
817
  href: extendedWindow?.elementor?.config.user.top_bar.my_elementor_url,
650
- icon: import_icons5.UserIcon,
818
+ icon: import_icons6.UserIcon,
651
819
  target: "_blank"
652
820
  } : {
653
- title: (0, import_i18n5.__)("Connect my account", "elementor"),
821
+ title: (0, import_i18n8.__)("Connect my account", "elementor"),
654
822
  href: extendedWindow?.elementor?.config.user.top_bar.connect_url,
655
- icon: import_icons5.UserIcon,
823
+ icon: import_icons6.UserIcon,
656
824
  target,
657
825
  onClick: handleConnectClick
658
826
  };
659
827
  }
660
828
 
661
829
  // src/extensions/connect/index.ts
662
- function init() {
830
+ function init2() {
663
831
  mainMenu.registerLink({
664
832
  id: "app-bar-connect",
665
833
  group: "exits",
@@ -671,13 +839,13 @@ function init() {
671
839
  // src/extensions/documents-preview/hooks/use-action-props.ts
672
840
  var import_editor_documents2 = require("@elementor/editor-documents");
673
841
  var import_editor_v1_adapters2 = require("@elementor/editor-v1-adapters");
674
- var import_icons6 = require("@elementor/icons");
675
- var import_i18n6 = require("@wordpress/i18n");
676
- function useActionProps() {
842
+ var import_icons7 = require("@elementor/icons");
843
+ var import_i18n9 = require("@wordpress/i18n");
844
+ function useActionProps2() {
677
845
  const document2 = (0, import_editor_documents2.__useActiveDocument)();
678
846
  return {
679
- icon: import_icons6.EyeIcon,
680
- title: (0, import_i18n6.__)("Preview Changes", "elementor"),
847
+ icon: import_icons7.EyeIcon,
848
+ title: (0, import_i18n9.__)("Preview Changes", "elementor"),
681
849
  onClick: () => {
682
850
  const extendedWindow = window;
683
851
  const config = extendedWindow?.elementorCommon?.eventsManager?.config;
@@ -700,27 +868,27 @@ function useActionProps() {
700
868
  }
701
869
 
702
870
  // src/extensions/documents-preview/index.ts
703
- function init2() {
871
+ function init3() {
704
872
  utilitiesMenu.registerAction({
705
873
  id: "document-preview-button",
706
874
  priority: 30,
707
- useProps: useActionProps
875
+ useProps: useActionProps2
708
876
  });
709
877
  }
710
878
 
711
879
  // src/extensions/documents-save/components/primary-action.tsx
712
- var React22 = __toESM(require("react"));
880
+ var React24 = __toESM(require("react"));
713
881
  var import_editor_documents3 = require("@elementor/editor-documents");
714
882
  var import_editor_v1_adapters3 = require("@elementor/editor-v1-adapters");
715
- var import_icons7 = require("@elementor/icons");
716
- var import_ui13 = require("@elementor/ui");
717
- var import_i18n7 = require("@wordpress/i18n");
883
+ var import_icons8 = require("@elementor/icons");
884
+ var import_ui15 = require("@elementor/ui");
885
+ var import_i18n10 = require("@wordpress/i18n");
718
886
 
719
887
  // src/extensions/documents-save/components/primary-action-menu.tsx
720
- var React21 = __toESM(require("react"));
721
- var import_ui12 = require("@elementor/ui");
888
+ var React23 = __toESM(require("react"));
889
+ var import_ui14 = require("@elementor/ui");
722
890
  var { useMenuItems: useMenuItems5 } = documentOptionsMenu;
723
- var StyledPopoverMenu = (0, import_ui12.styled)(PopoverMenu)`
891
+ var StyledPopoverMenu = (0, import_ui14.styled)(PopoverMenu)`
724
892
  & > .MuiPopover-paper > .MuiList-root {
725
893
  & > .MuiDivider-root {
726
894
  display: none;
@@ -733,7 +901,7 @@ var StyledPopoverMenu = (0, import_ui12.styled)(PopoverMenu)`
733
901
  `;
734
902
  function PrimaryActionMenu(props) {
735
903
  const { save: saveActions, default: defaultActions } = useMenuItems5();
736
- return /* @__PURE__ */ React21.createElement(
904
+ return /* @__PURE__ */ React23.createElement(
737
905
  StyledPopoverMenu,
738
906
  {
739
907
  ...props,
@@ -751,13 +919,13 @@ function PrimaryActionMenu(props) {
751
919
  }
752
920
  },
753
921
  saveActions.map(({ MenuItem: MenuItem2, id }, index) => [
754
- index > 0 && /* @__PURE__ */ React21.createElement(import_ui12.Divider, { key: `${id}-divider` }),
755
- /* @__PURE__ */ React21.createElement(MenuItem2, { key: id })
922
+ index > 0 && /* @__PURE__ */ React23.createElement(import_ui14.Divider, { key: `${id}-divider` }),
923
+ /* @__PURE__ */ React23.createElement(MenuItem2, { key: id })
756
924
  ]),
757
- saveActions.length > 0 && defaultActions.length > 0 && /* @__PURE__ */ React21.createElement(import_ui12.Divider, null),
925
+ saveActions.length > 0 && defaultActions.length > 0 && /* @__PURE__ */ React23.createElement(import_ui14.Divider, null),
758
926
  defaultActions.map(({ MenuItem: MenuItem2, id }, index) => [
759
- index > 0 && /* @__PURE__ */ React21.createElement(import_ui12.Divider, { key: `${id}-divider` }),
760
- /* @__PURE__ */ React21.createElement(MenuItem2, { key: id })
927
+ index > 0 && /* @__PURE__ */ React23.createElement(import_ui14.Divider, { key: `${id}-divider` }),
928
+ /* @__PURE__ */ React23.createElement(MenuItem2, { key: id })
761
929
  ])
762
930
  );
763
931
  }
@@ -768,7 +936,7 @@ function PrimaryAction() {
768
936
  const { save } = (0, import_editor_documents3.__useActiveDocumentActions)();
769
937
  const editMode = (0, import_editor_v1_adapters3.useEditMode)();
770
938
  const isEditMode = editMode === "edit";
771
- const popupState = (0, import_ui13.usePopupState)({
939
+ const popupState = (0, import_ui15.usePopupState)({
772
940
  variant: "popover",
773
941
  popupId: "document-save-options"
774
942
  });
@@ -778,8 +946,8 @@ function PrimaryAction() {
778
946
  const isPublishDisabled = !isEditMode || !isPublishEnabled(document2);
779
947
  const isSaveOptionsDisabled = !isEditMode || document2.type.value === "kit";
780
948
  const shouldShowSpinner = document2.isSaving && !isPublishDisabled;
781
- return /* @__PURE__ */ React22.createElement(React22.Fragment, null, /* @__PURE__ */ React22.createElement(import_ui13.ButtonGroup, { size: "large", variant: "contained" }, /* @__PURE__ */ React22.createElement(
782
- import_ui13.Button,
949
+ return /* @__PURE__ */ React24.createElement(React24.Fragment, null, /* @__PURE__ */ React24.createElement(import_ui15.ButtonGroup, { size: "large", variant: "contained" }, /* @__PURE__ */ React24.createElement(
950
+ import_ui15.Button,
783
951
  {
784
952
  onClick: () => {
785
953
  const extendedWindow = window;
@@ -809,11 +977,11 @@ function PrimaryAction() {
809
977
  },
810
978
  disabled: isPublishDisabled
811
979
  },
812
- shouldShowSpinner ? /* @__PURE__ */ React22.createElement(import_ui13.CircularProgress, { color: "inherit", size: "1.5em" }) : getLabel(document2)
813
- ), /* @__PURE__ */ React22.createElement(
814
- import_ui13.Tooltip,
980
+ shouldShowSpinner ? /* @__PURE__ */ React24.createElement(import_ui15.CircularProgress, { color: "inherit", size: "1.5em" }) : getLabel(document2)
981
+ ), /* @__PURE__ */ React24.createElement(
982
+ import_ui15.Tooltip,
815
983
  {
816
- title: (0, import_i18n7.__)("Save Options", "elementor"),
984
+ title: (0, import_i18n10.__)("Save Options", "elementor"),
817
985
  PopperProps: {
818
986
  sx: {
819
987
  "&.MuiTooltip-popper .MuiTooltip-tooltip.MuiTooltip-tooltipPlacementBottom": {
@@ -823,21 +991,21 @@ function PrimaryAction() {
823
991
  }
824
992
  }
825
993
  },
826
- /* @__PURE__ */ React22.createElement(import_ui13.Box, { component: "span", "aria-label": void 0 }, /* @__PURE__ */ React22.createElement(
827
- import_ui13.Button,
994
+ /* @__PURE__ */ React24.createElement(import_ui15.Box, { component: "span", "aria-label": void 0 }, /* @__PURE__ */ React24.createElement(
995
+ import_ui15.Button,
828
996
  {
829
997
  size: "small",
830
- ...(0, import_ui13.bindTrigger)(popupState),
998
+ ...(0, import_ui15.bindTrigger)(popupState),
831
999
  sx: { px: 0, height: "100%", borderRadius: 0 },
832
1000
  disabled: isSaveOptionsDisabled,
833
- "aria-label": (0, import_i18n7.__)("Save Options", "elementor")
1001
+ "aria-label": (0, import_i18n10.__)("Save Options", "elementor")
834
1002
  },
835
- /* @__PURE__ */ React22.createElement(import_icons7.ChevronDownIcon, null)
1003
+ /* @__PURE__ */ React24.createElement(import_icons8.ChevronDownIcon, null)
836
1004
  ))
837
- )), /* @__PURE__ */ React22.createElement(PrimaryActionMenu, { ...(0, import_ui13.bindMenu)(popupState), onClick: popupState.close }));
1005
+ )), /* @__PURE__ */ React24.createElement(PrimaryActionMenu, { ...(0, import_ui15.bindMenu)(popupState), onClick: popupState.close }));
838
1006
  }
839
1007
  function getLabel(document2) {
840
- return document2.userCan.publish ? (0, import_i18n7.__)("Publish", "elementor") : (0, import_i18n7.__)("Submit", "elementor");
1008
+ return document2.userCan.publish ? (0, import_i18n10.__)("Publish", "elementor") : (0, import_i18n10.__)("Submit", "elementor");
841
1009
  }
842
1010
  function isPublishEnabled(document2) {
843
1011
  if (document2.type.value === "kit") {
@@ -848,16 +1016,16 @@ function isPublishEnabled(document2) {
848
1016
 
849
1017
  // src/extensions/documents-save/hooks/use-document-copy-and-share-props.ts
850
1018
  var import_editor_documents4 = require("@elementor/editor-documents");
851
- var import_events2 = require("@elementor/events");
852
- var import_icons8 = require("@elementor/icons");
853
- var import_i18n8 = require("@wordpress/i18n");
1019
+ var import_events4 = require("@elementor/events");
1020
+ var import_icons9 = require("@elementor/icons");
1021
+ var import_i18n11 = require("@wordpress/i18n");
854
1022
  function useDocumentCopyAndShareProps() {
855
1023
  const document2 = (0, import_editor_documents4.__useActiveDocument)();
856
1024
  const { copyAndShare } = (0, import_editor_documents4.__useActiveDocumentActions)();
857
- const { dispatchEvent: dispatchEvent2, config } = (0, import_events2.useMixpanel)();
1025
+ const { dispatchEvent: dispatchEvent2, config } = (0, import_events4.useMixpanel)();
858
1026
  return {
859
- icon: import_icons8.LinkIcon,
860
- title: (0, import_i18n8.__)("Copy and Share", "elementor"),
1027
+ icon: import_icons9.LinkIcon,
1028
+ title: (0, import_i18n11.__)("Copy and Share", "elementor"),
861
1029
  onClick: () => {
862
1030
  const eventName = config?.names?.editorOne?.topBarPublishDropdown;
863
1031
  if (eventName) {
@@ -882,16 +1050,16 @@ function useDocumentCopyAndShareProps() {
882
1050
 
883
1051
  // src/extensions/documents-save/hooks/use-document-save-draft-props.ts
884
1052
  var import_editor_documents5 = require("@elementor/editor-documents");
885
- var import_events3 = require("@elementor/events");
886
- var import_icons9 = require("@elementor/icons");
887
- var import_i18n9 = require("@wordpress/i18n");
1053
+ var import_events5 = require("@elementor/events");
1054
+ var import_icons10 = require("@elementor/icons");
1055
+ var import_i18n12 = require("@wordpress/i18n");
888
1056
  function useDocumentSaveDraftProps() {
889
1057
  const document2 = (0, import_editor_documents5.__useActiveDocument)();
890
1058
  const { saveDraft } = (0, import_editor_documents5.__useActiveDocumentActions)();
891
- const { dispatchEvent: dispatchEvent2, config } = (0, import_events3.useMixpanel)();
1059
+ const { dispatchEvent: dispatchEvent2, config } = (0, import_events5.useMixpanel)();
892
1060
  return {
893
- icon: import_icons9.FileReportIcon,
894
- title: (0, import_i18n9.__)("Save Draft", "elementor"),
1061
+ icon: import_icons10.FileReportIcon,
1062
+ title: (0, import_i18n12.__)("Save Draft", "elementor"),
895
1063
  onClick: () => {
896
1064
  const eventName = config?.names?.editorOne?.topBarPublishDropdown;
897
1065
  if (eventName) {
@@ -915,15 +1083,15 @@ function useDocumentSaveDraftProps() {
915
1083
 
916
1084
  // src/extensions/documents-save/hooks/use-document-save-template-props.ts
917
1085
  var import_editor_documents6 = require("@elementor/editor-documents");
918
- var import_events4 = require("@elementor/events");
919
- var import_icons10 = require("@elementor/icons");
920
- var import_i18n10 = require("@wordpress/i18n");
1086
+ var import_events6 = require("@elementor/events");
1087
+ var import_icons11 = require("@elementor/icons");
1088
+ var import_i18n13 = require("@wordpress/i18n");
921
1089
  function useDocumentSaveTemplateProps() {
922
1090
  const { saveTemplate } = (0, import_editor_documents6.__useActiveDocumentActions)();
923
- const { dispatchEvent: dispatchEvent2, config } = (0, import_events4.useMixpanel)();
1091
+ const { dispatchEvent: dispatchEvent2, config } = (0, import_events6.useMixpanel)();
924
1092
  return {
925
- icon: import_icons10.FolderIcon,
926
- title: (0, import_i18n10.__)("Save as Template", "elementor"),
1093
+ icon: import_icons11.FolderIcon,
1094
+ title: (0, import_i18n13.__)("Save as Template", "elementor"),
927
1095
  onClick: () => {
928
1096
  const eventName = config?.names?.editorOne?.topBarPublishDropdown;
929
1097
  if (eventName) {
@@ -947,15 +1115,15 @@ function useDocumentSaveTemplateProps() {
947
1115
  // src/extensions/documents-save/hooks/use-document-view-page-props.ts
948
1116
  var import_editor_documents7 = require("@elementor/editor-documents");
949
1117
  var import_editor_v1_adapters4 = require("@elementor/editor-v1-adapters");
950
- var import_events5 = require("@elementor/events");
951
- var import_icons11 = require("@elementor/icons");
952
- var import_i18n11 = require("@wordpress/i18n");
1118
+ var import_events7 = require("@elementor/events");
1119
+ var import_icons12 = require("@elementor/icons");
1120
+ var import_i18n14 = require("@wordpress/i18n");
953
1121
  function useDocumentViewPageProps() {
954
1122
  const document2 = (0, import_editor_documents7.__useActiveDocument)();
955
- const { dispatchEvent: dispatchEvent2, config } = (0, import_events5.useMixpanel)();
1123
+ const { dispatchEvent: dispatchEvent2, config } = (0, import_events7.useMixpanel)();
956
1124
  return {
957
- icon: import_icons11.EyeIcon,
958
- title: (0, import_i18n11.__)("View Page", "elementor"),
1125
+ icon: import_icons12.EyeIcon,
1126
+ title: (0, import_i18n14.__)("View Page", "elementor"),
959
1127
  onClick: () => {
960
1128
  const eventName = config?.names?.editorOne?.topBarPublishDropdown;
961
1129
  if (eventName) {
@@ -981,7 +1149,7 @@ function useDocumentViewPageProps() {
981
1149
  }
982
1150
 
983
1151
  // src/extensions/documents-save/index.ts
984
- function init3() {
1152
+ function init4() {
985
1153
  injectIntoPrimaryAction({
986
1154
  id: "document-primary-action",
987
1155
  component: PrimaryAction
@@ -1013,20 +1181,20 @@ function init3() {
1013
1181
  // src/extensions/documents-settings/hooks/use-action-props.ts
1014
1182
  var import_editor_documents8 = require("@elementor/editor-documents");
1015
1183
  var import_editor_v1_adapters5 = require("@elementor/editor-v1-adapters");
1016
- var import_icons12 = require("@elementor/icons");
1017
- var import_i18n12 = require("@wordpress/i18n");
1018
- function useActionProps2() {
1184
+ var import_icons13 = require("@elementor/icons");
1185
+ var import_i18n15 = require("@wordpress/i18n");
1186
+ function useActionProps3() {
1019
1187
  const activeDocument = (0, import_editor_documents8.__useActiveDocument)();
1020
1188
  const hostDocument = (0, import_editor_documents8.__useHostDocument)();
1021
1189
  const { isActive, isBlocked } = (0, import_editor_v1_adapters5.__privateUseRouteStatus)("panel/page-settings");
1022
1190
  const document2 = activeDocument && activeDocument.type.value !== "kit" ? activeDocument : hostDocument;
1023
1191
  const ButtonTitle = document2 ? (
1024
1192
  /* translators: %s: Post type label. */
1025
- (0, import_i18n12.__)("%s Settings", "elementor").replace("%s", document2.type.label)
1026
- ) : (0, import_i18n12.__)("Document Settings", "elementor");
1193
+ (0, import_i18n15.__)("%s Settings", "elementor").replace("%s", document2.type.label)
1194
+ ) : (0, import_i18n15.__)("Document Settings", "elementor");
1027
1195
  return {
1028
1196
  title: ButtonTitle,
1029
- icon: import_icons12.FileSettingsIcon,
1197
+ icon: import_icons13.FileSettingsIcon,
1030
1198
  onClick: () => {
1031
1199
  if (!document2) {
1032
1200
  return;
@@ -1049,23 +1217,23 @@ function useActionProps2() {
1049
1217
  }
1050
1218
 
1051
1219
  // src/extensions/documents-settings/index.ts
1052
- function init4() {
1220
+ function init5() {
1053
1221
  toolsMenu.registerToggleAction({
1054
1222
  id: "document-settings-button",
1055
- priority: 2,
1056
- useProps: useActionProps2
1223
+ priority: 3,
1224
+ useProps: useActionProps3
1057
1225
  });
1058
1226
  }
1059
1227
 
1060
1228
  // src/extensions/elements/hooks/use-action-props.ts
1061
1229
  var import_editor_v1_adapters6 = require("@elementor/editor-v1-adapters");
1062
- var import_icons13 = require("@elementor/icons");
1063
- var import_i18n13 = require("@wordpress/i18n");
1064
- function useActionProps3() {
1230
+ var import_icons14 = require("@elementor/icons");
1231
+ var import_i18n16 = require("@wordpress/i18n");
1232
+ function useActionProps4() {
1065
1233
  const { isActive, isBlocked } = (0, import_editor_v1_adapters6.__privateUseRouteStatus)("panel/elements");
1066
1234
  return {
1067
- title: (0, import_i18n13.__)("Add Element", "elementor"),
1068
- icon: import_icons13.PlusIcon,
1235
+ title: (0, import_i18n16.__)("Add Element", "elementor"),
1236
+ icon: import_icons14.PlusIcon,
1069
1237
  onClick: () => {
1070
1238
  const extendedWindow = window;
1071
1239
  const config = extendedWindow?.elementorCommon?.eventsManager?.config;
@@ -1086,10 +1254,10 @@ function useActionProps3() {
1086
1254
 
1087
1255
  // src/extensions/elements/sync/sync-panel-title.ts
1088
1256
  var import_editor_v1_adapters7 = require("@elementor/editor-v1-adapters");
1089
- var import_i18n14 = require("@wordpress/i18n");
1257
+ var import_i18n17 = require("@wordpress/i18n");
1090
1258
  function syncPanelTitle() {
1091
- const panelTitle = (0, import_i18n14.__)("Elements", "elementor");
1092
- const tabTitle = (0, import_i18n14.__)("Widgets", "elementor");
1259
+ const panelTitle = (0, import_i18n17.__)("Elements", "elementor");
1260
+ const tabTitle = (0, import_i18n17.__)("Widgets", "elementor");
1093
1261
  (0, import_editor_v1_adapters7.__privateListenTo)((0, import_editor_v1_adapters7.routeOpenEvent)("panel/elements"), () => {
1094
1262
  setPanelTitle(panelTitle);
1095
1263
  setTabTitle(tabTitle);
@@ -1112,20 +1280,20 @@ function setTabTitle(title) {
1112
1280
  }
1113
1281
 
1114
1282
  // src/extensions/elements/index.ts
1115
- function init5() {
1283
+ function init6() {
1116
1284
  syncPanelTitle();
1117
1285
  toolsMenu.registerToggleAction({
1118
1286
  id: "open-elements-panel",
1119
1287
  priority: 1,
1120
- useProps: useActionProps3
1288
+ useProps: useActionProps4
1121
1289
  });
1122
1290
  }
1123
1291
 
1124
1292
  // src/extensions/feedback/index.ts
1125
1293
  var import_editor_v1_adapters8 = require("@elementor/editor-v1-adapters");
1126
- var import_icons14 = require("@elementor/icons");
1127
- var import_i18n15 = require("@wordpress/i18n");
1128
- function init6() {
1294
+ var import_icons15 = require("@elementor/icons");
1295
+ var import_i18n18 = require("@wordpress/i18n");
1296
+ function init7() {
1129
1297
  const isActive = (0, import_editor_v1_adapters8.isExperimentActive)(EXPERIMENT_NAME);
1130
1298
  if (!isActive) {
1131
1299
  return;
@@ -1136,8 +1304,8 @@ function init6() {
1136
1304
  priority: 20,
1137
1305
  useProps: () => {
1138
1306
  return {
1139
- icon: import_icons14.MessageLinesIcon,
1140
- title: (0, import_i18n15.__)("Send Feedback", "elementor"),
1307
+ icon: import_icons15.MessageLinesIcon,
1308
+ title: (0, import_i18n18.__)("Send Feedback", "elementor"),
1141
1309
  onClick: () => {
1142
1310
  dispatchEvent(new CustomEvent(FEEDBACK_TOGGLE_EVENT));
1143
1311
  }
@@ -1148,12 +1316,12 @@ function init6() {
1148
1316
 
1149
1317
  // src/extensions/finder/hooks/use-action-props.ts
1150
1318
  var import_editor_v1_adapters9 = require("@elementor/editor-v1-adapters");
1151
- var import_icons15 = require("@elementor/icons");
1152
- var import_i18n16 = require("@wordpress/i18n");
1153
- function useActionProps4() {
1319
+ var import_icons16 = require("@elementor/icons");
1320
+ var import_i18n19 = require("@wordpress/i18n");
1321
+ function useActionProps5() {
1154
1322
  return {
1155
- title: (0, import_i18n16.__)("Finder", "elementor"),
1156
- icon: import_icons15.SearchIcon,
1323
+ title: (0, import_i18n19.__)("Finder", "elementor"),
1324
+ icon: import_icons16.SearchIcon,
1157
1325
  onClick: () => {
1158
1326
  const extendedWindow = window;
1159
1327
  const config = extendedWindow?.elementorCommon?.eventsManager?.config;
@@ -1171,22 +1339,22 @@ function useActionProps4() {
1171
1339
  }
1172
1340
 
1173
1341
  // src/extensions/finder/index.ts
1174
- function init7() {
1342
+ function init8() {
1175
1343
  utilitiesMenu.registerAction({
1176
1344
  id: "toggle-finder",
1177
1345
  priority: 15,
1178
- useProps: useActionProps4
1346
+ useProps: useActionProps5
1179
1347
  });
1180
1348
  }
1181
1349
 
1182
1350
  // src/extensions/help/hooks/use-action-props.ts
1183
- var import_icons16 = require("@elementor/icons");
1184
- var import_i18n17 = require("@wordpress/i18n");
1185
- function useActionProps5() {
1351
+ var import_icons17 = require("@elementor/icons");
1352
+ var import_i18n20 = require("@wordpress/i18n");
1353
+ function useActionProps6() {
1186
1354
  return {
1187
- title: (0, import_i18n17.__)("Help Center", "elementor"),
1355
+ title: (0, import_i18n20.__)("Help Center", "elementor"),
1188
1356
  href: "https://go.elementor.com/editor-top-bar-learn/",
1189
- icon: import_icons16.HelpIcon,
1357
+ icon: import_icons17.HelpIcon,
1190
1358
  target: "_blank",
1191
1359
  onClick: () => {
1192
1360
  const extendedWindow = window;
@@ -1204,24 +1372,24 @@ function useActionProps5() {
1204
1372
  }
1205
1373
 
1206
1374
  // src/extensions/help/index.ts
1207
- function init8() {
1375
+ function init9() {
1208
1376
  mainMenu.registerLink({
1209
1377
  id: "open-help-center",
1210
1378
  group: "help",
1211
1379
  priority: 10,
1212
- useProps: useActionProps5
1380
+ useProps: useActionProps6
1213
1381
  });
1214
1382
  }
1215
1383
 
1216
1384
  // src/extensions/history/hooks/use-action-props.ts
1217
1385
  var import_editor_v1_adapters10 = require("@elementor/editor-v1-adapters");
1218
- var import_icons17 = require("@elementor/icons");
1219
- var import_i18n18 = require("@wordpress/i18n");
1220
- function useActionProps6() {
1386
+ var import_icons18 = require("@elementor/icons");
1387
+ var import_i18n21 = require("@wordpress/i18n");
1388
+ function useActionProps7() {
1221
1389
  const { isActive, isBlocked } = (0, import_editor_v1_adapters10.__privateUseRouteStatus)("panel/history");
1222
1390
  return {
1223
- title: (0, import_i18n18.__)("History", "elementor"),
1224
- icon: import_icons17.HistoryIcon,
1391
+ title: (0, import_i18n21.__)("History", "elementor"),
1392
+ icon: import_icons18.HistoryIcon,
1225
1393
  onClick: () => {
1226
1394
  const extendedWindow = window;
1227
1395
  const config = extendedWindow?.elementorCommon?.eventsManager?.config;
@@ -1241,22 +1409,22 @@ function useActionProps6() {
1241
1409
  }
1242
1410
 
1243
1411
  // src/extensions/history/index.ts
1244
- function init9() {
1412
+ function init10() {
1245
1413
  toolsMenu.registerToggleAction({
1246
1414
  id: "open-history",
1247
1415
  priority: 15,
1248
- useProps: useActionProps6
1416
+ useProps: useActionProps7
1249
1417
  });
1250
1418
  }
1251
1419
 
1252
1420
  // src/extensions/keyboard-shortcuts/hooks/use-action-props.ts
1253
1421
  var import_editor_v1_adapters11 = require("@elementor/editor-v1-adapters");
1254
- var import_icons18 = require("@elementor/icons");
1255
- var import_i18n19 = require("@wordpress/i18n");
1256
- function useActionProps7() {
1422
+ var import_icons19 = require("@elementor/icons");
1423
+ var import_i18n22 = require("@wordpress/i18n");
1424
+ function useActionProps8() {
1257
1425
  return {
1258
- icon: import_icons18.KeyboardIcon,
1259
- title: (0, import_i18n19.__)("Keyboard Shortcuts", "elementor"),
1426
+ icon: import_icons19.KeyboardIcon,
1427
+ title: (0, import_i18n22.__)("Keyboard Shortcuts", "elementor"),
1260
1428
  onClick: () => {
1261
1429
  const extendedWindow = window;
1262
1430
  const config = extendedWindow?.elementorCommon?.eventsManager?.config;
@@ -1274,21 +1442,21 @@ function useActionProps7() {
1274
1442
  }
1275
1443
 
1276
1444
  // src/extensions/keyboard-shortcuts/index.ts
1277
- function init10() {
1445
+ function init11() {
1278
1446
  mainMenu.registerAction({
1279
1447
  id: "open-keyboard-shortcuts",
1280
1448
  group: "default",
1281
1449
  priority: 40,
1282
- useProps: useActionProps7
1450
+ useProps: useActionProps8
1283
1451
  });
1284
1452
  }
1285
1453
 
1286
1454
  // src/extensions/responsive/components/breakpoints-switcher.tsx
1287
- var React23 = __toESM(require("react"));
1455
+ var React25 = __toESM(require("react"));
1288
1456
  var import_editor_responsive = require("@elementor/editor-responsive");
1289
- var import_icons19 = require("@elementor/icons");
1290
- var import_ui14 = require("@elementor/ui");
1291
- var import_i18n20 = require("@wordpress/i18n");
1457
+ var import_icons20 = require("@elementor/icons");
1458
+ var import_ui16 = require("@elementor/ui");
1459
+ var import_i18n23 = require("@wordpress/i18n");
1292
1460
  function BreakpointsSwitcher() {
1293
1461
  const breakpoints = (0, import_editor_responsive.useBreakpoints)();
1294
1462
  const activeBreakpoint = (0, import_editor_responsive.useActiveBreakpoint)();
@@ -1310,14 +1478,14 @@ function BreakpointsSwitcher() {
1310
1478
  }
1311
1479
  activateBreakpoint(value);
1312
1480
  };
1313
- return /* @__PURE__ */ React23.createElement(
1314
- import_ui14.Tabs,
1481
+ return /* @__PURE__ */ React25.createElement(
1482
+ import_ui16.Tabs,
1315
1483
  {
1316
1484
  textColor: "inherit",
1317
1485
  indicatorColor: "secondary",
1318
1486
  value: activeBreakpoint,
1319
1487
  onChange,
1320
- "aria-label": (0, import_i18n20.__)("Switch Device", "elementor"),
1488
+ "aria-label": (0, import_i18n23.__)("Switch Device", "elementor"),
1321
1489
  sx: {
1322
1490
  "& .MuiTabs-indicator": {
1323
1491
  backgroundColor: "text.primary"
@@ -1327,13 +1495,13 @@ function BreakpointsSwitcher() {
1327
1495
  breakpoints.map(({ id, label, type, width }) => {
1328
1496
  const Icon = iconsMap[id];
1329
1497
  const title = labelsMap[type || "default"].replace("%s", label).replace("%d", width?.toString() || "");
1330
- return /* @__PURE__ */ React23.createElement(
1331
- import_ui14.Tab,
1498
+ return /* @__PURE__ */ React25.createElement(
1499
+ import_ui16.Tab,
1332
1500
  {
1333
1501
  value: id,
1334
1502
  key: id,
1335
1503
  "aria-label": title,
1336
- icon: /* @__PURE__ */ React23.createElement(Tooltip4, { title }, /* @__PURE__ */ React23.createElement(Icon, null)),
1504
+ icon: /* @__PURE__ */ React25.createElement(Tooltip4, { title }, /* @__PURE__ */ React25.createElement(Icon, null)),
1337
1505
  sx: { minWidth: "auto" },
1338
1506
  "data-testid": `switch-device-to-${id}`
1339
1507
  }
@@ -1342,8 +1510,8 @@ function BreakpointsSwitcher() {
1342
1510
  );
1343
1511
  }
1344
1512
  function Tooltip4(props) {
1345
- return /* @__PURE__ */ React23.createElement(
1346
- import_ui14.Tooltip,
1513
+ return /* @__PURE__ */ React25.createElement(
1514
+ import_ui16.Tooltip,
1347
1515
  {
1348
1516
  PopperProps: {
1349
1517
  sx: {
@@ -1357,24 +1525,24 @@ function Tooltip4(props) {
1357
1525
  );
1358
1526
  }
1359
1527
  var iconsMap = {
1360
- widescreen: import_icons19.WidescreenIcon,
1361
- desktop: import_icons19.DesktopIcon,
1362
- laptop: import_icons19.LaptopIcon,
1363
- tablet_extra: import_icons19.TabletLandscapeIcon,
1364
- tablet: import_icons19.TabletPortraitIcon,
1365
- mobile_extra: import_icons19.MobileLandscapeIcon,
1366
- mobile: import_icons19.MobilePortraitIcon
1528
+ widescreen: import_icons20.WidescreenIcon,
1529
+ desktop: import_icons20.DesktopIcon,
1530
+ laptop: import_icons20.LaptopIcon,
1531
+ tablet_extra: import_icons20.TabletLandscapeIcon,
1532
+ tablet: import_icons20.TabletPortraitIcon,
1533
+ mobile_extra: import_icons20.MobileLandscapeIcon,
1534
+ mobile: import_icons20.MobilePortraitIcon
1367
1535
  };
1368
1536
  var labelsMap = {
1369
1537
  default: "%s",
1370
1538
  // translators: %s: Breakpoint label, %d: Breakpoint size.
1371
- "min-width": (0, import_i18n20.__)("%s (%dpx and up)", "elementor"),
1539
+ "min-width": (0, import_i18n23.__)("%s (%dpx and up)", "elementor"),
1372
1540
  // translators: %s: Breakpoint label, %d: Breakpoint size.
1373
- "max-width": (0, import_i18n20.__)("%s (up to %dpx)", "elementor")
1541
+ "max-width": (0, import_i18n23.__)("%s (up to %dpx)", "elementor")
1374
1542
  };
1375
1543
 
1376
1544
  // src/extensions/responsive/index.ts
1377
- function init11() {
1545
+ function init12() {
1378
1546
  injectIntoResponsive({
1379
1547
  id: "responsive-breakpoints-switcher",
1380
1548
  component: BreakpointsSwitcher,
@@ -1389,12 +1557,12 @@ function init11() {
1389
1557
  var import_editor = require("@elementor/editor");
1390
1558
 
1391
1559
  // src/extensions/site-settings/components/portalled-primary-action.tsx
1392
- var React26 = __toESM(require("react"));
1560
+ var React28 = __toESM(require("react"));
1393
1561
 
1394
1562
  // src/extensions/site-settings/components/portal.tsx
1395
- var React24 = __toESM(require("react"));
1563
+ var React26 = __toESM(require("react"));
1396
1564
  var import_editor_v1_adapters12 = require("@elementor/editor-v1-adapters");
1397
- var import_ui15 = require("@elementor/ui");
1565
+ var import_ui17 = require("@elementor/ui");
1398
1566
  function Portal(props) {
1399
1567
  const containerRef = (0, import_editor_v1_adapters12.__privateUseListenTo)(
1400
1568
  [(0, import_editor_v1_adapters12.routeOpenEvent)("panel/global"), (0, import_editor_v1_adapters12.routeCloseEvent)("panel/global")],
@@ -1403,22 +1571,22 @@ function Portal(props) {
1403
1571
  if (!containerRef.current) {
1404
1572
  return null;
1405
1573
  }
1406
- return /* @__PURE__ */ React24.createElement(import_ui15.Portal, { container: containerRef.current, ...props });
1574
+ return /* @__PURE__ */ React26.createElement(import_ui17.Portal, { container: containerRef.current, ...props });
1407
1575
  }
1408
1576
  function getContainerRef() {
1409
1577
  return (0, import_editor_v1_adapters12.__privateIsRouteActive)("panel/global") ? { current: document.querySelector("#elementor-panel-inner") } : { current: null };
1410
1578
  }
1411
1579
 
1412
1580
  // src/extensions/site-settings/components/primary-action.tsx
1413
- var React25 = __toESM(require("react"));
1581
+ var React27 = __toESM(require("react"));
1414
1582
  var import_editor_documents9 = require("@elementor/editor-documents");
1415
- var import_ui16 = require("@elementor/ui");
1416
- var import_i18n21 = require("@wordpress/i18n");
1583
+ var import_ui18 = require("@elementor/ui");
1584
+ var import_i18n24 = require("@wordpress/i18n");
1417
1585
  function PrimaryAction2() {
1418
1586
  const document2 = (0, import_editor_documents9.__useActiveDocument)();
1419
1587
  const { save } = (0, import_editor_documents9.__useActiveDocumentActions)();
1420
- return /* @__PURE__ */ React25.createElement(
1421
- import_ui16.Paper,
1588
+ return /* @__PURE__ */ React27.createElement(
1589
+ import_ui18.Paper,
1422
1590
  {
1423
1591
  sx: {
1424
1592
  px: 5,
@@ -1427,8 +1595,8 @@ function PrimaryAction2() {
1427
1595
  borderColor: "divider"
1428
1596
  }
1429
1597
  },
1430
- /* @__PURE__ */ React25.createElement(
1431
- import_ui16.Button,
1598
+ /* @__PURE__ */ React27.createElement(
1599
+ import_ui18.Button,
1432
1600
  {
1433
1601
  variant: "contained",
1434
1602
  disabled: !document2 || !document2.isDirty,
@@ -1436,27 +1604,27 @@ function PrimaryAction2() {
1436
1604
  sx: { width: "100%" },
1437
1605
  onClick: () => document2 && !document2.isSaving ? save() : null
1438
1606
  },
1439
- document2?.isSaving ? /* @__PURE__ */ React25.createElement(import_ui16.CircularProgress, null) : (0, import_i18n21.__)("Save Changes", "elementor")
1607
+ document2?.isSaving ? /* @__PURE__ */ React27.createElement(import_ui18.CircularProgress, null) : (0, import_i18n24.__)("Save Changes", "elementor")
1440
1608
  )
1441
1609
  );
1442
1610
  }
1443
1611
 
1444
1612
  // src/extensions/site-settings/components/portalled-primary-action.tsx
1445
1613
  function PortalledPrimaryAction() {
1446
- return /* @__PURE__ */ React26.createElement(Portal, null, /* @__PURE__ */ React26.createElement(PrimaryAction2, null));
1614
+ return /* @__PURE__ */ React28.createElement(Portal, null, /* @__PURE__ */ React28.createElement(PrimaryAction2, null));
1447
1615
  }
1448
1616
 
1449
1617
  // src/extensions/site-settings/hooks/use-action-props.ts
1450
1618
  var import_editor_v1_adapters13 = require("@elementor/editor-v1-adapters");
1451
- var import_icons20 = require("@elementor/icons");
1452
- var import_i18n22 = require("@wordpress/i18n");
1453
- function useActionProps8() {
1619
+ var import_icons21 = require("@elementor/icons");
1620
+ var import_i18n25 = require("@wordpress/i18n");
1621
+ function useActionProps9() {
1454
1622
  const { isActive, isBlocked } = (0, import_editor_v1_adapters13.__privateUseRouteStatus)("panel/global", {
1455
1623
  blockOnKitRoutes: false
1456
1624
  });
1457
1625
  return {
1458
- title: (0, import_i18n22.__)("Site Settings", "elementor"),
1459
- icon: import_icons20.SettingsIcon,
1626
+ title: (0, import_i18n25.__)("Site Settings", "elementor"),
1627
+ icon: import_icons21.SettingsIcon,
1460
1628
  onClick: () => {
1461
1629
  const extendedWindow = window;
1462
1630
  const config = extendedWindow?.elementorCommon?.eventsManager?.config;
@@ -1480,7 +1648,7 @@ function useActionProps8() {
1480
1648
  }
1481
1649
 
1482
1650
  // src/extensions/site-settings/index.ts
1483
- function init12() {
1651
+ function init13() {
1484
1652
  (0, import_editor.injectIntoTop)({
1485
1653
  id: "site-settings-primary-action-portal",
1486
1654
  component: PortalledPrimaryAction
@@ -1489,19 +1657,19 @@ function init12() {
1489
1657
  id: "toggle-site-settings",
1490
1658
  group: "default",
1491
1659
  priority: 1,
1492
- useProps: useActionProps8
1660
+ useProps: useActionProps9
1493
1661
  });
1494
1662
  }
1495
1663
 
1496
1664
  // src/extensions/structure/hooks/use-action-props.ts
1497
1665
  var import_editor_v1_adapters14 = require("@elementor/editor-v1-adapters");
1498
- var import_icons21 = require("@elementor/icons");
1499
- var import_i18n23 = require("@wordpress/i18n");
1500
- function useActionProps9() {
1666
+ var import_icons22 = require("@elementor/icons");
1667
+ var import_i18n26 = require("@wordpress/i18n");
1668
+ function useActionProps10() {
1501
1669
  const { isActive, isBlocked } = (0, import_editor_v1_adapters14.__privateUseRouteStatus)("navigator");
1502
1670
  return {
1503
- title: (0, import_i18n23.__)("Structure", "elementor"),
1504
- icon: import_icons21.StructureIcon,
1671
+ title: (0, import_i18n26.__)("Structure", "elementor"),
1672
+ icon: import_icons22.StructureIcon,
1505
1673
  onClick: () => {
1506
1674
  const extendedWindow = window;
1507
1675
  const config = extendedWindow?.elementorCommon?.eventsManager?.config;
@@ -1521,22 +1689,22 @@ function useActionProps9() {
1521
1689
  }
1522
1690
 
1523
1691
  // src/extensions/structure/index.ts
1524
- function init13() {
1692
+ function init14() {
1525
1693
  utilitiesMenu.registerToggleAction({
1526
1694
  id: "toggle-structure-view",
1527
1695
  priority: 25,
1528
- useProps: useActionProps9
1696
+ useProps: useActionProps10
1529
1697
  });
1530
1698
  }
1531
1699
 
1532
1700
  // src/extensions/theme-builder/hooks/use-action-props.ts
1533
1701
  var import_editor_v1_adapters15 = require("@elementor/editor-v1-adapters");
1534
- var import_icons22 = require("@elementor/icons");
1535
- var import_i18n24 = require("@wordpress/i18n");
1536
- function useActionProps10() {
1702
+ var import_icons23 = require("@elementor/icons");
1703
+ var import_i18n27 = require("@wordpress/i18n");
1704
+ function useActionProps11() {
1537
1705
  return {
1538
- icon: import_icons22.ThemeBuilderIcon,
1539
- title: (0, import_i18n24.__)("Theme Builder", "elementor"),
1706
+ icon: import_icons23.ThemeBuilderIcon,
1707
+ title: (0, import_i18n27.__)("Theme Builder", "elementor"),
1540
1708
  onClick: () => {
1541
1709
  const extendedWindow = window;
1542
1710
  const config = extendedWindow?.elementorCommon?.eventsManager?.config;
@@ -1554,24 +1722,24 @@ function useActionProps10() {
1554
1722
  }
1555
1723
 
1556
1724
  // src/extensions/theme-builder/index.ts
1557
- function init14() {
1725
+ function init15() {
1558
1726
  mainMenu.registerAction({
1559
1727
  id: "open-theme-builder",
1560
1728
  group: "default",
1561
1729
  priority: 10,
1562
- useProps: useActionProps10
1730
+ useProps: useActionProps11
1563
1731
  });
1564
1732
  }
1565
1733
 
1566
1734
  // src/extensions/user-preferences/hooks/use-action-props.ts
1567
1735
  var import_editor_v1_adapters16 = require("@elementor/editor-v1-adapters");
1568
- var import_icons23 = require("@elementor/icons");
1569
- var import_i18n25 = require("@wordpress/i18n");
1570
- function useActionProps11() {
1736
+ var import_icons24 = require("@elementor/icons");
1737
+ var import_i18n28 = require("@wordpress/i18n");
1738
+ function useActionProps12() {
1571
1739
  const { isActive, isBlocked } = (0, import_editor_v1_adapters16.__privateUseRouteStatus)("panel/editor-preferences");
1572
1740
  return {
1573
- icon: import_icons23.ToggleRightIcon,
1574
- title: (0, import_i18n25.__)("User Preferences", "elementor"),
1741
+ icon: import_icons24.ToggleRightIcon,
1742
+ title: (0, import_i18n28.__)("User Preferences", "elementor"),
1575
1743
  onClick: () => {
1576
1744
  const extendedWindow = window;
1577
1745
  const config = extendedWindow?.elementorCommon?.eventsManager?.config;
@@ -1591,20 +1759,20 @@ function useActionProps11() {
1591
1759
  }
1592
1760
 
1593
1761
  // src/extensions/user-preferences/index.ts
1594
- function init15() {
1762
+ function init16() {
1595
1763
  mainMenu.registerToggleAction({
1596
1764
  id: "open-user-preferences",
1597
1765
  group: "default",
1598
1766
  priority: 30,
1599
- useProps: useActionProps11
1767
+ useProps: useActionProps12
1600
1768
  });
1601
1769
  }
1602
1770
 
1603
1771
  // src/extensions/wordpress/index.ts
1604
1772
  var import_editor_documents10 = require("@elementor/editor-documents");
1605
- var import_icons24 = require("@elementor/icons");
1606
- var import_i18n26 = require("@wordpress/i18n");
1607
- function init16() {
1773
+ var import_icons25 = require("@elementor/icons");
1774
+ var import_i18n29 = require("@wordpress/i18n");
1775
+ function init17() {
1608
1776
  mainMenu.registerLink({
1609
1777
  id: "exit-to-wordpress",
1610
1778
  group: "exits",
@@ -1612,9 +1780,9 @@ function init16() {
1612
1780
  useProps: () => {
1613
1781
  const document2 = (0, import_editor_documents10.__useActiveDocument)();
1614
1782
  return {
1615
- title: (0, import_i18n26.__)("Exit to WordPress", "elementor"),
1783
+ title: (0, import_i18n29.__)("Exit to WordPress", "elementor"),
1616
1784
  href: document2?.links?.platformEdit,
1617
- icon: import_icons24.WordpressIcon,
1785
+ icon: import_icons25.WordpressIcon,
1618
1786
  onClick: () => {
1619
1787
  const extendedWindow = window;
1620
1788
  const config = extendedWindow?.elementorCommon?.eventsManager?.config;
@@ -1636,23 +1804,24 @@ function init16() {
1636
1804
  }
1637
1805
 
1638
1806
  // src/extensions/index.ts
1639
- function init17() {
1640
- init2();
1807
+ function init18() {
1808
+ init();
1641
1809
  init3();
1642
1810
  init4();
1643
1811
  init5();
1644
- init7();
1812
+ init6();
1645
1813
  init8();
1646
1814
  init9();
1647
1815
  init10();
1648
1816
  init11();
1649
1817
  init12();
1650
- init6();
1651
1818
  init13();
1819
+ init7();
1652
1820
  init14();
1653
1821
  init15();
1654
1822
  init16();
1655
- init();
1823
+ init17();
1824
+ init2();
1656
1825
  }
1657
1826
 
1658
1827
  // src/sync/redirect-old-menus.ts
@@ -1664,9 +1833,9 @@ function redirectOldMenus() {
1664
1833
  }
1665
1834
 
1666
1835
  // src/init.ts
1667
- function init18() {
1836
+ function init19() {
1668
1837
  redirectOldMenus();
1669
- init17();
1838
+ init18();
1670
1839
  (0, import_editor2.injectIntoTop)({
1671
1840
  id: "app-bar",
1672
1841
  component: AppBar