PageSourceSearch

https://www.fxpro.fr/use-swiper-44541d72841092711dab.chunk.js

js fxpro.fr collected 2026-09-29 08:55:32 UTC 1,943 bytes, 1 lines download raw bytes

1import{r as e}from"./rolldown-runtime-2178f5bcd152fc3f91dd.chunk.js";import{h as t,v as n}from"./vendor-5e5f03d649aa429fa111.chunk.js";import{tn as r}from"./common-72eb22db8dd3f80d6dc9.chunk.js";var i=t(),a=e(n(),1);function o(e){let t=(0,i.c)(16),n=(0,a.useRef)(null),[o,s]=(0,a.useState)(!0),[c,l]=(0,a.useState)(!1),[u,d]=(0,a.useState)(!1),[f,p]=(0,a.useState)(0),[m,h]=(0,a.useState)(!1),g;t[0]===e?g=t[1]:(g=JSON.stringify(e),t[0]=e,t[1]=g);let _=g,v=(0,a.useRef)(e),y;t[2]===e?y=t[3]:(y=()=>{v.current=e},t[2]=e,t[3]=y),(0,a.useEffect)(y);let b;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(b=()=>{let e=n.current;if(!e)return;let t,i,a,o;return r().load(`https://cdn.jsdelivr.net/npm/swiper@11/swiper-element-bundle.min.js`).then(()=>{o=requestAnimationFrame(()=>{typeof e.initialize==`function`&&(Object.assign(e,v.current),e.initialize(),h(!0),t=e.swiper,d(t.isLocked),i=()=>{s(t.isBeginning),l(t.isEnd)},a=()=>p(t.activeIndex),e.addEventListener(`swipertoedge`,i),e.addEventListener(`swiperfromedge`,i),t.on(`slideChange`,a),t.on(`lock`,()=>d(!0)),t.on(`unlock`,()=>{d(!1),s(t.isBeginning),l(t.isEnd)}))})}),()=>{o&&cancelAnimationFrame(o),e&&i&&(e.removeEventListener(`swipertoedge`,i),e.removeEventListener(`swiperfromedge`,i)),t&&a&&t.off(`slideChange`,a)}},t[4]=b):b=t[4];let x;t[5]===_?x=t[6]:(x=[_],t[5]=_,t[6]=x),(0,a.useEffect)(b,x);let S;t[7]===Symbol.for(`react.memo_cache_sentinel`)?(S=()=>n.current?.swiper?.slideNext(),t[7]=S):S=t[7];let C=S,w;t[8]===Symbol.for(`react.memo_cache_sentinel`)?(w=()=>n.current?.swiper?.slidePrev(),t[8]=w):w=t[8];let T=w,E;t[9]===Symbol.for(`react.memo_cache_sentinel`)?(E=e=>n.current?.swiper?.slideTo(e),t[9]=E):E=t[9];let D=E,O;return t[10]!==f||t[11]!==o||t[12]!==c||t[13]!==u||t[14]!==m?(O={swiperElRef:n,isBeginning:o,isEnd:c,isLocked:u,activeIndex:f,slideNext:C,slidePrevious:T,slideTo:D,isSwiperReady:m},t[10]=f,t[11]=o,t[12]=c,t[13]=u,t[14]=m,t[15]=O):O=t[15],O}export{o as t};

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.