PageSourceSearch

https://www.roccosiffredi.fr/_next/static/chunks/871-43841e865fabee36.js

js roccosiffredi.fr collected 2026-10-02 22:02:29 UTC 17,291 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[871],{253:(e,t,r)=>{r.r(t),r.d(t,{default:()=>n});function n(e){let{src:t,width:r,quality:n}=e;if(t.endsWith(".svg")||t.includes("?width=")||t.includes("&width=")||t.includes("/l/"))return t;if(t.includes("transform.gammacdn.com")){let e=["width=".concat(r),"format=webp","enlarge=0"];n&&e.push("quality=".concat(n));let a=e.join("&");return"".concat(t,"?").concat(a)}let a=["width=".concat(r)],i=r<=828;a.push("quality=".concat(n||(i?85:90))),a.push("format=avif"),a.push("fit=scale-down");let l=a.join(",");if(!t.startsWith("http"))return"/cdn-cgi/image/".concat(l,"/").concat(t.startsWith("/")?t.slice(1):t);try{let e=encodeURIComponent(t);return"/cdn-cgi/image/".concat(l,"/").concat(e)}catch(e){return"".concat(t).concat(t.includes("?")?"&":"?","width=").concat(r)}}},872:(e,t,r)=>{r.d(t,{A:()=>n});let n=(0,r(5959).v)(e=>({joinUrl:null,setJoinUrl:t=>e({joinUrl:t||null})}))},1144:(e,t,r)=>{r.d(t,{IB:()=>i,N_:()=>s,a8:()=>o,rd:()=>d});var n=r(5251),a=r(4497);let i=["en","fr"],l=(0,a.A)({locales:i,defaultLocale:"en",localePrefix:"as-needed",pathnames:{"/":"/"}}),{Link:s,redirect:c,usePathname:o,useRouter:d,getPathname:u}=(0,n.A)(l)},2671:(e,t,r)=>{r.d(t,{A:()=>i});var n=r(5155),a=r(2115);function i(e){let{children:t,content:r,placement:i="top",...l}=e,[s,c]=(0,a.useState)(!1),o=(0,a.useRef)(null),d={top:{bottom:"100%",left:"50%",transform:"translateX(-50%)",marginBottom:"6px"},"top-end":{bottom:"100%",right:0,marginBottom:"6px"},bottom:{top:"100%",left:"50%",transform:"translateX(-50%)",marginTop:"6px"}};return(0,n.jsxs)("div",{className:"relative inline-flex",onMouseEnter:()=>{clearTimeout(o.current),c(!0)},onMouseLeave:()=>{o.current=setTimeout(()=>c(!1),100)},children:[t,s&&r&&(0,n.jsx)("div",{className:"absolute z-50 py-1 px-2 text-xs font-medium text-black bg-white/90 rounded shadow-lg whitespace-nowrap pointer-events-none backdrop-blur-sm",style:d[i]||d.top,children:r})]})}},2694:(e,t,r)=>{r.d(t,{A:()=>w});var n=r(5155),a=r(2671),i=r(7781),l=r(1144),s=r(5910),c=r(6059),o=r(4779),d=r(902),u=r(5239),m=r(6111),h=r.n(m),p=r(63),x=r(2115),f=r(7650);function w(e){var t;let{t:r,scene:m,littleSlide:w,isFromCarousel:v=!1,touchedClipId:g,handleOnTouchStart:b,showTitle:j=!1,eager:N=!1,lcpCandidate:y=!1}=e,[k,_]=(0,x.useState)(!1),[A,C]=(0,x.useState)(!1),[E,z]=(0,x.useState)(m.videoThumb||m.trailerUrl),[T,R]=(0,x.useState)(N),[S,L]=(0,x.useState)({top:0,left:0,width:0,height:0}),[U,M]=(0,x.useState)(!1),I=(0,x.useRef)(null),B=(0,x.useRef)(null),D=(0,x.useRef)(null),P=(0,x.useRef)(!1),W=(0,x.useRef)(null),q=(0,x.useRef)(null),F=(0,x.useRef)(null),O=(0,x.useRef)(null),Y=(0,x.useRef)(null),X=(0,d.Ym)(),J=(0,p.useRouter)(),{isDomainSpecific:K}=(0,s.k)(),{openModal:G,setScene:H}=(0,i.A)(),Q=(0,x.useCallback)(e=>{{let t="video_progress_".concat(m.clip_id);if(0===e){let e=localStorage.getItem(t);if(e&&parseFloat(e)>0)return}localStorage.setItem(t,e.toString())}},[m.clip_id]),V=(0,x.useCallback)(()=>{{let e="video_progress_".concat(m.clip_id),t=localStorage.getItem(e);return t?parseFloat(t):0}},[m.clip_id]),Z=(0,x.useCallback)(()=>{if(B.current&&B.current(),F.current){let e=()=>{F.current&&!F.current.paused&&Q(F.current.currentTime)};F.current.addEventListener("timeupdate",e),B.current=()=>{var t;return null==(t=F.current)?void 0:t.removeEventListener("timeupdate",e)}}},[Q]),$=(0,x.useCallback)(()=>{B.current&&(B.current(),B.current=null)},[]),ee=e=>{e.preventDefault(),P.current=!0,F.current&&(Q(F.current.currentTime),F.current.pause()),$(),D.current&&(D.current.style.display="none"),C(!1),_(!1);let t="en"===X||K?"/watch/".concat(m.clip_id):"/".concat(X,"/watch/").concat(m.clip_id);h().start(),J.push(t)},et=()=>{if(!P.current&&(I.current&&clearTimeout(I.current),!k)&&(_(!0),requestAnimationFrame(()=>{requestAnimationFrame(()=>{C(!0)})}),setTimeout(()=>{if(F.current){let e=F.current,t=()=>{let t=V();t>0&&(e.currentTime=t),setTimeout(()=>Z(),100)};if(e.readyState>=1)t();else{let r=()=>{e.removeEventListener("loadedmetadata",r),t()};e.addEventListener("loadedmetadata",r)}e.play().catch(()=>{})}},50),Y.current)){let e=Y.current.getBoundingClientRect();
1L({top:e.top,left:e.left,width:e.width,height:e.height})}},er=()=>{I.current=setTimeout(()=>{C(!1),setTimeout(()=>{_(!1),F.current&&(Q(F.current.currentTime),F.current.pause()),$()},150)},100)};return(0,x.useEffect)(()=>{var e;(null==(e=F.current)?void 0:e.error)&&z(null)},[null==(t=F.current)?void 0:t.error,E]),(0,x.useEffect)(()=>{M(!0);let e=()=>{k&&(C(!1),setTimeout(()=>{_(!1),F.current&&(Q(F.current.currentTime),F.current.pause()),$()},200))};return window.addEventListener("scroll",e,{passive:!0}),()=>{I.current&&clearTimeout(I.current),$(),window.removeEventListener("scroll",e)}},[k,Q,$]),(0,x.useEffect)(()=>()=>{D.current&&D.current.parentNode&&D.current.remove()},[]),(0,x.useEffect)(()=>{var e,t;g===m.clip_id&&(null==(e=O.current)||e.play()),g&&g!==m.clip_id&&(null==(t=O.current)||t.pause())},[g,m.clip_id]),(0,x.useEffect)(()=>{let e=W.current,t=q.current,r=new IntersectionObserver(e=>{let[t]=e;!t.isIntersecting&&k&&(W.current&&W.current.getBoundingClientRect().right>window.innerWidth&&(null==w||w("left")),q.current&&q.current.getBoundingClientRect().left<0&&(null==w||w("right")))},{root:null,rootMargin:"0px",threshold:.9});return e&&r.observe(e),t&&r.observe(t),()=>{e&&r.unobserve(e),t&&r.unobserve(t)}},[k,w]),(0,n.jsxs)("div",{ref:Y,className:"group bg-zinc-900 col-span relative",children:[(0,n.jsx)(l.N_,{href:"/watch/".concat(m.clip_id),as:"en"===X||K?"/watch/".concat(m.clip_id):void 0,children:m.pictureUrl?g===m.clip_id&&E?(0,n.jsx)("video",{ref:O,muted:!0,loop:!0,src:E,style:{aspectRatio:"16/9",width:"100%",height:"auto"},className:"cursor-pointer object-cover transition duration shadow-xl rounded-t-md"}):(0,n.jsx)(u.default,{onTouchStart:()=>null==b?void 0:b(m.clip_id),onLoad:()=>R(!0),ref:e=>{(null==e?void 0:e.complete)&&R(!0)},width:1920,height:1080,priority:y,loading:N?"eager":"lazy",fetchPriority:y?"high":void 0,decoding:"async",sizes:y?"100vw":"(max-width: 768px) 50vw, (max-width: 1024px) 25vw, 300px",quality:60,src:m.pictureUrl,alt:m.title,draggable:!1,style:{width:"100%",height:"auto",aspectRatio:"16/9"},className:"cursor-pointer object-cover transition-opacity duration-300 shadow-xl rounded-md ".concat(T?"opacity-100":"opacity-0")}):null}),j&&(0,n.jsx)("div",{className:"".concat(v?"invisible sm:visible":"visible"," absolute bottom-0 left-0 w-full rounded-b-md bg-gradient-to-t from-black/90 via-black/50 to-transparent text-white flex items-end px-3 pt-10 pb-2 text-sm overflow-hidden pointer-events-none"),children:(0,n.jsx)("span",{className:"line-clamp-2 drop-shadow leading-snug",children:m.title})}),U&&k&&!P.current&&(0,f.createPortal)((0,n.jsxs)("div",{ref:D,className:"fixed pointer-events-auto",style:{zIndex:60,top:"".concat(S.top-.06*S.width,"px"),left:"".concat((()=>{let e=1.2*S.width,t=window.innerWidth-56-16,r=S.left+S.width>window.innerWidth-200,n=80*!r,a=S.left-.1*S.width+n,i=a<16,l=a+e>t;return Math.max(16,Math.min(i&&l?(window.innerWidth-e)/2:i?16+(r?0:n):l?t-e:a,t-e))})(),"px"),width:"".concat(S.width,"px"),position:"fixed",isolation:"isolate",transform:A?"scale(1.15) translate3d(0, -6px, 0)":"scale(1) translate3d(0, 0, 0)",opacity:+!!A,transition:"transform 150ms cubic-bezier(0.16, 1, 0.3, 1), opacity 120ms cubic-bezier(0.16, 1, 0.3, 1)",willChange:"transform, opacity"},onMouseEnter:et,onMouseLeave:er,children:[(0,n.jsx)(l.N_,{href:"/watch/".concat(m.clip_id),as:"en"===X||K?"/watch/".concat(m.clip_id):void 0,className:"pointer-events-auto",onClick:ee,children:E?(0,n.jsx)("video",{ref:F,onMouseDown:()=>{var e;return null==(e=F.current)?void 0:e.play()},onError:()=>z(null),muted:!0,loop:!0,preload:"none",loading:"lazy",src:E,style:{aspectRatio:"16/9",width:"100%",height:"auto"},className:"cursor-pointer object-cover transition-transform duration-150 ease-out shadow-xl rounded-t-md"}):m.pictureUrl?(0,n.jsx)("div",{className:"overflow-hidden rounded-t-md",children:(0,n.jsx)(u.default,{width:1920,height:1080,src:m.pictureUrl,alt:m.title,draggable:!1,loading:"lazy",decoding:"async",sizes:"(max-width: 768px) 50vw, (max-width: 1024px) 25vw, 300px",style:{width:"100%",height:"auto",aspectRatio:"16/9"},className:"kenburns cursor-pointer object-cover shadow-xl"})}):null}),(0,n.jsxs)("div",{className:"z-10 bg-gradient-to-t from-zinc-900/95 to-zinc-800/90 backdrop-blur-sm absolute w-full transition-all duration-200 rounded-b-md pointer-events-auto",children:[(0,n.jsxs)("div",{className:"absolute top-2 right-2 flex gap-1",children:[(0,n.jsx)(a.A,{showArrow:!0,placement:"top-end",content:r.play,closeDelay:0,classNames:{base:"py-1 px-2 shadow-lg text-xs font-medium text-black bg-white/90 backdrop-blur-sm",arrow:"bg-white/90"},children:(0,n.jsx)(l.N_,{href:"/watch/".concat(m.clip_id),as:"en"===X||K?"/watch/".concat(m.clip_id):void 0,className:"w-10 h-10 bg-white/90 hover:bg-white rounded-full flex items-center justify-center transition-all duration-150 hover:scale-105 backdrop-blur-sm shadow-lg",onClick:ee,children:(0,n.jsx)(o.A,{className:"text-black w-5 h-5 ml-0.5"})})}),(0,n.jsx)("div",{ref:W,children:(0,n.jsx)(a.A,{showArrow:!0,placement:"top-end",content:r.informations,closeDelay:0,classNames:{base:"py-1 px-2 shadow-lg text-xs font-medium text-black bg-white/90 backdrop-blur-sm",arrow:"bg-white/90"},children:(0,n.jsx)("button",{onClick:()=>{H(m),G(m.clip_id),C(!1),setTimeout(()=>{_(!1),F.current&&(Q(F.current.currentTime),F.current.pause()),$()},200)},className:"w-10 h-10 bg-zinc-800/80 hover:bg-zinc-700/80 border border-white/40 hover:border-white/60 rounded-full flex items-center justify-center transition-all duration-150 hover:scale-105 backdrop-blur-sm",children:(0,n.jsx)(c.A,{className:"text-white w-5 h-5"})})})})]}),(0,n.jsxs)("div",{className:"p-2 pt-2 pr-20",ref:q,children:[(0,n.jsx)("h3",{className:"text-white font-semibold text-sm line-clamp-2 mb-1.5 leading-tight",children:m.title}),m.actors&&m.actors.length>0&&(0,n.jsxs)("div",{className:"flex flex-wrap gap-1 items-center",children:[(0,n.jsxs)("span",{className:"text-xs text-zinc-400",children:[r.cast," :"]}),(Array.isArray(m.actors)?m.actors.slice(0,2):m.actors.split(",").slice(0,2)).map((e,t)=>{let r="string"==typeof e?e.trim():e.name,a="string"==typeof e?"/actor/".concat(e.trim().replace(/ /g,"-")):"/actor/".concat(e.url_name);return(0,n.jsx)(l.N_,{href:a,as:"en"===X||K?a:void 0,className:"text-xs text-zinc-300 hover:text-white transition-colors px-3 py-1.5 bg-zinc-700/50 rounded-full hover:bg-zinc-600/50 backdrop-blur-sm",children:r},t)})]})]})]})]}),document.body),(0,n.jsx)("div",{onMouseEnter:et,onMouseLeave:er,className:"absolute inset-0 hidden md:block",style:{pointerEvents:"auto"}},"hover-".concat(m.clip_id))]})}},4163:(e,t,r)=>{r.d(t,{A:()=>v});var n=r(5155),a=r(4516),i=r(7016),l=r(2671);let s=e=>{let{t,isMuted:r,onClick:s}=e,c=r?a.A:i.A;return(0,n.jsx)("button",{onClick:s,className:"cursor-pointer group/item w-6 h-6 lg:w-10 lg:h-10 border-white border-2 rounded-full flex justify-center items-center transition hover:border-neutral-300","aria-label":r?t.mute:t.unmute,type:"button",children:(0,n.jsx)(l.A,{showArrow:!0,placement:"top",closeDelay:0,content:r?t.mute:t.unmute,classNames:{base:"py-2 px-4 shadow-xl text-black bg-gradient-to-br from-white to-neutral-400",arrow:"bg-neutral-400 dark:bg-white"},children:(0,n.jsx)("div",{children:(0,n.jsx)(c,{className:"text-white group-hover/item:text-neutral-300 w-4 lg:w-6","aria-hidden":"true"})})})})};var c=r(4912),o=r(5239),d=r(2115);let u=e=>{let{t,data:r}=e,[a,i]=(0,d.useState)(!0),l=(0,d.useRef)(null);return(0,d.useEffect)(()=>{l.current&&(l.current.currentTime=10)},[]),(0,n.jsxs)("div",{className:"relative",children:[r.trailerUrl||r.videoThumb?(0,n.jsx)("video",{ref:l,className:"w-full object-cover brightness-[60%] transition duration-500",autoPlay:!0,muted:a,loop:!0,poster:r.pictureUrl,src:r.trailerUrl||r.videoThumb}):r.pictureUrl?(0,n.jsx)(o.default,{className:"w-full object-cover brightness-[60%] transition duration-500",src:r.pictureUrl,alt:r.title,width:1920,height:1080,sizes:"100vw",priority:!0}):null,(0,n.jsxs)("div",{className:"absolute transition-all duration-500 top-[55%] md:top-[65%] ml-4 md:ml-16 w-[100%]",children:[(0,n.jsx)("p",{className:"text-white text-1xl md:text-4xl h-full w-[100%] lg:text-4xl font-bold drop-shadow-xl mt-10",children:null==r?void 0:r.title}),(0,n.jsxs)("div",{className:"flex flex-row items-center mt-2 md:mt-4 gap-3 bottom-1",children:[(0,n.jsx)(c.A,{play:t.play,clipId:r.clip_id}),(0,n.jsx)("div",{className:"ml-auto mr-[25px] md:mr-20",children:(0,n.jsx)(s,{t:t,isMuted:a,onClick:()=>{i(!a)}})})]})]})]})};var m=r(7781),h=r(1144),p=r(5910),x=r(3569),f=r(902),w=r(742);let v=e=>{let{t,visible:r,onClose:a}=e,[i,l]=(0,d.useState)(!!r),[s,c]=(0,d.useState)(!1),{scene:o}=(0,m.A)(),v=(0,d.useCallback)(()=>{c(e=>!e)},[]),g=(0,f.Ym)(),{isDomainSpecific:b}=(0,p.k)();(0,d.useEffect)(()=>
1{l(!!r)},[r]);let j=(0,d.useCallback)(()=>{l(!1),setTimeout(()=>{a()},300)},[a]);return((0,d.useEffect)(()=>{if(!r)return;let e=e=>{"Escape"===e.key&&j()};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[r,j]),r&&o)?(0,n.jsx)("div",{className:"z-[100] transition duration-300 bg-black bg-opacity-80 flex justify-center items-center overflow-x-hidden overflow-y-auto fixed inset-0",onClick:j,role:"dialog","aria-modal":"true",children:(0,n.jsxs)("div",{className:"relative w-auto mx-auto max-w-[70rem] overflow-hidden",onClick:e=>e.stopPropagation(),children:[(0,n.jsx)("div",{onClick:j,className:"z-[100] cursor-pointer absolute top-3 right-3 h-10 w-10 rounded-full bg-black bg-opacity-70 flex items-center justify-center",children:(0,n.jsx)(x.A,{className:"text-white w-6"})}),(0,n.jsxs)("div",{className:"".concat(i?"scale-100":"scale-0"," transform duration-300 relative flex-auto bg-zinc-900 drop-shadow-md max-h-[90vh] rounded overflow-y-scroll overflow-x-hidden"),children:[(0,n.jsx)(u,{t:t,data:o}),(0,n.jsxs)("div",{className:"flex",children:[""!==o.description&&(0,n.jsxs)("div",{className:"px-6 md:px-12 py-8 ".concat(s?"max-h-[50vh] overflow-y-scroll":"w-1/2 md:w-2/3"),children:[(0,n.jsx)("p",{className:"descriptions text-white text-sm ".concat(s?"":"description"),onClick:()=>v(),children:o.description}),(0,n.jsx)("div",{onClick:()=>v(),className:"flex justify-center items-center cursor-pointer",children:(0,n.jsx)(w.yKB,{className:"w-12 h-12 text-white ".concat(s?"transform rotate-180":"")})})]}),(0,n.jsxs)("div",{className:"px-6 md:px-12 py-8 ".concat(""===o.description?"":s?"hidden":"w-1/2 md:w-1/3"),children:[(0,n.jsx)("div",{className:"flex flex-row items-center mt-3",children:(0,n.jsxs)("p",{className:"text-[#777] text-sm leading-5 ml-0 break-words",children:[(0,n.jsxs)("span",{className:"mr-2",children:[t.cast,":"]}),o.actors&&o.actors.length>0?o.actors.map((e,t)=>{let r="/actor/".concat(e.url_name);return(0,n.jsxs)("span",{children:[(0,n.jsx)(h.N_,{className:"text-white hover:underline transition",href:r,as:"en"===g||b?r:void 0,onClick:()=>j(),children:e.name}),t<o.actors.length-1?", ":""]},t)}):" N/A"]})}),o.directors&&o.directors.length>0?(0,n.jsx)("div",{className:"flex flex-row items-center mt-3",children:(0,n.jsxs)("p",{className:"text-[#777] text-sm leading-5 ml-0 break-words",children:[(0,n.jsxs)("span",{className:"mr-2",children:[t.directors,":"]}),o.directors.map((e,t)=>{let r="/director/".concat(e.url_name);return(0,n.jsxs)("span",{children:[(0,n.jsx)(h.N_,{className:"text-white hover:underline transition",href:r,as:"en"===g||b?r:void 0,onClick:()=>j(),children:e.name}),t<o.directors.length-1?", ":""]},t)})]})}):"",(0,n.jsx)("div",{className:"flex flex-row items-center mt-3",children:(0,n.jsxs)("p",{className:"text-[#777] text-sm leading-5 ml-0 break-words",children:[(0,n.jsxs)("span",{className:"mr-2",children:[t.categories,":"]}),o.categories&&o.categories.length>0?o.categories.map((e,t)=>{let r="/category/".concat(e.url_name);return(0,n.jsxs)("span",{children:[(0,n.jsx)(h.N_,{className:"text-white hover:underline transition",href:r,as:"en"===g||b?r:void 0,onClick:()=>j(),children:e.name}),t<o.categories.length-1?", ":""]},t)}):" N/A"]})})]})]})]})]})}):null}},4912:(e,t,r)=>{r.d(t,{A:()=>c});var n=r(5155),a=r(1144),i=r(5910),l=r(4779),s=r(902);let c=e=>{let{play:t,clipId:r}=e,c=(0,s.Ym)(),{isDomainSpecific:o}=(0,i.k)();return(0,n.jsx)(a.N_,{href:"/watch/".concat(r),as:"en"===c||o?"/watch/".concat(r):void 0,children:(0,n.jsxs)("button",{className:" bg-white rounded-md py-2 md:py-2 px-3 md:px-4 w-auto min-h-[48px] text-sm lg:text-lg font-semibold flex flex-row items-center hover:bg-neutral-300 transition ",children:[(0,n.jsx)(l.A,{className:"w-4 md:w-7 text-black mr-1"}),t]})})}},5910:(e,t,r)=>{r.d(t,{DomainLocaleProvider:()=>l,k:()=>s});var n=r(5155),a=r(2115);let i=(0,a.createContext)({isDomainSpecific:!1});function l(e){let{children:t,isDomainSpecific:r}=e;return(0,n.jsx)(i.Provider,{value:{isDomainSpecific:r},children:t})}function s(){return(0,a.useContext)(i)}},7781:(e,t,r)=>{r.d(t,{A:()=>n});let n=(0,r(5959).v)(e=>
1({clipId:void 0,isOpen:!1,openModal:t=>e({isOpen:!0,clipId:t}),closeModal:()=>e({isOpen:!1,clipId:void 0}),scene:void 0,setScene:t=>e({scene: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.