PageSourceSearch

https://anthonysgoods.com/cdn/shop/t/76/assets/blog-De4H2jrh.js

js anthonysgoods.com collected 2026-10-03 21:20:59 UTC 2,215 bytes, 1 lines download raw bytes

1import{_ as b}from"./preload-helper-C1FmrZbK.js";import{n,e as v}from"./fluorescent-dom.es-Cu7dY8l0.js";import{r as w}from"./index-CUsq4fcp.js";import{i as E}from"./intersection-watcher-D3vtB7Co.js";import{d as P}from"./delay-offset-DYAL33nW.js";import{s as u}from"./shouldAnimate-BMbjctYf.js";import{f as S,p as y}from"./fetch-data-BLptCuNZ.js";import"./media-queries-CokWIw5y.js";const r={headerItems:".animation--blog-header > *",articleItem:".article-item",pagination:".blog__pagination"},d=e=>{P(e,[r.headerItems,r.articleItem,r.pagination]);const t=E(e,!0);return{destroy(){t==null||t.destroy()}}},l={ajax:"[data-ajax]",paginate:"[data-paginate]",item:"[data-item]"};w("blog",{onLoad(){const e=n("#blog-mobile-nav",this.container),t=document.querySelector(".js-blog-nav");this.blogEl=n(l.ajax,this.container),e&&(this.mobileNavSelectEvent=v(e,"change",()=>{window.location.href=e.value})),this.blogEl&&this.blogResults(),u(this.container)&&(this.animateBlog=d(this.container)),t&&this.onScrollBlogNav(t)},onScrollBlogNav(e){b(async()=>{const{Swiper:t,FreeMode:a,Mousewheel:i}=await import("./swiper-ZmHN4qfs.js");return{Swiper:t,FreeMode:a,Mousewheel:i}},[],import.meta.url).then(({Swiper:t,FreeMode:a,Mousewheel:i})=>{this.swiper=new t(e,{modules:[a,i],slidesPerView:"auto",spaceBetween:16,keyboard:!0,mousewheel:{forceToAxis:!0}});const o=e.querySelector(".js-active");if(o){const s=o.dataset.index;this.swiper.slideTo(s)}})},paginatedResults(e,t,a){const i=t*a-a,o=t*a;return e.slice(i,o)},getCurrentPage(){const t=new URLSearchParams(window.location.search).get("page");return t?parseInt(t):1},async blogResults(){let e=this.getCurrentPage();const{itemCount:t,sectionId:a,itemsPerPage:i}=this.container.dataset,o=n(l.paginate,this.container),s=parseInt(t||0),c=parseInt(i||12),m=Math.ceil((s+1)/c),p=await S(1,m,a,l.item),g=this.paginatedResults(p,e,c);if(!g.length)return;this.blogEl.innerHTML="",g.forEach(f=>{this.blogEl.innerHTML+=f});const h=y(e,m,4);h&&o&&(o.innerHTML=h),u(this.container)&&(this.animateBlog=d(this.container))},onUnload(){var e,t;(e=this.animateBlog)==null||e.destroy(),(t=this.blogResults)==null||t.destroy(),this.mobileNavSelectEvent&&this.mobileNavSelectEvent.unsubscribe()}});

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.