@elementor/editor-app-bar 4.1.0-778 → 4.1.0-780

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
@@ -339,10 +339,10 @@ function MainMenuLocation() {
339
339
  });
340
340
  const toolbarLogoProps = (0, import_ui6.bindTrigger)(popupState);
341
341
  const onToolbarClick = (e) => {
342
- const extendedWindow2 = window;
343
- const config = extendedWindow2?.elementorCommon?.eventsManager?.config;
342
+ const extendedWindow = window;
343
+ const config = extendedWindow?.elementorCommon?.eventsManager?.config;
344
344
  if (config) {
345
- extendedWindow2.elementorCommon.eventsManager.dispatchEvent(config.names.topBar.elementorLogoDropdown, {
345
+ extendedWindow.elementorCommon.eventsManager.dispatchEvent(config.names.topBar.elementorLogoDropdown, {
346
346
  location: config.locations.topBar,
347
347
  secondaryLocation: config.secondaryLocations.eLogoMenu,
348
348
  trigger: config.triggers.dropdownClick,
@@ -439,14 +439,14 @@ var FEEDBACK_TOGGLE_EVENT = "elementor/open-feedback";
439
439
 
440
440
  // src/components/locations/send-feedback-popup-location.tsx
441
441
  var checkIfUserIsConnected = () => {
442
- const extendedWindow2 = window;
443
- return extendedWindow2?.elementorCommon?.config.library_connect.is_connected || extendedWindow2?.elementorPro?.config.isActive;
442
+ const extendedWindow = window;
443
+ return extendedWindow?.elementorCommon?.config.library_connect.is_connected || extendedWindow?.elementorPro?.config.isActive;
444
444
  };
445
445
  function SendFeedbackPopupLocation() {
446
446
  const isActive = (0, import_editor_v1_adapters.isExperimentActive)(EXPERIMENT_NAME);
447
- const extendedWindow2 = window;
447
+ const extendedWindow = window;
448
448
  const [isUserConnected, setIsUserConnected] = (0, import_react3.useState)(checkIfUserIsConnected());
449
- const connectUrl = extendedWindow2?.elementor?.config.user.top_bar.connect_url;
449
+ const connectUrl = extendedWindow?.elementor?.config.user.top_bar.connect_url;
450
450
  const [feedbackContent, setFeedbackContent] = (0, import_react3.useState)("");
451
451
  const [feedbackResult, setFeedbackResult] = (0, import_react3.useState)(null);
452
452
  const [submitDisabled, setSubmitDisabled] = (0, import_react3.useState)(true);
@@ -595,10 +595,10 @@ var import_icons5 = require("@elementor/icons");
595
595
  var import_i18n5 = require("@wordpress/i18n");
596
596
  var dispatchConnectClickEvent = (eventName) => {
597
597
  try {
598
- const extendedWindow2 = window;
599
- const config = extendedWindow2?.elementorCommon?.eventsManager?.config;
598
+ const extendedWindow = window;
599
+ const config = extendedWindow?.elementorCommon?.eventsManager?.config;
600
600
  if (config) {
601
- extendedWindow2.elementorCommon.eventsManager.dispatchEvent(config.names.topBar[eventName], {
601
+ extendedWindow.elementorCommon.eventsManager.dispatchEvent(config.names.topBar[eventName], {
602
602
  location: config.locations.topBar,
603
603
  secondaryLocation: config.secondaryLocations.eLogoMenu,
604
604
  trigger: config.triggers.dropdownClick,
@@ -610,28 +610,28 @@ var dispatchConnectClickEvent = (eventName) => {
610
610
  }
611
611
  };
612
612
  function useConnectLinkConfig() {
613
- const extendedWindow2 = window;
613
+ const extendedWindow = window;
614
614
  let isUserConnected = false;
615
- const isPro = extendedWindow2?.elementor?.helpers.hasPro();
615
+ const isPro = extendedWindow?.elementor?.helpers.hasPro();
616
616
  let target = "_blank";
617
617
  if (isPro) {
618
- isUserConnected = extendedWindow2?.elementorPro?.config.isActive ?? false;
618
+ isUserConnected = extendedWindow?.elementorPro?.config.isActive ?? false;
619
619
  } else {
620
- isUserConnected = extendedWindow2?.elementorCommon?.config.library_connect.is_connected ?? false;
620
+ isUserConnected = extendedWindow?.elementorCommon?.config.library_connect.is_connected ?? false;
621
621
  target = "_self";
622
622
  }
623
623
  const handleConnectClick = (0, import_react5.useCallback)(
624
624
  (event) => {
625
625
  event.preventDefault();
626
- if (extendedWindow2.jQuery && extendedWindow2.jQuery.fn?.elementorConnect) {
627
- const connectUrl = extendedWindow2?.elementor?.config.user.top_bar.connect_url;
628
- const $tempButton = extendedWindow2.jQuery("<a>");
626
+ if (extendedWindow.jQuery && extendedWindow.jQuery.fn?.elementorConnect) {
627
+ const connectUrl = extendedWindow?.elementor?.config.user.top_bar.connect_url;
628
+ const $tempButton = extendedWindow.jQuery("<a>");
629
629
  $tempButton?.attr("href", connectUrl)?.attr("target", "_blank")?.attr("rel", "opener")?.css("display", "none")?.appendTo("body");
630
630
  $tempButton.elementorConnect({
631
631
  success: () => {
632
632
  dispatchConnectClickEvent("accountConnected");
633
633
  setTimeout(() => {
634
- extendedWindow2.location.reload();
634
+ extendedWindow.location.reload();
635
635
  }, 200);
636
636
  }
637
637
  });
@@ -642,16 +642,16 @@ function useConnectLinkConfig() {
642
642
  }, 1e3);
643
643
  }
644
644
  },
645
- [extendedWindow2]
645
+ [extendedWindow]
646
646
  );
647
647
  return isUserConnected ? {
648
648
  title: (0, import_i18n5.__)("My Elementor", "elementor"),
649
- href: extendedWindow2?.elementor?.config.user.top_bar.my_elementor_url,
649
+ href: extendedWindow?.elementor?.config.user.top_bar.my_elementor_url,
650
650
  icon: import_icons5.UserIcon,
651
651
  target: "_blank"
652
652
  } : {
653
653
  title: (0, import_i18n5.__)("Connect my account", "elementor"),
654
- href: extendedWindow2?.elementor?.config.user.top_bar.connect_url,
654
+ href: extendedWindow?.elementor?.config.user.top_bar.connect_url,
655
655
  icon: import_icons5.UserIcon,
656
656
  target,
657
657
  onClick: handleConnectClick
@@ -679,10 +679,10 @@ function useActionProps() {
679
679
  icon: import_icons6.EyeIcon,
680
680
  title: (0, import_i18n6.__)("Preview Changes", "elementor"),
681
681
  onClick: () => {
682
- const extendedWindow2 = window;
683
- const config = extendedWindow2?.elementorCommon?.eventsManager?.config;
682
+ const extendedWindow = window;
683
+ const config = extendedWindow?.elementorCommon?.eventsManager?.config;
684
684
  if (config) {
685
- extendedWindow2.elementorCommon.eventsManager.dispatchEvent(config.names.topBar.previewPage, {
685
+ extendedWindow.elementorCommon.eventsManager.dispatchEvent(config.names.topBar.previewPage, {
686
686
  location: config.locations.topBar,
687
687
  secondaryLocation: config.secondaryLocations["preview-page"],
688
688
  trigger: config.triggers.click,
@@ -782,10 +782,10 @@ function PrimaryAction() {
782
782
  import_ui13.Button,
783
783
  {
784
784
  onClick: () => {
785
- const extendedWindow2 = window;
786
- const config = extendedWindow2?.elementorCommon?.eventsManager?.config;
785
+ const extendedWindow = window;
786
+ const config = extendedWindow?.elementorCommon?.eventsManager?.config;
787
787
  if (config) {
788
- extendedWindow2.elementorCommon.eventsManager.dispatchEvent(
788
+ extendedWindow.elementorCommon.eventsManager.dispatchEvent(
789
789
  config.names.topBar.publishButton,
790
790
  {
791
791
  location: config.locations.topBar,
@@ -1031,10 +1031,10 @@ function useActionProps2() {
1031
1031
  if (!document2) {
1032
1032
  return;
1033
1033
  }
1034
- const extendedWindow2 = window;
1035
- const config = extendedWindow2?.elementorCommon?.eventsManager?.config;
1034
+ const extendedWindow = window;
1035
+ const config = extendedWindow?.elementorCommon?.eventsManager?.config;
1036
1036
  if (config) {
1037
- extendedWindow2.elementorCommon.eventsManager.dispatchEvent(config.names.topBar.documentSettings, {
1037
+ extendedWindow.elementorCommon.eventsManager.dispatchEvent(config.names.topBar.documentSettings, {
1038
1038
  location: config.locations.topBar,
1039
1039
  secondaryLocation: config.secondaryLocations["document-settings"],
1040
1040
  trigger: config.triggers.click,
@@ -1067,10 +1067,10 @@ function useActionProps3() {
1067
1067
  title: (0, import_i18n13.__)("Add Element", "elementor"),
1068
1068
  icon: import_icons13.PlusIcon,
1069
1069
  onClick: () => {
1070
- const extendedWindow2 = window;
1071
- const config = extendedWindow2?.elementorCommon?.eventsManager?.config;
1070
+ const extendedWindow = window;
1071
+ const config = extendedWindow?.elementorCommon?.eventsManager?.config;
1072
1072
  if (config) {
1073
- extendedWindow2.elementorCommon.eventsManager.dispatchEvent(config.names.topBar.widgetPanel, {
1073
+ extendedWindow.elementorCommon.eventsManager.dispatchEvent(config.names.topBar.widgetPanel, {
1074
1074
  location: config.locations.topBar,
1075
1075
  secondaryLocation: config.secondaryLocations["widget-panel"],
1076
1076
  trigger: config.triggers.toggleClick,
@@ -1155,10 +1155,10 @@ function useActionProps4() {
1155
1155
  title: (0, import_i18n16.__)("Finder", "elementor"),
1156
1156
  icon: import_icons15.SearchIcon,
1157
1157
  onClick: () => {
1158
- const extendedWindow2 = window;
1159
- const config = extendedWindow2?.elementorCommon?.eventsManager?.config;
1158
+ const extendedWindow = window;
1159
+ const config = extendedWindow?.elementorCommon?.eventsManager?.config;
1160
1160
  if (config) {
1161
- extendedWindow2.elementorCommon.eventsManager.dispatchEvent(config.names.topBar.finder, {
1161
+ extendedWindow.elementorCommon.eventsManager.dispatchEvent(config.names.topBar.finder, {
1162
1162
  location: config.locations.topBar,
1163
1163
  secondaryLocation: config.secondaryLocations.finder,
1164
1164
  trigger: config.triggers.toggleClick,
@@ -1189,10 +1189,10 @@ function useActionProps5() {
1189
1189
  icon: import_icons16.HelpIcon,
1190
1190
  target: "_blank",
1191
1191
  onClick: () => {
1192
- const extendedWindow2 = window;
1193
- const config = extendedWindow2?.elementorCommon?.eventsManager?.config;
1192
+ const extendedWindow = window;
1193
+ const config = extendedWindow?.elementorCommon?.eventsManager?.config;
1194
1194
  if (config) {
1195
- extendedWindow2.elementorCommon.eventsManager.dispatchEvent(config.names.topBar.help, {
1195
+ extendedWindow.elementorCommon.eventsManager.dispatchEvent(config.names.topBar.help, {
1196
1196
  location: config.locations.topBar,
1197
1197
  secondaryLocation: config.secondaryLocations.help,
1198
1198
  trigger: config.triggers.click,
@@ -1223,10 +1223,10 @@ function useActionProps6() {
1223
1223
  title: (0, import_i18n18.__)("History", "elementor"),
1224
1224
  icon: import_icons17.HistoryIcon,
1225
1225
  onClick: () => {
1226
- const extendedWindow2 = window;
1227
- const config = extendedWindow2?.elementorCommon?.eventsManager?.config;
1226
+ const extendedWindow = window;
1227
+ const config = extendedWindow?.elementorCommon?.eventsManager?.config;
1228
1228
  if (config) {
1229
- extendedWindow2.elementorCommon.eventsManager.dispatchEvent(config.names.topBar.history, {
1229
+ extendedWindow.elementorCommon.eventsManager.dispatchEvent(config.names.topBar.history, {
1230
1230
  location: config.locations.topBar,
1231
1231
  secondaryLocation: config.secondaryLocations.elementorLogo,
1232
1232
  trigger: config.triggers.click,
@@ -1258,10 +1258,10 @@ function useActionProps7() {
1258
1258
  icon: import_icons18.KeyboardIcon,
1259
1259
  title: (0, import_i18n19.__)("Keyboard Shortcuts", "elementor"),
1260
1260
  onClick: () => {
1261
- const extendedWindow2 = window;
1262
- const config = extendedWindow2?.elementorCommon?.eventsManager?.config;
1261
+ const extendedWindow = window;
1262
+ const config = extendedWindow?.elementorCommon?.eventsManager?.config;
1263
1263
  if (config) {
1264
- extendedWindow2.elementorCommon.eventsManager.dispatchEvent(config.names.topBar.keyboardShortcuts, {
1264
+ extendedWindow.elementorCommon.eventsManager.dispatchEvent(config.names.topBar.keyboardShortcuts, {
1265
1265
  location: config.locations.topBar,
1266
1266
  secondaryLocation: config.secondaryLocations.elementorLogo,
1267
1267
  trigger: config.triggers.click,
@@ -1297,10 +1297,10 @@ function BreakpointsSwitcher() {
1297
1297
  return null;
1298
1298
  }
1299
1299
  const onChange = (_, value) => {
1300
- const extendedWindow2 = window;
1301
- const config = extendedWindow2?.elementorCommon?.eventsManager?.config;
1300
+ const extendedWindow = window;
1301
+ const config = extendedWindow?.elementorCommon?.eventsManager?.config;
1302
1302
  if (config) {
1303
- extendedWindow2.elementorCommon.eventsManager.dispatchEvent(config.names.topBar.responsiveControls, {
1303
+ extendedWindow.elementorCommon.eventsManager.dispatchEvent(config.names.topBar.responsiveControls, {
1304
1304
  location: config.locations.topBar,
1305
1305
  secondaryLocation: config.secondaryLocations.responsiveControls,
1306
1306
  trigger: config.triggers.click,
@@ -1458,10 +1458,10 @@ function useActionProps8() {
1458
1458
  title: (0, import_i18n22.__)("Site Settings", "elementor"),
1459
1459
  icon: import_icons20.SettingsIcon,
1460
1460
  onClick: () => {
1461
- const extendedWindow2 = window;
1462
- const config = extendedWindow2?.elementorCommon?.eventsManager?.config;
1461
+ const extendedWindow = window;
1462
+ const config = extendedWindow?.elementorCommon?.eventsManager?.config;
1463
1463
  if (config) {
1464
- extendedWindow2.elementorCommon.eventsManager.dispatchEvent(config.names.topBar.siteSettings, {
1464
+ extendedWindow.elementorCommon.eventsManager.dispatchEvent(config.names.topBar.siteSettings, {
1465
1465
  location: config.locations.topBar,
1466
1466
  secondaryLocation: config.secondaryLocations.siteSettings,
1467
1467
  trigger: config.triggers.toggleClick,
@@ -1495,79 +1495,18 @@ function init12() {
1495
1495
 
1496
1496
  // src/extensions/structure/hooks/use-action-props.ts
1497
1497
  var import_editor_v1_adapters14 = require("@elementor/editor-v1-adapters");
1498
- var import_i18n24 = require("@wordpress/i18n");
1499
-
1500
- // src/extensions/structure/hooks/structure-icon-with-popup.tsx
1501
- var React27 = __toESM(require("react"));
1502
- var import_react6 = require("react");
1503
1498
  var import_icons21 = require("@elementor/icons");
1504
- var import_ui17 = require("@elementor/ui");
1505
1499
  var import_i18n23 = require("@wordpress/i18n");
1506
- var extendedWindow = window;
1507
- var StructurePopupContent = ({ onClose }) => {
1508
- const handleDismiss = async () => {
1509
- onClose();
1510
- extendedWindow.elementorCommon?.ajax?.addRequest?.("structure_popup_dismiss").catch(() => {
1511
- });
1512
- };
1513
- const stopEventPropagation = (event) => {
1514
- event.stopPropagation();
1515
- };
1516
- return /* @__PURE__ */ React27.createElement(import_ui17.Card, { elevation: 0, sx: { maxWidth: 300 }, onClick: stopEventPropagation }, /* @__PURE__ */ React27.createElement(import_ui17.CardContent, null, /* @__PURE__ */ React27.createElement(import_ui17.Typography, { variant: "subtitle2", sx: { mb: 2 } }, (0, import_i18n23.__)("Refreshed Top Bar layout!", "elementor")), /* @__PURE__ */ React27.createElement(import_ui17.Typography, { variant: "body2" }, (0, import_i18n23.__)("We\u2019ve fine-tuned the Top Bar to make navigation faster and smoother.", "elementor"))), /* @__PURE__ */ React27.createElement(import_ui17.CardActions, { sx: { pt: 0 } }, /* @__PURE__ */ React27.createElement(
1517
- import_ui17.Button,
1518
- {
1519
- size: "small",
1520
- color: "secondary",
1521
- href: "https://go.elementor.com/editor-top-bar-learn/",
1522
- target: "_blank"
1523
- },
1524
- (0, import_i18n23.__)("Learn More", "elementor")
1525
- ), /* @__PURE__ */ React27.createElement(import_ui17.Button, { size: "small", variant: "contained", onClick: handleDismiss }, (0, import_i18n23.__)("Got it", "elementor"))));
1526
- };
1527
- var StructureIconWithPopup = () => {
1528
- const [showPopup, setShowPopup] = (0, import_react6.useState)(false);
1529
- (0, import_react6.useEffect)(() => {
1530
- if (extendedWindow.elementorShowInfotip?.shouldShow === "1") {
1531
- setShowPopup(true);
1532
- }
1533
- }, []);
1534
- const handleClosePopup = () => {
1535
- setShowPopup(false);
1536
- };
1537
- if (extendedWindow.elementorShowInfotip?.shouldShow !== "1") {
1538
- return /* @__PURE__ */ React27.createElement(import_icons21.StructureIcon, null);
1539
- }
1540
- return /* @__PURE__ */ React27.createElement(
1541
- import_ui17.Infotip,
1542
- {
1543
- placement: "bottom",
1544
- arrow: false,
1545
- content: /* @__PURE__ */ React27.createElement(StructurePopupContent, { onClose: handleClosePopup }),
1546
- open: showPopup,
1547
- PopperProps: {
1548
- modifiers: [
1549
- {
1550
- name: "offset",
1551
- options: { offset: [-16, 12] }
1552
- }
1553
- ]
1554
- }
1555
- },
1556
- /* @__PURE__ */ React27.createElement(import_icons21.StructureIcon, null)
1557
- );
1558
- };
1559
-
1560
- // src/extensions/structure/hooks/use-action-props.ts
1561
1500
  function useActionProps9() {
1562
1501
  const { isActive, isBlocked } = (0, import_editor_v1_adapters14.__privateUseRouteStatus)("navigator");
1563
1502
  return {
1564
- title: (0, import_i18n24.__)("Structure", "elementor"),
1565
- icon: StructureIconWithPopup,
1503
+ title: (0, import_i18n23.__)("Structure", "elementor"),
1504
+ icon: import_icons21.StructureIcon,
1566
1505
  onClick: () => {
1567
- const extendedWindow2 = window;
1568
- const config = extendedWindow2?.elementorCommon?.eventsManager?.config;
1506
+ const extendedWindow = window;
1507
+ const config = extendedWindow?.elementorCommon?.eventsManager?.config;
1569
1508
  if (config) {
1570
- extendedWindow2.elementorCommon.eventsManager.dispatchEvent(config.names.topBar.structure, {
1509
+ extendedWindow.elementorCommon.eventsManager.dispatchEvent(config.names.topBar.structure, {
1571
1510
  location: config.locations.topBar,
1572
1511
  secondaryLocation: config.secondaryLocations.structure,
1573
1512
  trigger: config.triggers.toggleClick,
@@ -1593,16 +1532,16 @@ function init13() {
1593
1532
  // src/extensions/theme-builder/hooks/use-action-props.ts
1594
1533
  var import_editor_v1_adapters15 = require("@elementor/editor-v1-adapters");
1595
1534
  var import_icons22 = require("@elementor/icons");
1596
- var import_i18n25 = require("@wordpress/i18n");
1535
+ var import_i18n24 = require("@wordpress/i18n");
1597
1536
  function useActionProps10() {
1598
1537
  return {
1599
1538
  icon: import_icons22.ThemeBuilderIcon,
1600
- title: (0, import_i18n25.__)("Theme Builder", "elementor"),
1539
+ title: (0, import_i18n24.__)("Theme Builder", "elementor"),
1601
1540
  onClick: () => {
1602
- const extendedWindow2 = window;
1603
- const config = extendedWindow2?.elementorCommon?.eventsManager?.config;
1541
+ const extendedWindow = window;
1542
+ const config = extendedWindow?.elementorCommon?.eventsManager?.config;
1604
1543
  if (config) {
1605
- extendedWindow2.elementorCommon.eventsManager.dispatchEvent(config.names.topBar.themeBuilder, {
1544
+ extendedWindow.elementorCommon.eventsManager.dispatchEvent(config.names.topBar.themeBuilder, {
1606
1545
  location: config.locations.topBar,
1607
1546
  secondaryLocation: config.secondaryLocations.elementorLogo,
1608
1547
  trigger: config.triggers.click,
@@ -1627,17 +1566,17 @@ function init14() {
1627
1566
  // src/extensions/user-preferences/hooks/use-action-props.ts
1628
1567
  var import_editor_v1_adapters16 = require("@elementor/editor-v1-adapters");
1629
1568
  var import_icons23 = require("@elementor/icons");
1630
- var import_i18n26 = require("@wordpress/i18n");
1569
+ var import_i18n25 = require("@wordpress/i18n");
1631
1570
  function useActionProps11() {
1632
1571
  const { isActive, isBlocked } = (0, import_editor_v1_adapters16.__privateUseRouteStatus)("panel/editor-preferences");
1633
1572
  return {
1634
1573
  icon: import_icons23.ToggleRightIcon,
1635
- title: (0, import_i18n26.__)("User Preferences", "elementor"),
1574
+ title: (0, import_i18n25.__)("User Preferences", "elementor"),
1636
1575
  onClick: () => {
1637
- const extendedWindow2 = window;
1638
- const config = extendedWindow2?.elementorCommon?.eventsManager?.config;
1576
+ const extendedWindow = window;
1577
+ const config = extendedWindow?.elementorCommon?.eventsManager?.config;
1639
1578
  if (config) {
1640
- extendedWindow2.elementorCommon.eventsManager.dispatchEvent(config.names.topBar.userPreferences, {
1579
+ extendedWindow.elementorCommon.eventsManager.dispatchEvent(config.names.topBar.userPreferences, {
1641
1580
  location: config.locations.topBar,
1642
1581
  secondaryLocation: config.secondaryLocations.elementorLogo,
1643
1582
  trigger: config.triggers.click,
@@ -1664,7 +1603,7 @@ function init15() {
1664
1603
  // src/extensions/wordpress/index.ts
1665
1604
  var import_editor_documents10 = require("@elementor/editor-documents");
1666
1605
  var import_icons24 = require("@elementor/icons");
1667
- var import_i18n27 = require("@wordpress/i18n");
1606
+ var import_i18n26 = require("@wordpress/i18n");
1668
1607
  function init16() {
1669
1608
  mainMenu.registerLink({
1670
1609
  id: "exit-to-wordpress",
@@ -1673,14 +1612,14 @@ function init16() {
1673
1612
  useProps: () => {
1674
1613
  const document2 = (0, import_editor_documents10.__useActiveDocument)();
1675
1614
  return {
1676
- title: (0, import_i18n27.__)("Exit to WordPress", "elementor"),
1615
+ title: (0, import_i18n26.__)("Exit to WordPress", "elementor"),
1677
1616
  href: document2?.links?.platformEdit,
1678
1617
  icon: import_icons24.WordpressIcon,
1679
1618
  onClick: () => {
1680
- const extendedWindow2 = window;
1681
- const config = extendedWindow2?.elementorCommon?.eventsManager?.config;
1619
+ const extendedWindow = window;
1620
+ const config = extendedWindow?.elementorCommon?.eventsManager?.config;
1682
1621
  if (config) {
1683
- extendedWindow2.elementorCommon.eventsManager.dispatchEvent(
1622
+ extendedWindow.elementorCommon.eventsManager.dispatchEvent(
1684
1623
  config.names.topBar.exitToWordpress,
1685
1624
  {
1686
1625
  location: config.locations.topBar,