REDROOM
PHP 8.2.31
Path:
Logout
Edit File
Size: 1.73 KB
Close
/home/nshryvcy/taramarriagebureau.com/wp-includes/js/dist/script-modules/block-library/query/view.js
Text
Base64
// 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 } );
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 0 × Files: 3
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
view.js
1.73 KB
lrw-r--r--
2026-05-21 04:11:24
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
view.min.asset.php
253 B
lrw-r--r--
2026-05-21 04:11:24
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
view.min.js
929 B
lrw-r--r--
2026-05-21 04:11:24
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Zip Selected
If ZipArchive is unavailable, a
.tar
will be created (no compression).