PageSourceSearch

https://www.evisionsales.co.uk/wp-content/plugins/woocommerce-cata…/view.js?ver=23c0f5a3edfccdfbf8d5

js evisionsales.co.uk collected 2026-10-04 20:57:55 UTC 5,031 bytes, 1 lines download raw bytes

1(()=>{"use strict";var e={17318(e,t,r){const o=window.wp.element;var c=r(30191),n=r(51609),s=r(57296);const a=window.wp.i18n;var l=r(10790);const i=({attributes:e})=>{const[t,r]=(0,n.useState)([]),[o,c]=(0,n.useState)(!0),[i,d]=(0,n.useState)(1),[u,p]=(0,n.useState)(1);return(0,n.useEffect)(()=>{c(!0),s.A.get(`${excludedProducts.apiUrl}/wc/v3/products`,{headers:{"X-WP-Nonce":excludedProducts.nonce},params:{page:i,per_page:12,exclude__types:e.includeTypes}}).then(e=>{r(e.data||[]),p(Number(e.headers["x-wp-totalpages"])||1)}).catch(e=>{console.error(e)}).finally(()=>{c(!1)})},[i,e.includeTypes]),o?(0,l.jsx)("p",{children:(0,a.__)("Loading products...","catalogx")}):(0,l.jsxs)(l.Fragment,{children:[t.length?(0,l.jsx)("div",{className:"woocommerce",children:(0,l.jsx)("ul",{className:"wc-block-product-template__responsive products columns-4",children:t.map(e=>(0,l.jsx)("li",{className:`wc-block-product product type-product post-${e.id}`,children:(0,l.jsxs)("a",{href:e.permalink,className:"woocommerce-LoopProduct-link woocommerce-loop-product__link",children:[(0,l.jsx)("img",{src:e.images?.[0]?.src||excludedProducts.placeholder_url,alt:e.name,className:e.images?.[0]?.src?"attachment-woocommerce_thumbnail size-woocommerce_thumbnail":"woocommerce-placeholder wp-post-image"}),(0,l.jsx)("h2",{className:"woocommerce-loop-product__title",children:e.name}),e.price_html&&(0,l.jsx)("span",{className:"price",dangerouslySetInnerHTML:{__html:e.price_html}})]})},e.id))})}):(0,l.jsx)("p",{children:(0,a.__)("No excluded products found.","catalogx")}),u>1&&(0,l.jsx)("nav",{className:"woocommerce-pagination",children:(0,l.jsxs)("ul",{className:"page-numbers",children:[(0,l.jsx)("li",{children:(0,l.jsx)("button",{type:"button",disabled:1===i,onClick:()=>d(i-1),children:(0,a.__)("Previous","catalogx")})}),(0,l.jsx)("li",{children:(0,l.jsxs)("span",{className:"page-numbers current",children:[i," / ",u]})}),(0,l.jsx)("li",{children:(0,l.jsx)("button",{type:"button",disabled:i===u,onClick:()=>d(i+1),children:(0,a.__)("Next","catalogx")})})]})})]})};document.addEventListener("DOMContentLoaded",()=>{const e=document.getElementById("catalogx-excluded-products");if(e){const t=JSON.parse(e.dataset.attributes||"{}");(0,o.render)((0,l.jsx)(c.Kd,{children:(0,l.jsx)(i,{attributes:t})}),e)}})},51609(e){e.exports=window.React},10790(e){e.exports=window.ReactJSXRuntime}};const t={};function r(o){const c=t[o];if(void 0!==c)return c.exports;const n=t[o]={exports:{}};return e[o].call(n.exports,n,n.exports,r),n.exports}r.m=e,(()=>{const e=[];r.O=(t,o,c,n)=>{if(o){n||=0;for(var s=e.length;s>0&&e[s-1][2]>n;s--)e[s]=e[s-1];return void(e[s]=[o,c,n])}let a=1/0;for(s=0;s<e.length;s++){let[o,c,n]=e[s],i=!0;for(var l=0;l<o.length;l++)1&n&&!(a>=n)||!Object.keys(r.O).every(e=>r.O[e](o[l]))?(i=!1,n<a&&(a=n)):o.splice(l--,1);if(i){e.splice(s--,1);const r=c();void 0!==r&&(t=r)}}return t}})(),r.n=e=>{const t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.cw=e=>{var t;return()=>{if(e){var r=e;e=0,t={exports:{}},r.call(t.exports,t,t.exports)}return t.exports}},(()=>{const e=Object.getPrototypeOf;let t;r.t=function(o,c){if(1&c&&(o=this(o)),8&c)return o;if("object"==typeof o&&o){if(4&c&&o.__esModule)return o;if(16&c&&"function"==typeof o.then)return o}const n=Object.create(null);r.r(n);const s={};t||=[null,e({}),e([]),e(e)];for(var a=2&c&&o;("object"==typeof a||"function"==typeof a)&&!~t.indexOf(a);a=e(a))Object.getOwnPropertyNames(a).forEach(e=>s[e]=()=>o[e]);return s.default=()=>o,r.d(n,s),n}})(),r.d=(e,t)=>{if(Array.isArray(t))for(var o=0;o<t.length;){var c=t[o++],n=t[o++],s=0===n?{enumerable:!0,value:t[o++]}:{enumerable:!0,get:n};r.o(e,c)||Object.defineProperty(e,c,s)}else for(var c in t)r.o(t,c)&&!r.o(e,c)&&Object.defineProperty(e,c,{enumerable:!0,get:t[c]})},r.o=(e,t)=>Object.hasOwn(e,t),r.r=e=>{Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.j=444,r.dn=e=>{var t=Object.getOwnPropertyDescriptor(e,"name");(!t||!t.writable&&t.configurable)&&Object.defineProperty(e,"name",{value:"default",configurable:!0})},(()=>{let e;globalThis.importScripts&&(e=globalThis.location+"");const t=globalThis.document;if(!e&&t&&("SCRIPT"===t.currentScript?.tagName.toUpperCase()&&(e=t.currentScript.src),!e)){const r=t.getElementsByTagName("script");
1if(r.length){let t=r.length-1;for(;t>-1&&(!e||!/^https?:/.test(e));)e=r[t--].src}}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/^blob:|[?#].*$/g,"").replace(/\/[^/]+$/,"/"),r.p=e+"../../../"})(),(()=>{r.b="undefined"!=typeof document&&document.baseURI||self.location.href;const e={444:0};r.O.j=t=>0===e[t];const t=(t,o)=>{let[c,n,s]=o;var a,l,i=0;if(c.some(t=>0!==e[t])){for(a in n)r.o(n,a)&&(r.m[a]=n[a]);if(s)var d=s(r)}for(t&&t(o);i<c.length;i++)l=c[i],r.o(e,l)&&e[l]&&e[l][0](),e[l]=0;return r.O(d)},o=globalThis.webpackChunkcatalogx||=[];o.forEach(t.bind(null,0)),o.push=t.bind(null,o.push.bind(o))})();let o=r.O(void 0,[96],()=>r(17318));o=r.O(o)})();

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.