Файловый менеджер - Редактировать - /home/lexlmvtu/public_html/wp-content/plugins/woocommerce/assets/client/blocks/product-collection-frontend.js
Назад
(()=>{var t={8870:()=>{}},e={};function i(n){var o=e[n];if(void 0!==o)return o.exports;var a=e[n]={exports:{}};return t[n](a,a.exports,i),a.exports}(()=>{"use strict";const t=window.wc.__experimentalInteractivity;i(8870);const e=t=>t&&t instanceof window.HTMLAnchorElement&&t.href&&(!t.target||"_self"===t.target)&&t.origin===window.location.origin,n={state:{get startAnimation(){return"start"===(0,t.getContext)().animation},get finishAnimation(){return"finish"===(0,t.getContext)().animation}},actions:{*navigate(i){var n,o,a;const s=(0,t.getContext)(),{ref:c}=(0,t.getElement)(),r=null==c||null===(n=c.closest("[data-wc-navigation-id]"))||void 0===n||null===(o=n.dataset)||void 0===o?void 0:o.wcNavigationId;var l;if((null==c||null===(a=c.closest("[data-wc-navigation-id]"))||void 0===a?void 0:a.dataset.wcNavigationDisabled)&&(yield(l=c.href,window.location.assign(l),new Promise((()=>{})))),e(c)&&(t=>!(0!==t.button||t.metaKey||t.ctrlKey||t.altKey||t.shiftKey||t.defaultPrevented))(i)){i.preventDefault();const e=setTimeout((()=>{s.accessibilityMessage=s.accessibilityLoadingMessage,s.animation="start"}),400);yield(0,t.navigate)(c.href),clearTimeout(e),s.accessibilityMessage=s.accessibilityLoadedMessage+(s.accessibilityMessage===s.accessibilityLoadedMessage?" ":""),s.animation="finish",s.isPrefetchNextOrPreviousLink=!!c.href,function(t){if(!t)return;const e=`[data-wc-navigation-id=${t}] .wc-block-product-template .wc-block-product`,i=document.querySelector(e);if(i){const t=i.getBoundingClientRect();t.top>=0&&t.left>=0&&t.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&t.right<=(window.innerWidth||document.documentElement.clientWidth)||i.scrollIntoView({behavior:"smooth",block:"start"})}}(r)}},*prefetchOnHover(){var i;const{ref:n}=(0,t.getElement)();(null==n||null===(i=n.closest("[data-wc-navigation-id]"))||void 0===i?void 0:i.dataset.wcNavigationDisabled)||e(n)&&(yield(0,t.prefetch)(n.href))}},callbacks:{*prefetch(){var i;const{ref:n}=(0,t.getElement)();if(null==n||null===(i=n.closest("[data-wc-navigation-id]"))||void 0===i?void 0:i.dataset.wcNavigationDisabled)return;const o=(0,t.getContext)();null!=o&&o.isPrefetchNextOrPreviousLink&&e(n)&&(yield(0,t.prefetch)(n.href))}}};(0,t.store)("woocommerce/product-collection",n)})()})();
| ver. 1.4 |
Github
|
.
| PHP 7.2.34 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка