PageSourceSearch

https://heyholy.com/cdn/shop/t/209/assets/blog-new-articles.js?v=178797688540017878001788433656

js heyholy.com collected 2026-10-06 16:46:16 UTC 5,985 bytes, 1 lines download raw bytes

vendor: 2,905 bytes, line 1
1(self.webpackChunkheyholy_ss_theme=self.webpackChunkheyholy_ss_theme||[]).push([[4783],{6014(){function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t(e)}function e(t){return function(t){if(Array.isArray(t))return n(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return n(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?n(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function n(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function r(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,o(r.key),r)}}function o(e){var n=function(e,n){if("object"!=t(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,n||"default");if("object"!=t(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"==t(n)?n:n+""}function i(e,n,r){return n=s(n),function(e,n){if(n&&("object"==t(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(e)}(e,a()?Reflect.construct(n,r||[],s(e).constructor):n.apply(e,r))}function l(t){var e="function"==typeof Map?new Map:void 0;return l=function(t){if(null===t||!function(t){try{return-1!==Function.toString.call(t).indexOf("[native code]")}catch(e){return"function"==typeof t}}(t))return t;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,n)}function n(){return function(t,e,n){if(a())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,e);var o=new(t.bind.apply(t,r));return n&&c(o,n.prototype),o}(t,arguments,s(this).constructor)}return n.prototype=Object.create(t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),c(n,t)},l(t)}function a(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(a=function(){return!!t})()}function c(t,e){return c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},c(t,e)}
1function s(t){return s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},s(t)}var u=function(t){function n(){var t;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,n),(t=i(this,n)).limits=t.dataset.limit,t.loadLimits=t.dataset.loadLimit,t.loadButton=t.querySelector(".blog-new-articles__show-all"),t.blogListingTemplateUrl="new-articles-request",t.offset=+t.limits,t.articlesWrapper=t.querySelector(".blog-new-articles__content__articles"),t.filter="",t.firstFilter=!1,t.filterOffset=0,t}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&c(t,e)}(n,t),o=n,l=[{key:"hideLoadButton",value:function(){this.loadButton.classList.remove("tw-block"),this.loadButton.classList.add("tw-hidden")}},{key:"showLoadButton",value:function(){this.loadButton.classList.remove("tw-hidden"),this.loadButton.classList.add("tw-block")}},{key:"clearArticles",value:function(){this.articlesWrapper.innerHTML=""}},{key:"insertArticles",value:function(t){var n=this;if(this.filter.length>0){var r=t.querySelectorAll(".blog-new-articles-card");e(r).splice(this.filterOffset,this.loadLimits).forEach(function(t){n.articlesWrapper.appendChild(t)}),e(r).splice(this.filterOffset,this.loadLimits).length<+this.loadLimits||r.length==+this.loadLimits?this.hideLoadButton():this.showLoadButton(),this.filterOffset+=+this.loadLimits}else this.articlesWrapper.insertAdjacentHTML("beforeend",t.innerHTML);this.offset+=+this.loadLimits}},{key:"loadNewArticles",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n="".concat(window.location.origin).concat(window.location.pathname,"?view=").concat(this.blogListingTemplateUrl,"&limit=").concat(this.loadLimits,"&offset=").concat(this.offset);this.filter.length>0&&(n="".concat(window.location.origin).concat(window.location.pathname,"?view=").concat(this.blogListingTemplateUrl,"&limit=",1e3,"&offset=",0,"&filter=").concat(this.filter)),fetch(n).then(function(t){return t.text()}).then(function(n){var r=(new DOMParser).parseFromString(n,"text/html").querySelector(".articles-wrapper"),o=r.querySelectorAll(".blog-new-articles-card");e?o.length?t.showLoadButton():t.hideLoadButton():o.length?t.insertArticles(r,t.firstFilter):t.hideLoadButton(),t.firstFilter=!1})}},{key:"initListeners",value:function(){var t=this;this.loadButton&&this.loadButton.addEventListener("click",function(){t.loadNewArticles(!1)})}},{key:"connectedCallback",value:function(){var t=this;document.addEventListener("DOMContentLoaded",function(){t.initListeners(),t.loadNewArticles(!0)})}}],l&&r(o.prototype,l),a&&r(o,a),Object.defineProperty(o,"prototype",{writable:!1}),o;var o,l,a}(l(HTMLElement));void 0===customElements.get("new-articles")&&customElements.define("new-articles",u)}},t=>{var e;e=6014,t(t.s=e)}]);

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.