OwlCyberSecurity - MANAGER
Edit File: product-collection-frontend.js
var wc;(()=>{var e={3984:()=>{}},t={};function i(n){var o=t[n];if(void 0!==o)return o.exports;var a=t[n]={exports:{}};return e[n](a,a.exports,i),a.exports}i.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};(()=>{"use strict";i.r(n);const e=window.wc.__experimentalInteractivity,t=window.CustomEvent||null,o=e=>{((e,{bubbles:i=!1,cancelable:n=!1,element:o,detail:a={}})=>{if(!t)return;o||(o=document.body);const c=new t(e,{bubbles:i,cancelable:n,detail:a});o.dispatchEvent(c)})("wc-blocks_product_list_rendered",{bubbles:!0,cancelable:!0,detail:e})};i(3984);const a=e=>e&&e instanceof window.HTMLAnchorElement&&e.href&&(!e.target||"_self"===e.target)&&e.origin===window.location.origin,c={state:{get startAnimation(){return"start"===(0,e.getContext)().animation},get finishAnimation(){return"finish"===(0,e.getContext)().animation}},actions:{*navigate(t){var i,n,c;const l=(0,e.getContext)(),{ref:r}=(0,e.getElement)(),s=null==r||null===(i=r.closest("[data-wc-navigation-id]"))||void 0===i||null===(n=i.dataset)||void 0===n?void 0:n.wcNavigationId;var d;if((null==r||null===(c=r.closest("[data-wc-navigation-id]"))||void 0===c?void 0:c.dataset.wcNavigationDisabled)&&(yield(d=r.href,window.location.assign(d),new Promise((()=>{})))),a(r)&&(e=>!(0!==e.button||e.metaKey||e.ctrlKey||e.altKey||e.shiftKey||e.defaultPrevented))(t)){t.preventDefault();const i=setTimeout((()=>{l.accessibilityMessage=l.accessibilityLoadingMessage,l.animation="start"}),400);yield(0,e.navigate)(r.href),clearTimeout(i),l.accessibilityMessage=l.accessibilityLoadedMessage+(l.accessibilityMessage===l.accessibilityLoadedMessage?" ":""),l.animation="finish",l.isPrefetchNextOrPreviousLink=!!r.href,function(e){if(!e)return;const t=`[data-wc-navigation-id=${e}] .wc-block-product-template .wc-block-product`,i=document.querySelector(t);if(i){const e=i.getBoundingClientRect();e.top>=0&&e.left>=0&&e.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&e.right<=(window.innerWidth||document.documentElement.clientWidth)||i.scrollIntoView({behavior:"smooth",block:"start"})}}(s),o({collection:l.collection})}},*prefetchOnHover(){var t;const{ref:i}=(0,e.getElement)();(null==i||null===(t=i.closest("[data-wc-navigation-id]"))||void 0===t?void 0:t.dataset.wcNavigationDisabled)||a(i)&&(yield(0,e.prefetch)(i.href))}},callbacks:{*prefetch(){var t;const{ref:i}=(0,e.getElement)();if(null==i||null===(t=i.closest("[data-wc-navigation-id]"))||void 0===t?void 0:t.dataset.wcNavigationDisabled)return;const n=(0,e.getContext)();null!=n&&n.isPrefetchNextOrPreviousLink&&a(i)&&(yield(0,e.prefetch)(i.href))},*onRender(){const{collection:t}=(0,e.getContext)();o({collection:t})}}};(0,e.store)("woocommerce/product-collection",c)})(),(wc=void 0===wc?{}:wc)["product-collection"]=n})();