PageSourceSearch

https://wheatoncollege.edu/wp-content/plugins/linchpin-blocks/bloc…/view.js?ver=dcc63325fae45585df09

js wheatoncollege.edu collected 2026-09-24 15:23:45 UTC 2,386 bytes, 1 lines download raw bytes

1import{getContext as e,getElement as t,store as i}from"@wordpress/interactivity";const{state:s}=i("linchpin/slider-controller",{state:{onPage:[],activeIndex:0,isRendered:!1},actions:{onSliderButtonClick:()=>{const t=e();clearInterval(void 0),t.buttonText="Play"===t.buttonText?"Pause":"Play",t.isPlaying=!t.isPlaying}},callbacks:{rendered:()=>{const{ref:e}=t(),i=e.getAttribute("id");s.onPage.push(i),s.isRendered=!0},onSliderInit:()=>{const{ref:i}=t(),o=i.getAttribute("id");s.onPage.push(o);const n=e(),{showPrevNext:r,autoRotateSlides:a,showTimer:l}=n,d=new CustomEvent("sliderReady",{detail:{id:o}}),c=i.querySelector(".swiper");if(!c)return;const p=i.querySelector(".swiper-button-next"),u=i.querySelector(".swiper-button-prev"),f=i.querySelector(".swiper-pagination"),v=!(!0!==r||!p||!u)&&{nextEl:p,prevEl:u},y=window.matchMedia("(prefers-reduced-motion: reduce)").matches,w=!y&&!0===n.smoothLoop&&"slide"===n.transitionEffect&&"vertical"!==n.transitionDirection,g=!(y||!0!==a&&!w)&&{delay:w?1:parseInt(n.autoRotateDelay,10),disableOnInteraction:!1},h=!0===n.loopSlides||w,S="fade"===n.transitionEffect?{crossFade:!0}:null,b=void 0!==n.visibleSlides?parseInt(n.visibleSlides,10):1,P=!0===n.variableWidth,I=void 0!==n.slideGap?parseInt(n.slideGap,10):32,m=void 0!==n.slideBreakpoint?parseInt(n.slideBreakpoint,10):767,x=void 0!==n.transitionSpeed?parseInt(n.transitionSpeed,10):400;let E={},k=P?"auto":b;m>0&&b>1&&!P&&(k=1,E={[m+1]:{slidesPerView:b}});const T={speed:x,spaceBetween:I,navigation:v,autoplay:g,loop:h,effect:n.transitionEffect,fadeEffect:S,slidesPerView:k,direction:"vertical"===n.transitionDirection&&"slide"===n.transitionEffect?"vertical":"horizontal",breakpoints:E,pagination:!!f&&{el:f,clickable:!0},allowTouchMove:!w,loopAdditionalSlides:w?b:0},q=new window.Swiper(c,T).on("slideChange",e=>{if(!g)return;const{activeIndex:t}=e;n.activeIndex=t});if(l){const e=i.querySelector(".swiper-timer circle.progress"),t=parseFloat(e.getAttribute("r")),s=2*Math.PI*t;e.style.strokeDasharray=s,e.style.strokeDashoffset=s,q.on("autoplayTimeLeft",(t,i,o)=>{const n=s*(1-o);e.style.strokeDashoffset=n})}document.dispatchEvent(d)},isPlaying:()=>{const{ref:i}=t();if(!i.classList.contains("is-slider"))return;const s=e(),{isPlaying:o}=s},slideTo:()=>{const i=e(),{activeIndex:s,isSlider:o}=i;if(!o)return;const{ref:n}=t(),r=n.querySelector(".swiper").swiper;r&&r.slideTo(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.