PageSourceSearch

https://www.hardware.com.br/wp-content/plugins/affiliatex/build/frontendJs.js?ver=2.3.10

js hardware.com.br collected 2026-10-01 10:27:16 UTC 7,342 bytes, 1 lines download raw bytes

1var affiliatexExports;(()=>{var t,e,n={},a={};function r(t){var e=a[t];if(void 0!==e)return e.exports;var i=a[t]={exports:{}};return n[t](i,i.exports,r),i.exports}r.m=n,r.d=(t,e)=>{for(var n in e)r.o(e,n)&&!r.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},r.f={},r.e=t=>Promise.all(Object.keys(r.f).reduce((e,n)=>(r.f[n](t,e),e),[])),r.u=t=>"glide.js",r.miniCssF=t=>{},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),r.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),t={},e="affiliatexExports:",r.l=(n,a,i,o)=>{if(t[n])t[n].push(a);else{var d,l;if(void 0!==i)for(var c=document.getElementsByTagName("script"),f=0;f<c.length;f++){var s=c[f];if(s.getAttribute("src")==n||s.getAttribute("data-webpack")==e+i){d=s;break}}d||(l=!0,(d=document.createElement("script")).charset="utf-8",d.timeout=120,r.nc&&d.setAttribute("nonce",r.nc),d.setAttribute("data-webpack",e+i),d.src=n),t[n]=[a];var u=(e,a)=>{d.onerror=d.onload=null,clearTimeout(p);var r=t[n];if(delete t[n],d.parentNode&&d.parentNode.removeChild(d),r&&r.forEach(t=>t(a)),e)return e(a)},p=setTimeout(u.bind(null,void 0,{type:"timeout",target:d}),12e4);d.onerror=u.bind(null,d.onerror),d.onload=u.bind(null,d.onload),l&&document.head.appendChild(d)}},r.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},(()=>{var t;r.g.importScripts&&(t=r.g.location+"");var e=r.g.document;if(!t&&e&&(e.currentScript&&"SCRIPT"===e.currentScript.tagName.toUpperCase()&&(t=e.currentScript.src),!t)){var n=e.getElementsByTagName("script");if(n.length)for(var a=n.length-1;a>-1&&(!t||!/^http(s?):/.test(t));)t=n[a--].src}if(!t)throw new Error("Automatic publicPath is not supported in this browser");t=t.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),r.p=t})(),(()=>{var t={846:0};r.f.j=(e,n)=>{var a=r.o(t,e)?t[e]:void 0;if(0!==a)if(a)n.push(a[2]);else{var i=new Promise((n,r)=>a=t[e]=[n,r]);n.push(a[2]=i);var o=r.p+r.u(e),d=new Error;r.l(o,n=>{if(r.o(t,e)&&(0!==(a=t[e])&&(t[e]=void 0),a)){var i=n&&("load"===n.type?"missing":n.type),o=n&&n.target&&n.target.src;d.message="Loading chunk "+e+" failed.\n("+i+": "+o+")",d.name="ChunkLoadError",d.type=i,d.request=o,a[1](d)}},"chunk-"+e,e)}};var e=(e,n)=>{var a,i,[o,d,l]=n,c=0;if(o.some(e=>0!==t[e])){for(a in d)r.o(d,a)&&(r.m[a]=d[a]);l&&l(r)}for(e&&e(n);c<o.length;c++)i=o[c],r.o(t,i)&&t[i]&&t[i][0](),t[i]=0},n=globalThis.webpackChunkaffiliatexExports=globalThis.webpackChunkaffiliatexExports||[];n.forEach(e.bind(null,0)),n.push=e.bind(null,n.push.bind(n))})(),function(t){const e={init(){t(document).ready(function(){document.body.classList.contains("block-editor-page")||(e.handleReadMoreClick(),e.initReadMore(),e.initSliders())}),this.initElementorPreview()},initElementorPreview(){t(window).on("elementor/frontend/init",function(){elementorFrontend.isEditMode()&&(e.handleReadMoreClick(),elementorFrontend.hooks&&elementorFrontend.hooks.addAction("frontend/element_ready/affiliatex-single-product.default",function(n){n.find(".affx-readmore").each(function(){const n=t(this);n.data("truncated",!1),e.truncateElement(n)})}))})},initReadMore(){t(".affx-readmore").each(function(){const n=t(this);n.data("truncated")||e.truncateElement(n)})},truncateElement(t){const n=parseInt(t.data("char-limit"))||0,a=parseInt(t.data("item-limit"))||0,r=t.find(".affx-readmore-btn");if(!n&&!a)return t.removeClass("affx-readmore"),void r.hide();let i=!1;if("list"===t.data("content-type")){const o=t.find("ul, ol").first();if(!o.length||0===o.children("li").length)return void r.hide();i=e.truncateList(t,a,n)}else i=e.truncateParagraph(t,n);i?(t.data("truncated",!0),t.data("expanded",!1)):(t.removeClass("affx-readmore"),r.hide())},truncateParagraph(t,e){const n=t.find(".affiliatex-content");if(!n.length)return!1;const a=n.text();if(a.length<=e)return!1;const r=a.substring(0,e)+"...";return t.data("full-content",a),n.text(r),!0},truncateList(e,n,a){const r=e.html(),i=t("<div>").html(r);i.find(".affx-readmore-btn").remove(),e.data("original-content",i.html());const o=e.find("ul, ol").first();if(!o.length)return!1;const d=o.children("li");let l=!1;n&&d.length>n&&(d.slice(n).remove(),l=!0),a&&e.find("li").each(function(){const e=t(this),n=e.find("span").first(),r=n.length?n:e,i=r.text();i.length>a&&(r.text(i.substring(0,a)+"..."),l=!0)});const c=e.html(),f=t("<div>").html(c);return f.find(".affx-readmore-btn").remove(),e.data("trimmed-content",f.html()),l},initSliders(){const t=document.querySelectorAll(".affx-slider.glide");t.length&&r.e(374).then(r.bind(r,6777)).then(function(e){const n=e.default;t.forEach(function(t){if(t.dataset.glideInitialized)return;let e={};try{e=JSON.parse(t.dataset.glideConfig||"{}")}catch(t){e={}}const a={type:"carousel",perView:1,gap:0,autoplay:!window.matchMedia("(prefers-reduced-motion: reduce)").matches&&(e.autoplay||!1)};new n(t,a).mount(),t.dataset.glideInitialized="true"})})}
1,handleReadMoreClick(){t(document).off("click",".affx-readmore-btn").on("click",".affx-readmore-btn",function(e){e.stopPropagation();const n=t(this),a=n.closest(".affx-readmore"),r=a.data("expanded")||!1,i=a.data("content-type"),o=n.data("readmore-text"),d=n.data("readless-text");if("list"===i){const t=a.data("original-content"),e=a.data("trimmed-content");!r&&t?(a.html(t),a.append(n),n.text(d)):e&&(a.html(e),a.append(n),n.text(o))}else{const t=a.find(".affiliatex-content"),e=a.data("full-content"),i=parseInt(a.data("char-limit"))||0;!r&&e?(t.text(e),n.text(d)):e&&(t.text(e.substring(0,i)+"..."),n.text(o))}a.data("expanded",!r)})}};function n(){let t=localStorage.getItem("affx_vid");return t||(t=window.crypto&&window.crypto.randomUUID?window.crypto.randomUUID():"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(t){const e=Math.floor(16*Math.random());return("x"===t?e:Math.floor(e/4)+8).toString(16)}),localStorage.setItem("affx_vid",t)),t}if(e.init(),void 0!==window.affxAnalytics){const t=document.querySelectorAll("[data-affx-track]");if(t.length>0){const e=JSON.stringify({page_id:window.affxAnalytics.pageId||0,page_title:window.affxAnalytics.pageTitle||"",block_count:t.length}),n=window.affxAnalytics.endpoint.replace("/track","/impressions");navigator.sendBeacon&&navigator.sendBeacon(n,new Blob([e],{type:"application/json"}))}}void 0!==window.affxAnalytics&&document.addEventListener("click",function(t){const e=t.target.closest("[data-affx-track]");if(!e)return;const a=JSON.stringify({url:e.href||"",page_id:window.affxAnalytics.pageId||0,page_title:window.affxAnalytics.pageTitle||"",block_type:e.getAttribute("data-affx-block")||"",element_type:e.getAttribute("data-affx-element")||"",platform:e.getAttribute("data-affx-platform")||"manual",product_id:e.getAttribute("data-affx-product")||"",referrer:document.referrer||"",visitor_id:n()});if(navigator.sendBeacon){const t=new Blob([a],{type:"application/json"});navigator.sendBeacon(window.affxAnalytics.endpoint,t)}else{const t=new XMLHttpRequest;t.open("POST",window.affxAnalytics.endpoint,!0),t.setRequestHeader("Content-Type","application/json"),t.send(a)}})}(jQuery),(affiliatexExports=void 0===affiliatexExports?{}:affiliatexExports).frontendJs={}})();

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.