$33 GRAYBYTE WORDPRESS FILE MANAGER $26

SERVER : premium201.web-hosting.com #1 SMP Wed Mar 26 12:08:09 UTC 2025
SERVER IP : 172.67.162.162 | ADMIN IP 216.73.217.88
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : NONE

/home/bravetechrwanda/dantho.rw/wp-includes/js/dist/script-modules/block-library/query/

HOME
Current File : /home/bravetechrwanda/dantho.rw/wp-includes/js/dist/script-modules/block-library/query//view.js
// packages/block-library/build-module/query/view.mjs
import {
  store,
  getContext,
  getElement,
  withSyncEvent
} from "@wordpress/interactivity";
var isValidLink = (ref) => ref && ref instanceof window.HTMLAnchorElement && ref.href && (!ref.target || ref.target === "_self") && ref.origin === window.location.origin;
var isValidEvent = (event) => event.button === 0 && // Left clicks only.
!event.metaKey && // Open in new tab (Mac).
!event.ctrlKey && // Open in new tab (Windows).
!event.altKey && // Download.
!event.shiftKey && !event.defaultPrevented;
store(
  "core/query",
  {
    actions: {
      navigate: withSyncEvent(function* (event) {
        const ctx = getContext();
        const { ref } = getElement();
        const queryRef = ref.closest(
          ".wp-block-query[data-wp-router-region]"
        );
        if (isValidLink(ref) && isValidEvent(event)) {
          event.preventDefault();
          const { actions } = yield import("@wordpress/interactivity-router");
          yield actions.navigate(ref.href);
          ctx.url = ref.href;
          const firstAnchor = `.wp-block-post-template a[href]`;
          queryRef.querySelector(firstAnchor)?.focus();
        }
      }),
      *prefetch() {
        const { ref } = getElement();
        if (isValidLink(ref)) {
          const { actions } = yield import("@wordpress/interactivity-router");
          yield actions.prefetch(ref.href);
        }
      }
    },
    callbacks: {
      *prefetch() {
        const { url } = getContext();
        const { ref } = getElement();
        if (url && isValidLink(ref)) {
          const { actions } = yield import("@wordpress/interactivity-router");
          yield actions.prefetch(ref.href);
        }
      }
    }
  },
  { lock: true }
);

Current_dir [ WRITEABLE ] Document_root [ NOT WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
21 May 2026 3.20 PM
bravetechrwanda / bravetechrwanda
0755
view.js
1.729 KB
21 May 2026 3.20 PM
bravetechrwanda / bravetechrwanda
0644
view.min.asset.php
0.247 KB
21 May 2026 3.20 PM
bravetechrwanda / bravetechrwanda
0644
view.min.js
0.907 KB
21 May 2026 3.20 PM
bravetechrwanda / bravetechrwanda
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2026 CONTACT ME
Static GIF Static GIF