Current File : /home/resuelf/www/wp-content/plugins/gutenberg/build/block-library/blocks/query/view.min.js |
!function(){"use strict";var t=window.wp.interactivity;const e=t=>t&&t instanceof window.HTMLAnchorElement&&t.href&&(!t.target||"_self"===t.target)&&t.origin===window.location.origin;(0,t.store)("core/query",{state:{get startAnimation(){return"start"===(0,t.getContext)().animation},get finishAnimation(){return"finish"===(0,t.getContext)().animation}},actions:{*navigate(a){const i=(0,t.getContext)(),{ref:n}=(0,t.getElement)(),o=n.closest("[data-wp-navigation-id]")?.dataset.wpNavigationDisabled;if(e(n)&&(t=>!(0!==t.button||t.metaKey||t.ctrlKey||t.altKey||t.shiftKey||t.defaultPrevented))(a)&&!o){a.preventDefault();const e=n.closest("[data-wp-navigation-id]").dataset.wpNavigationId,o=setTimeout((()=>{i.message=i.loadingText,i.animation="start"}),400);yield(0,t.navigate)(n.href),clearTimeout(o),i.message=i.loadedText+(i.message===i.loadedText?" ":""),i.animation="finish",i.url=n.href;const s=`[data-wp-navigation-id=${e}] .wp-block-post-template a[href]`;document.querySelector(s)?.focus()}},*prefetch(){const{ref:a}=(0,t.getElement)(),i=a.closest("[data-wp-navigation-id]")?.dataset.wpNavigationDisabled;e(a)&&!i&&(yield(0,t.prefetch)(a.href))}},callbacks:{*prefetch(){const{url:a}=(0,t.getContext)(),{ref:i}=(0,t.getElement)();a&&e(i)&&(yield(0,t.prefetch)(i.href))}}})}();
//# sourceMappingURL=view.min.js.map