summaryrefslogtreecommitdiffstats
path: root/wp-includes/blocks/query
diff options
context:
space:
mode:
Diffstat (limited to 'wp-includes/blocks/query')
-rw-r--r--wp-includes/blocks/query/block.json7
-rw-r--r--wp-includes/blocks/query/editor-rtl.css2
-rw-r--r--wp-includes/blocks/query/editor-rtl.min.css2
-rw-r--r--wp-includes/blocks/query/editor.css2
-rw-r--r--wp-includes/blocks/query/editor.min.css2
-rw-r--r--wp-includes/blocks/query/style-rtl.css42
-rw-r--r--wp-includes/blocks/query/style-rtl.min.css1
-rw-r--r--wp-includes/blocks/query/style.css42
-rw-r--r--wp-includes/blocks/query/style.min.css1
-rw-r--r--wp-includes/blocks/query/view.asset.php2
-rw-r--r--wp-includes/blocks/query/view.js193
-rw-r--r--wp-includes/blocks/query/view.min.asset.php2
-rw-r--r--wp-includes/blocks/query/view.min.js2
13 files changed, 122 insertions, 178 deletions
diff --git a/wp-includes/blocks/query/block.json b/wp-includes/blocks/query/block.json
index d30eccf..b602032 100644
--- a/wp-includes/blocks/query/block.json
+++ b/wp-includes/blocks/query/block.json
@@ -49,9 +49,8 @@
"supports": {
"align": [ "wide", "full" ],
"html": false,
- "layout": true
+ "layout": true,
+ "interactivity": true
},
- "editorStyle": "wp-block-query-editor",
- "style": "wp-block-query",
- "viewScript": "file:./view.min.js"
+ "editorStyle": "wp-block-query-editor"
}
diff --git a/wp-includes/blocks/query/editor-rtl.css b/wp-includes/blocks/query/editor-rtl.css
index bf715b2..a185b56 100644
--- a/wp-includes/blocks/query/editor-rtl.css
+++ b/wp-includes/blocks/query/editor-rtl.css
@@ -7,9 +7,9 @@
}
.block-library-query__pattern-selection-content .block-editor-block-patterns-list{
- grid-gap:8px;
display:grid;
grid-template-columns:1fr 1fr 1fr;
+ grid-gap:8px;
}
.block-library-query__pattern-selection-content .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item{
margin-bottom:0;
diff --git a/wp-includes/blocks/query/editor-rtl.min.css b/wp-includes/blocks/query/editor-rtl.min.css
index 7c01abd..83ec92e 100644
--- a/wp-includes/blocks/query/editor-rtl.min.css
+++ b/wp-includes/blocks/query/editor-rtl.min.css
@@ -1 +1 @@
-.block-library-query-toolbar__popover .components-popover__content{min-width:230px}.wp-block-query__create-new-link{padding:0 52px 16px 16px}.block-library-query__pattern-selection-content .block-editor-block-patterns-list{grid-gap:8px;display:grid;grid-template-columns:1fr 1fr 1fr}.block-library-query__pattern-selection-content .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item{margin-bottom:0}.block-library-query__pattern-selection-content .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item .block-editor-block-preview__container{max-height:250px}.block-library-query-pattern__selection-modal .block-editor-block-patterns-list{column-count:2;column-gap:24px}@media (min-width:1280px){.block-library-query-pattern__selection-modal .block-editor-block-patterns-list{column-count:3}}.block-library-query-pattern__selection-modal .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item{break-inside:avoid-column}.block-library-query-pattern__selection-modal .block-library-query-pattern__selection-search{background:#fff;margin-bottom:2px;padding:16px 0;position:sticky;top:0;z-index:2}.block-library-query-toolspanel__filters .components-form-token-field__help{margin-bottom:0}.block-library-query-toolspanel__filters .block-library-query-inspector__taxonomy-control:not(:last-child){margin-bottom:24px}@media (min-width:600px){.wp-block-query__enhanced-pagination-modal{max-width:480px}}.wp-block-query__enhanced-pagination-notice{margin:0} \ No newline at end of file
+.block-library-query-toolbar__popover .components-popover__content{min-width:230px}.wp-block-query__create-new-link{padding:0 52px 16px 16px}.block-library-query__pattern-selection-content .block-editor-block-patterns-list{display:grid;grid-template-columns:1fr 1fr 1fr;grid-gap:8px}.block-library-query__pattern-selection-content .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item{margin-bottom:0}.block-library-query__pattern-selection-content .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item .block-editor-block-preview__container{max-height:250px}.block-library-query-pattern__selection-modal .block-editor-block-patterns-list{column-count:2;column-gap:24px}@media (min-width:1280px){.block-library-query-pattern__selection-modal .block-editor-block-patterns-list{column-count:3}}.block-library-query-pattern__selection-modal .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item{break-inside:avoid-column}.block-library-query-pattern__selection-modal .block-library-query-pattern__selection-search{background:#fff;margin-bottom:2px;padding:16px 0;position:sticky;top:0;z-index:2}.block-library-query-toolspanel__filters .components-form-token-field__help{margin-bottom:0}.block-library-query-toolspanel__filters .block-library-query-inspector__taxonomy-control:not(:last-child){margin-bottom:24px}@media (min-width:600px){.wp-block-query__enhanced-pagination-modal{max-width:480px}}.wp-block-query__enhanced-pagination-notice{margin:0} \ No newline at end of file
diff --git a/wp-includes/blocks/query/editor.css b/wp-includes/blocks/query/editor.css
index 61dc7f7..9e5af92 100644
--- a/wp-includes/blocks/query/editor.css
+++ b/wp-includes/blocks/query/editor.css
@@ -7,9 +7,9 @@
}
.block-library-query__pattern-selection-content .block-editor-block-patterns-list{
- grid-gap:8px;
display:grid;
grid-template-columns:1fr 1fr 1fr;
+ grid-gap:8px;
}
.block-library-query__pattern-selection-content .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item{
margin-bottom:0;
diff --git a/wp-includes/blocks/query/editor.min.css b/wp-includes/blocks/query/editor.min.css
index c36952d..7fa4668 100644
--- a/wp-includes/blocks/query/editor.min.css
+++ b/wp-includes/blocks/query/editor.min.css
@@ -1 +1 @@
-.block-library-query-toolbar__popover .components-popover__content{min-width:230px}.wp-block-query__create-new-link{padding:0 16px 16px 52px}.block-library-query__pattern-selection-content .block-editor-block-patterns-list{grid-gap:8px;display:grid;grid-template-columns:1fr 1fr 1fr}.block-library-query__pattern-selection-content .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item{margin-bottom:0}.block-library-query__pattern-selection-content .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item .block-editor-block-preview__container{max-height:250px}.block-library-query-pattern__selection-modal .block-editor-block-patterns-list{column-count:2;column-gap:24px}@media (min-width:1280px){.block-library-query-pattern__selection-modal .block-editor-block-patterns-list{column-count:3}}.block-library-query-pattern__selection-modal .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item{break-inside:avoid-column}.block-library-query-pattern__selection-modal .block-library-query-pattern__selection-search{background:#fff;margin-bottom:2px;padding:16px 0;position:sticky;top:0;z-index:2}.block-library-query-toolspanel__filters .components-form-token-field__help{margin-bottom:0}.block-library-query-toolspanel__filters .block-library-query-inspector__taxonomy-control:not(:last-child){margin-bottom:24px}@media (min-width:600px){.wp-block-query__enhanced-pagination-modal{max-width:480px}}.wp-block-query__enhanced-pagination-notice{margin:0} \ No newline at end of file
+.block-library-query-toolbar__popover .components-popover__content{min-width:230px}.wp-block-query__create-new-link{padding:0 16px 16px 52px}.block-library-query__pattern-selection-content .block-editor-block-patterns-list{display:grid;grid-template-columns:1fr 1fr 1fr;grid-gap:8px}.block-library-query__pattern-selection-content .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item{margin-bottom:0}.block-library-query__pattern-selection-content .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item .block-editor-block-preview__container{max-height:250px}.block-library-query-pattern__selection-modal .block-editor-block-patterns-list{column-count:2;column-gap:24px}@media (min-width:1280px){.block-library-query-pattern__selection-modal .block-editor-block-patterns-list{column-count:3}}.block-library-query-pattern__selection-modal .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item{break-inside:avoid-column}.block-library-query-pattern__selection-modal .block-library-query-pattern__selection-search{background:#fff;margin-bottom:2px;padding:16px 0;position:sticky;top:0;z-index:2}.block-library-query-toolspanel__filters .components-form-token-field__help{margin-bottom:0}.block-library-query-toolspanel__filters .block-library-query-inspector__taxonomy-control:not(:last-child){margin-bottom:24px}@media (min-width:600px){.wp-block-query__enhanced-pagination-modal{max-width:480px}}.wp-block-query__enhanced-pagination-notice{margin:0} \ No newline at end of file
diff --git a/wp-includes/blocks/query/style-rtl.css b/wp-includes/blocks/query/style-rtl.css
deleted file mode 100644
index cfd727e..0000000
--- a/wp-includes/blocks/query/style-rtl.css
+++ /dev/null
@@ -1,42 +0,0 @@
-.wp-block-query__enhanced-pagination-animation{
- background-color:var(--wp--preset--color--primary, #000);
- height:4px;
- margin:0;
- max-width:100vw !important;
- opacity:0;
- padding:0;
- position:fixed;
- right:0;
- top:0;
- width:100vw;
-}
-.wp-block-query__enhanced-pagination-animation.start-animation{
- animation:wp-block-query__enhanced-pagination-start-animation 30s cubic-bezier(.03, .5, 0, 1) forwards;
-}
-.wp-block-query__enhanced-pagination-animation.finish-animation{
- animation:wp-block-query__enhanced-pagination-finish-animation .3s ease-in;
-}
-
-@keyframes wp-block-query__enhanced-pagination-start-animation{
- 0%{
- opacity:1;
- transform:scaleX(0);
- transform-origin:100% 0;
- }
- to{
- opacity:1;
- transform:scaleX(1);
- transform-origin:100% 0;
- }
-}
-@keyframes wp-block-query__enhanced-pagination-finish-animation{
- 0%{
- opacity:1;
- }
- 50%{
- opacity:1;
- }
- to{
- opacity:0;
- }
-} \ No newline at end of file
diff --git a/wp-includes/blocks/query/style-rtl.min.css b/wp-includes/blocks/query/style-rtl.min.css
deleted file mode 100644
index 6849acf..0000000
--- a/wp-includes/blocks/query/style-rtl.min.css
+++ /dev/null
@@ -1 +0,0 @@
-.wp-block-query__enhanced-pagination-animation{background-color:var(--wp--preset--color--primary,#000);height:4px;margin:0;max-width:100vw!important;opacity:0;padding:0;position:fixed;right:0;top:0;width:100vw}.wp-block-query__enhanced-pagination-animation.start-animation{animation:wp-block-query__enhanced-pagination-start-animation 30s cubic-bezier(.03,.5,0,1) forwards}.wp-block-query__enhanced-pagination-animation.finish-animation{animation:wp-block-query__enhanced-pagination-finish-animation .3s ease-in}@keyframes wp-block-query__enhanced-pagination-start-animation{0%{opacity:1;transform:scaleX(0);transform-origin:100% 0}to{opacity:1;transform:scaleX(1);transform-origin:100% 0}}@keyframes wp-block-query__enhanced-pagination-finish-animation{0%{opacity:1}50%{opacity:1}to{opacity:0}} \ No newline at end of file
diff --git a/wp-includes/blocks/query/style.css b/wp-includes/blocks/query/style.css
deleted file mode 100644
index 241cdc8..0000000
--- a/wp-includes/blocks/query/style.css
+++ /dev/null
@@ -1,42 +0,0 @@
-.wp-block-query__enhanced-pagination-animation{
- background-color:var(--wp--preset--color--primary, #000);
- height:4px;
- left:0;
- margin:0;
- max-width:100vw !important;
- opacity:0;
- padding:0;
- position:fixed;
- top:0;
- width:100vw;
-}
-.wp-block-query__enhanced-pagination-animation.start-animation{
- animation:wp-block-query__enhanced-pagination-start-animation 30s cubic-bezier(.03, .5, 0, 1) forwards;
-}
-.wp-block-query__enhanced-pagination-animation.finish-animation{
- animation:wp-block-query__enhanced-pagination-finish-animation .3s ease-in;
-}
-
-@keyframes wp-block-query__enhanced-pagination-start-animation{
- 0%{
- opacity:1;
- transform:scaleX(0);
- transform-origin:0 0;
- }
- to{
- opacity:1;
- transform:scaleX(1);
- transform-origin:0 0;
- }
-}
-@keyframes wp-block-query__enhanced-pagination-finish-animation{
- 0%{
- opacity:1;
- }
- 50%{
- opacity:1;
- }
- to{
- opacity:0;
- }
-} \ No newline at end of file
diff --git a/wp-includes/blocks/query/style.min.css b/wp-includes/blocks/query/style.min.css
deleted file mode 100644
index 7627634..0000000
--- a/wp-includes/blocks/query/style.min.css
+++ /dev/null
@@ -1 +0,0 @@
-.wp-block-query__enhanced-pagination-animation{background-color:var(--wp--preset--color--primary,#000);height:4px;left:0;margin:0;max-width:100vw!important;opacity:0;padding:0;position:fixed;top:0;width:100vw}.wp-block-query__enhanced-pagination-animation.start-animation{animation:wp-block-query__enhanced-pagination-start-animation 30s cubic-bezier(.03,.5,0,1) forwards}.wp-block-query__enhanced-pagination-animation.finish-animation{animation:wp-block-query__enhanced-pagination-finish-animation .3s ease-in}@keyframes wp-block-query__enhanced-pagination-start-animation{0%{opacity:1;transform:scaleX(0);transform-origin:0 0}to{opacity:1;transform:scaleX(1);transform-origin:0 0}}@keyframes wp-block-query__enhanced-pagination-finish-animation{0%{opacity:1}50%{opacity:1}to{opacity:0}} \ No newline at end of file
diff --git a/wp-includes/blocks/query/view.asset.php b/wp-includes/blocks/query/view.asset.php
index 09db564..30c0410 100644
--- a/wp-includes/blocks/query/view.asset.php
+++ b/wp-includes/blocks/query/view.asset.php
@@ -1 +1 @@
-<?php return array('dependencies' => array(), 'version' => 'f932eea8999458215fe1');
+<?php return array('dependencies' => array(), 'version' => 'ee101e08820687c9c07f');
diff --git a/wp-includes/blocks/query/view.js b/wp-includes/blocks/query/view.js
index 55083bf..332942f 100644
--- a/wp-includes/blocks/query/view.js
+++ b/wp-includes/blocks/query/view.js
@@ -1,104 +1,135 @@
-"use strict";
-(self["__WordPressPrivateInteractivityAPI__"] = self["__WordPressPrivateInteractivityAPI__"] || []).push([[155],{
+import * as __WEBPACK_EXTERNAL_MODULE__wordpress_interactivity_8e89b257__ from "@wordpress/interactivity";
+/******/ var __webpack_modules__ = ({
-/***/ 890:
-/***/ (function(__unused_webpack_module, __unused_webpack___webpack_exports__, __webpack_require__) {
+/***/ 438:
+/***/ ((module) => {
-/* harmony import */ var _wordpress_interactivity__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(754);
+module.exports = import("@wordpress/interactivity-router");;
+
+/***/ })
+
+/******/ });
+/************************************************************************/
+/******/ // The module cache
+/******/ var __webpack_module_cache__ = {};
+/******/
+/******/ // The require function
+/******/ function __webpack_require__(moduleId) {
+/******/ // Check if module is in cache
+/******/ var cachedModule = __webpack_module_cache__[moduleId];
+/******/ if (cachedModule !== undefined) {
+/******/ return cachedModule.exports;
+/******/ }
+/******/ // Create a new module (and put it into the cache)
+/******/ var module = __webpack_module_cache__[moduleId] = {
+/******/ // no module.id needed
+/******/ // no module.loaded needed
+/******/ exports: {}
+/******/ };
+/******/
+/******/ // Execute the module function
+/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
+/******/
+/******/ // Return the exports of the module
+/******/ return module.exports;
+/******/ }
+/******/
+/************************************************************************/
+/******/ /* webpack/runtime/define property getters */
+/******/ (() => {
+/******/ // define getter functions for harmony exports
+/******/ __webpack_require__.d = (exports, definition) => {
+/******/ for(var key in definition) {
+/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
+/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
+/******/ }
+/******/ }
+/******/ };
+/******/ })();
+/******/
+/******/ /* webpack/runtime/hasOwnProperty shorthand */
+/******/ (() => {
+/******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
+/******/ })();
+/******/
+/************************************************************************/
+var __webpack_exports__ = {};
+// This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk.
+(() => {
+
+;// CONCATENATED MODULE: external "@wordpress/interactivity"
+var x = (y) => {
+ var x = {}; __webpack_require__.d(x, y); return x
+}
+var y = (x) => (() => (x))
+const interactivity_namespaceObject = x({ ["getContext"]: () => (__WEBPACK_EXTERNAL_MODULE__wordpress_interactivity_8e89b257__.getContext), ["getElement"]: () => (__WEBPACK_EXTERNAL_MODULE__wordpress_interactivity_8e89b257__.getElement), ["store"]: () => (__WEBPACK_EXTERNAL_MODULE__wordpress_interactivity_8e89b257__.store) });
+;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/query/view.js
/**
* WordPress dependencies
*/
const isValidLink = ref => ref && ref instanceof window.HTMLAnchorElement && ref.href && (!ref.target || ref.target === '_self') && ref.origin === window.location.origin;
const isValidEvent = event => event.button === 0 &&
-// left clicks only
+// Left clicks only.
!event.metaKey &&
-// open in new tab (mac)
+// Open in new tab (Mac).
!event.ctrlKey &&
-// open in new tab (windows)
+// Open in new tab (Windows).
!event.altKey &&
-// download
+// Download.
!event.shiftKey && !event.defaultPrevented;
-(0,_wordpress_interactivity__WEBPACK_IMPORTED_MODULE_0__/* .store */ .h)({
- selectors: {
- core: {
- query: {
- startAnimation: ({
- context
- }) => context.core.query.animation === 'start',
- finishAnimation: ({
- context
- }) => context.core.query.animation === 'finish'
- }
- }
- },
+(0,interactivity_namespaceObject.store)('core/query', {
actions: {
- core: {
- query: {
- navigate: async ({
- event,
- ref,
- context
- }) => {
- const isDisabled = ref.closest('[data-wp-navigation-id]')?.dataset.wpNavigationDisabled;
- if (isValidLink(ref) && isValidEvent(event) && !isDisabled) {
- event.preventDefault();
- const id = ref.closest('[data-wp-navigation-id]').dataset.wpNavigationId;
-
- // Don't announce the navigation immediately, wait 300 ms.
- const timeout = setTimeout(() => {
- context.core.query.message = context.core.query.loadingText;
- context.core.query.animation = 'start';
- }, 400);
- await (0,_wordpress_interactivity__WEBPACK_IMPORTED_MODULE_0__/* .navigate */ .c4)(ref.href);
-
- // Dismiss loading message if it hasn't been added yet.
- clearTimeout(timeout);
-
- // Announce that the page has been loaded. If the message is the
- // same, we use a no-break space similar to the @wordpress/a11y
- // package: https://github.com/WordPress/gutenberg/blob/c395242b8e6ee20f8b06c199e4fc2920d7018af1/packages/a11y/src/filter-message.js#L20-L26
- context.core.query.message = context.core.query.loadedText + (context.core.query.message === context.core.query.loadedText ? '\u00A0' : '');
- context.core.query.animation = 'finish';
- context.core.query.url = ref.href;
+ *navigate(event) {
+ const ctx = (0,interactivity_namespaceObject.getContext)();
+ const {
+ ref
+ } = (0,interactivity_namespaceObject.getElement)();
+ const queryRef = ref.closest('.wp-block-query[data-wp-router-region]');
+ if (isValidLink(ref) && isValidEvent(event)) {
+ event.preventDefault();
+ const {
+ actions
+ } = yield Promise.resolve(/* import() */).then(__webpack_require__.bind(__webpack_require__, 438));
+ yield actions.navigate(ref.href);
+ ctx.url = ref.href;
- // Focus the first anchor of the Query block.
- const firstAnchor = `[data-wp-navigation-id=${id}] .wp-block-post-template a[href]`;
- document.querySelector(firstAnchor)?.focus();
- }
- },
- prefetch: async ({
- ref
- }) => {
- const isDisabled = ref.closest('[data-wp-navigation-id]')?.dataset.wpNavigationDisabled;
- if (isValidLink(ref) && !isDisabled) {
- await (0,_wordpress_interactivity__WEBPACK_IMPORTED_MODULE_0__/* .prefetch */ .tL)(ref.href);
- }
- }
+ // Focus the first anchor of the Query block.
+ const firstAnchor = `.wp-block-post-template a[href]`;
+ queryRef.querySelector(firstAnchor)?.focus();
+ }
+ },
+ *prefetch() {
+ const {
+ ref
+ } = (0,interactivity_namespaceObject.getElement)();
+ if (isValidLink(ref)) {
+ const {
+ actions
+ } = yield Promise.resolve(/* import() */).then(__webpack_require__.bind(__webpack_require__, 438));
+ yield actions.prefetch(ref.href);
}
}
},
- effects: {
- core: {
- query: {
- prefetch: async ({
- ref,
- context
- }) => {
- if (context.core.query.url && isValidLink(ref)) {
- await (0,_wordpress_interactivity__WEBPACK_IMPORTED_MODULE_0__/* .prefetch */ .tL)(ref.href);
- }
- }
+ callbacks: {
+ *prefetch() {
+ const {
+ url
+ } = (0,interactivity_namespaceObject.getContext)();
+ const {
+ ref
+ } = (0,interactivity_namespaceObject.getElement)();
+ if (url && isValidLink(ref)) {
+ const {
+ actions
+ } = yield Promise.resolve(/* import() */).then(__webpack_require__.bind(__webpack_require__, 438));
+ yield actions.prefetch(ref.href);
}
}
}
+}, {
+ lock: true
});
-/***/ })
+})();
-},
-/******/ function(__webpack_require__) { // webpackRuntimeModules
-/******/ var __webpack_exec__ = function(moduleId) { return __webpack_require__(__webpack_require__.s = moduleId); }
-/******/ var __webpack_exports__ = (__webpack_exec__(890));
-/******/ }
-]); \ No newline at end of file
diff --git a/wp-includes/blocks/query/view.min.asset.php b/wp-includes/blocks/query/view.min.asset.php
index c028c0e..305a626 100644
--- a/wp-includes/blocks/query/view.min.asset.php
+++ b/wp-includes/blocks/query/view.min.asset.php
@@ -1 +1 @@
-<?php return array('dependencies' => array(), 'version' => 'ecab5647d5d9321e0101');
+<?php return array('dependencies' => array(), 'version' => '490915f92cc794ea16e1');
diff --git a/wp-includes/blocks/query/view.min.js b/wp-includes/blocks/query/view.min.js
index be86dbf..b0d3749 100644
--- a/wp-includes/blocks/query/view.min.js
+++ b/wp-includes/blocks/query/view.min.js
@@ -1 +1 @@
-"use strict";(self.__WordPressPrivateInteractivityAPI__=self.__WordPressPrivateInteractivityAPI__||[]).push([[155],{890:function(e,t,a){var r=a(754);const i=e=>e&&e instanceof window.HTMLAnchorElement&&e.href&&(!e.target||"_self"===e.target)&&e.origin===window.location.origin;(0,r.h)({selectors:{core:{query:{startAnimation:({context:e})=>"start"===e.core.query.animation,finishAnimation:({context:e})=>"finish"===e.core.query.animation}}},actions:{core:{query:{navigate:async({event:e,ref:t,context:a})=>{const o=t.closest("[data-wp-navigation-id]")?.dataset.wpNavigationDisabled;if(i(t)&&(e=>!(0!==e.button||e.metaKey||e.ctrlKey||e.altKey||e.shiftKey||e.defaultPrevented))(e)&&!o){e.preventDefault();const i=t.closest("[data-wp-navigation-id]").dataset.wpNavigationId,o=setTimeout((()=>{a.core.query.message=a.core.query.loadingText,a.core.query.animation="start"}),400);await(0,r.c4)(t.href),clearTimeout(o),a.core.query.message=a.core.query.loadedText+(a.core.query.message===a.core.query.loadedText?" ":""),a.core.query.animation="finish",a.core.query.url=t.href;const n=`[data-wp-navigation-id=${i}] .wp-block-post-template a[href]`;document.querySelector(n)?.focus()}},prefetch:async({ref:e})=>{const t=e.closest("[data-wp-navigation-id]")?.dataset.wpNavigationDisabled;i(e)&&!t&&await(0,r.tL)(e.href)}}}},effects:{core:{query:{prefetch:async({ref:e,context:t})=>{t.core.query.url&&i(e)&&await(0,r.tL)(e.href)}}}}})}},function(e){var t;t=890,e(e.s=t)}]); \ No newline at end of file
+import*as e from"@wordpress/interactivity";var t={438:e=>{e.exports=import("@wordpress/interactivity-router")}},r={};function o(e){var n=r[e];if(void 0!==n)return n.exports;var i=r[e]={exports:{}};return t[e](i,i.exports,o),i.exports}o.d=(e,t)=>{for(var r in t)o.o(t,r)&&!o.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{const t=(e=>{var t={};return o.d(t,e),t})({getContext:()=>e.getContext,getElement:()=>e.getElement,store:()=>e.store}),r=e=>e&&e instanceof window.HTMLAnchorElement&&e.href&&(!e.target||"_self"===e.target)&&e.origin===window.location.origin;(0,t.store)("core/query",{actions:{*navigate(e){const n=(0,t.getContext)(),{ref:i}=(0,t.getElement)(),s=i.closest(".wp-block-query[data-wp-router-region]");if(r(i)&&(e=>!(0!==e.button||e.metaKey||e.ctrlKey||e.altKey||e.shiftKey||e.defaultPrevented))(e)){e.preventDefault();const{actions:t}=yield Promise.resolve().then(o.bind(o,438));yield t.navigate(i.href),n.url=i.href;const r=".wp-block-post-template a[href]";s.querySelector(r)?.focus()}},*prefetch(){const{ref:e}=(0,t.getElement)();if(r(e)){const{actions:t}=yield Promise.resolve().then(o.bind(o,438));yield t.prefetch(e.href)}}},callbacks:{*prefetch(){const{url:e}=(0,t.getContext)(),{ref:n}=(0,t.getElement)();if(e&&r(n)){const{actions:e}=yield Promise.resolve().then(o.bind(o,438));yield e.prefetch(n.href)}}}},{lock:!0})})(); \ No newline at end of file