File "view.min.js"
Full Path: /home/pumpbmko/public_html/wp-content-20250114123711/plugins/gutenberg/build/block-library/blocks/query/view.min.js
File size: 1.92 KB
MIME-type: text/plain
Charset: utf-8
(()=>{"use strict";var e,t,r={64:e=>{e.exports=window.wp.interactivityRouter}},o={};function n(e){var t=o[e];if(void 0!==t)return t.exports;var i=o[e]={exports:{}};return r[e](i,i.exports,n),i.exports}t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,n.t=function(r,o){if(1&o&&(r=this(r)),8&o)return r;if("object"==typeof r&&r){if(4&o&&r.__esModule)return r;if(16&o&&"function"==typeof r.then)return r}var i=Object.create(null);n.r(i);var c={};e=e||[null,t({}),t([]),t(t)];for(var f=2&o&&r;"object"==typeof f&&!~e.indexOf(f);f=t(f))Object.getOwnPropertyNames(f).forEach((e=>c[e]=()=>r[e]));return c.default=()=>r,n.d(i,c),i},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{const e=window.wp.interactivity,t=e=>e&&e instanceof window.HTMLAnchorElement&&e.href&&(!e.target||"_self"===e.target)&&e.origin===window.location.origin;(0,e.store)("core/query",{actions:{*navigate(r){const o=(0,e.getContext)(),{ref:i}=(0,e.getElement)(),c=i.closest(".wp-block-query[data-wp-router-region]");if(t(i)&&(e=>!(0!==e.button||e.metaKey||e.ctrlKey||e.altKey||e.shiftKey||e.defaultPrevented))(r)){r.preventDefault();const{actions:e}=yield Promise.resolve().then(n.t.bind(n,64,23));yield e.navigate(i.href),o.url=i.href;const t=".wp-block-post-template a[href]";c.querySelector(t)?.focus()}},*prefetch(){const{ref:r}=(0,e.getElement)();if(t(r)){const{actions:e}=yield Promise.resolve().then(n.t.bind(n,64,23));yield e.prefetch(r.href)}}},callbacks:{*prefetch(){const{url:r}=(0,e.getContext)(),{ref:o}=(0,e.getElement)();if(r&&t(o)){const{actions:e}=yield Promise.resolve().then(n.t.bind(n,64,23));yield e.prefetch(o.href)}}}},{lock:!0})})()})();
//# sourceMappingURL=view.min.js.map