PageSourceSearch

https://web-assets.trouw.nl/2f5d96a3443e/_next/static/chunks/4769.255a82df1e22f0ef.js

js trouw.nl collected 2026-10-01 08:46:57 UTC 2,587 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4769],{24769:(e,l,t)=>{t.r(l),t.d(l,{Carousel:()=>d});var n=t(11259),o=t(5220),u=t(65368),a=t(66526),r=t(62144),i=t(72247),s=t(20297);let f={loop:!0},p=e=>{let l="touches"in e?e.touches[0]:e;return l?{x:l.clientX,y:l.clientY}:null},c=e=>{let{children:l,index:t,onIndexChange:u,autoPlay:c,options:d=f}=e,y=(0,s.j)(),v=[];c&&v.push((0,a.A)({delay:c.delay,defaultInteraction:!1}));let[h,g]=(0,r.A)(d,v),[k,b]=(0,o.useState)(0),[E,C]=(0,o.useState)(!!c&&!y),[x,N]=(0,o.useState)(0),S=(0,o.useRef)(!!c&&!y),j=void 0!==t,m=j?t:k,[w,_]=(0,o.useState)(!0);(0,o.useEffect)(()=>{if(!g)return;let e=()=>_(g.slideNodes().length>1);return e(),g.on("reinit",e),()=>{g.off("reinit",e)}},[g]);let P=(0,o.useCallback)(()=>!!g&&g.slideNodes().length>1,[g]),A=(0,o.useCallback)(()=>{var e;let l=null==g||null==(e=g.plugins())?void 0:e.autoplay;l&&P()&&(l.play(),S.current=!0,C(!0))},[g,P]),L=(0,o.useCallback)(()=>{var e;let l=null==g||null==(e=g.plugins())?void 0:e.autoplay;l&&(l.stop(),S.current=!1,C(!1))},[g]),M=(0,o.useCallback)(()=>{var e;let l=null==g||null==(e=g.plugins())?void 0:e.autoplay;l&&(l.isPlaying()?L():A())},[g,A,L]);(0,o.useEffect)(()=>{g&&j&&t!==g.selectedSnap()&&g.goTo(t)},[g,j,t]),(0,o.useEffect)(()=>{if(!g)return;let e=()=>{let e=g.selectedSnap();b(e),null==u||u(e)};return e(),g.on("reinit",e).on("select",e),()=>{g.off("reinit",e).off("select",e)}},[g,u]),(0,o.useEffect)(()=>{var e;if(!g||!(null==(e=g.plugins())?void 0:e.autoplay))return;y||!P()?L():A();let l=()=>C(!0),t=()=>C(!1),n=()=>{S.current&&!y&&P()&&(A(),N(e=>e+1))},o=null,u=(e,l)=>{let{detail:t}=l;o=p(t)},a=(e,l)=>{let{detail:t}=l;if(!o)return;let n=p(t);if(!n)return;let u=Math.abs(n.x-o.x);u<=Math.abs(n.y-o.y)||u<10||(o=null,L())},r=()=>{o=null},i=()=>L(),s=g.rootNode(),f=()=>L();return s.addEventListener("click",f),g.on("autoplay:play",l),g.on("autoplay:stop",t),g.on("reinit",n),g.on("pointerdown",u),g.on("pointermove",a),g.on("pointerup",r),g.on("slidefocus",i),()=>{s.removeEventListener("click",f),g.off("autoplay:play",l),g.off("autoplay:stop",t),g.off("reinit",n),g.off("pointerdown",u),g.off("pointermove",a),g.off("pointerup",r),g.off("slidefocus",i)}},[g,y,P,A,L]);let Y=c?{delay:c.delay,isPlaying:E,toggle:M,start:A,stop:L,resetKey:x}:void 0;return(0,n.jsx)(i.Y.Provider,{value:{embla:{ref:h,instance:g},current:m,hasMultipleSlides:w,plugins:Y?{autoplay:Y}:void 0},children:l})},d=e=>{let{children:l,slideIds:t,...o}=e;return(0,n.jsx)(c,{...o,children:(0,n.jsx)("div",{className:u.zr,children:l})},t?t.join("|"):void 0)}}}]);

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.