https://jerry.ai/wp-content/plugins/jerry-wp-blocks/build/blocks/h…/view.js?ver=09d8711b350b613daed5
1import{getContext as e,getElement as t,store as r}from"@wordpress/interactivity";const n=(e,t)=>{const{carouselElement:r}=e,[n,o]=e.cardElements??[];if(!r||!n)return;const s=o?o.offsetLeft-n.offsetLeft:n.offsetWidth;r.scrollBy({behavior:"smooth",left:t*s})};r("jerry/home-page-filter-stack-resource-item",{state:{get isArrowLeftDisabled(){return!e().canScrollPrevious},get isArrowRightDisabled(){return!e().canScrollNext}},actions:{onClickPrevious:()=>{n(e(),-1)},onClickNext:()=>{n(e(),1)}},callbacks:{onCarouselInit:()=>{const r=t().ref;if(!(r instanceof HTMLElement))return;const n=r.querySelector("[data-resources-carousel-track]");if(!n)return;const o=e();o.carouselElement=n,o.cardElements=Array.from(n.querySelectorAll("[data-resources-carousel-card]"));let s=null;const l=()=>{null!==s&&window.cancelAnimationFrame(s),s=window.requestAnimationFrame(()=>{s=null,(e=>{const{carouselElement:t,cardElements:r}=e,n=r?.at(-1);if(!t||!n)return;const o=t.getBoundingClientRect(),s=n.getBoundingClientRect(),l=Math.min(o.right,document.documentElement.clientWidth);e.canScrollPrevious=t.scrollLeft>1,e.canScrollNext=s.right>l+1})(o)})},c=new ResizeObserver(l);return c.observe(n),n.addEventListener("scroll",l,{passive:!0}),l(),()=>{c.disconnect(),n.removeEventListener("scroll",l),null!==s&&window.cancelAnimationFrame(s)}}}});
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.