PageSourceSearch

https://shukatsu-box.com/assets/autoplay-DeoxMroX.js

js shukatsu-box.com collected 2026-10-05 22:52:32 UTC 4,342 bytes, 4 lines download raw bytes

1
2!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="e54cff14-c091-545a-a8fc-9c765c753157")}catch(e){}}();
3import{u as e}from"./swiper-BIFnerS1.js";function t({swiper:t,extendParams:n,on:r,emit:i,params:a}){t.autoplay={running:!1,paused:!1,timeLeft:0},n({autoplay:{enabled:!1,delay:3e3,waitForTransition:!0,disableOnInteraction:!1,stopOnLastSlide:!1,reverseDirection:!1,pauseOnMouseEnter:!1}});let o,s,c=a&&a.autoplay?a.autoplay.delay:3e3,l=a&&a.autoplay?a.autoplay.delay:3e3,u,d=new Date().getTime(),f,p,m,h,g,_;function v(e){!t||t.destroyed||!t.wrapperEl||e.target===t.wrapperEl&&(t.wrapperEl.removeEventListener(`transitionend`,v),!(_||e.detail&&e.detail.bySwiperTouchMove)&&E())}let y=()=>{if(t.destroyed||!t.autoplay.running)return;t.autoplay.paused?f=!0:f&&=(l=u,!1);let e=t.autoplay.paused?u:d+l-new Date().getTime();t.autoplay.timeLeft=e,i(`autoplayTimeLeft`,e,e/c),s=requestAnimationFrame(()=>{y()})},b=()=>{let e;if(e=t.virtual&&t.params.virtual.enabled?t.slides.find(e=>e.classList.contains(`swiper-slide-active`)):t.slides[t.activeIndex],e)return parseInt(e.getAttribute(`data-swiper-autoplay`),10)},x=()=>{let e=t.params.autoplay.delay,n=b();return!Number.isNaN(n)&&n>0&&(e=n),e},S=e=>{if(t.destroyed||!t.autoplay.running)return;cancelAnimationFrame(s),y();let n=e;n===void 0&&(n=x(),c=n,l=n),u=n;let r=t.params.speed,a=()=>{!t||t.destroyed||(t.params.autoplay.reverseDirection?!t.isBeginning||t.params.loop||t.params.rewind?(t.slidePrev(r,!0,!0),i(`autoplay`)):t.params.autoplay.stopOnLastSlide||(t.slideTo(t.slides.length-1,r,!0,!0),i(`autoplay`)):!t.isEnd||t.params.loop||t.params.rewind?(t.slideNext(r,!0,!0),i(`autoplay`)):t.params.autoplay.stopOnLastSlide||(t.slideTo(0,r,!0,!0),i(`autoplay`)),t.params.cssMode&&(d=new Date().getTime(),requestAnimationFrame(()=>{S()})))};return n>0?(clearTimeout(o),o=setTimeout(()=>{a()},n)):requestAnimationFrame(()=>{a()}),n},C=()=>{d=new Date().getTime(),t.autoplay.running=!0,S(),i(`autoplayStart`)},w=()=>{t.autoplay.running=!1,clearTimeout(o),cancelAnimationFrame(s),i(`autoplayStop`)},T=(e,n)=>{if(t.destroyed||!t.autoplay.running)return;clearTimeout(o),e||(g=!0);let r=()=>{i(`autoplayPause`),t.params.autoplay.waitForTransition?t.wrapperEl.addEventListener(`transitionend`,v):E()};if(t.autoplay.paused=!0,n){r();return}u=(u||t.params.autoplay.delay)-(new Date().getTime()-d),!(t.isEnd&&u<0&&!t.params.loop)&&(u<0&&(u=0),r())},E=()=>{t.isEnd&&u<0&&!t.params.loop||t.destroyed||!t.autoplay.running||(d=new Date().getTime(),g?(g=!1,S(u)):S(),t.autoplay.paused=!1,i(`autoplayResume`))},D=()=>{if(t.destroyed||!t.autoplay.running)return;let n=e();n.visibilityState===`hidden`&&(g=!0,T(!0)),n.visibilityState===`visible`&&E()},O=e=>{e.pointerType===`mouse`&&(g=!0,_=!0,!(t.animating||t.autoplay.paused)&&T(!0))},k=e=>{e.pointerType===`mouse`&&(_=!1,t.autoplay.paused&&E())},A=()=>{t.params.autoplay.pauseOnMouseEnter&&(t.el.addEventListener(`pointerenter`,O),t.el.addEventListener(`pointerleave`,k))},j=()=>{t.el&&typeof t.el!=`string`&&(t.el.removeEventListener(`pointerenter`,O),t.el.removeEventListener(`pointerleave`,k))},M=()=>{e().addEventListener(`visibilitychange`,D)},N=()=>{e().removeEventListener(`visibilitychange`,D)};r(`init`,()=>{t.params.autoplay.enabled&&(A(),M(),C())}),r(`destroy`,()=>{j(),N(),t.autoplay.running&&w()}),r(`_freeModeStaticRelease`,()=>{(m||g)&&E()}),r(`_freeModeNoMomentumRelease`,()=>{t.params.autoplay.disableOnInteraction?w():T(!0,!0)}),r(`beforeTransitionStart`,(e,n,r)=>{t.destroyed||!t.autoplay.running||(r||!t.params.autoplay.disableOnInteraction?T(!0,!0):w())}),r(`sliderFirstMove`,()=>{if(!(t.destroyed||!t.autoplay.running)){if(t.params.autoplay.disableOnInteraction){w();return}p=!0,m=!1,g=!1,h=setTimeout(()=>{g=!0,m=!0,T(!0)},200)}}),r(`touchEnd`,()=>{if(!(t.destroyed||!t.autoplay.running||!p)){if(clearTimeout(h),clearTimeout(o),t.params.autoplay.disableOnInteraction){m=!1,p=!1;return}m&&t.params.cssMode&&E(),m=!1,p=!1}}),r(`slideChange`,()=>
3{t.destroyed||!t.autoplay.running||t.autoplay.paused&&(u=x(),c=x())}),Object.assign(t.autoplay,{start:C,stop:w,pause:T,resume:E})}export{t};
4//# debugId=e54cff14-c091-545a-a8fc-9c765c753157

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.