PageSourceSearch

https://www.evolution.com/assets/video-area-DAUSJ5CU.js

js evolution.com collected 2026-10-02 02:47:03 UTC 8,006 bytes, 1 lines download raw bytes

1import{j as a,r as v}from"./chunk-EPOLDU6W-BZDUsji2.js";import{b as f,H as h,C as y}from"./form-checkbox-B-c7Pp5q.js";import{u as j}from"./cookie-consent-CqUHVdhD.js";import{u as w,s as S}from"./down-arrow-BqoBwneT.js";import{a as g}from"./strapi-image-BSqa4O5D.js";var F=(e=>(e.Latest="latest",e.Manual="manual",e))(F||{}),V=(e=>(e.Four="four",e.Three="three",e.Two="two",e))(V||{}),I=(e=>(e.Primary="primary",e.Secondary="secondary",e))(I||{}),C=(e=>(e.ContentFirst="content_first",e.VideoFirst="video_first",e))(C||{}),T=(e=>(e.Single="single",e.TwoColumn="two_column",e))(T||{}),z=(e=>(e.Url="url",e.Video="video",e))(z||{});const B={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"RetrieveGameContents"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"limit"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Int"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"brand_document_id"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"gameContents"},arguments:[{kind:"Argument",name:{kind:"Name",value:"sort"},value:{kind:"ListValue",values:[{kind:"StringValue",value:"createdAt:desc",block:!1}]}},{kind:"Argument",name:{kind:"Name",value:"filters"},value:{kind:"ObjectValue",fields:[{kind:"ObjectField",name:{kind:"Name",value:"brand"},value:{kind:"ObjectValue",fields:[{kind:"ObjectField",name:{kind:"Name",value:"documentId"},value:{kind:"ObjectValue",fields:[{kind:"ObjectField",name:{kind:"Name",value:"eq"},value:{kind:"Variable",name:{kind:"Name",value:"brand_document_id"}}}]}}]}}]}},{kind:"Argument",name:{kind:"Name",value:"pagination"},value:{kind:"ObjectValue",fields:[{kind:"ObjectField",name:{kind:"Name",value:"limit"},value:{kind:"Variable",name:{kind:"Name",value:"limit"}}}]}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"GameContentBase"}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"StrapiImageFields"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"UploadFile"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"url"}},{kind:"Field",alias:{kind:"Name",value:"alt"},name:{kind:"Name",value:"alternativeText"}},{kind:"Field",name:{kind:"Name",value:"width"}},{kind:"Field",name:{kind:"Name",value:"height"}},{kind:"Field",name:{kind:"Name",value:"formats"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"GameContentBase"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GameContent"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"documentId"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"url"}},{kind:"Field",name:{kind:"Name",value:"horizontal_image"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"StrapiImageFields"}}]}},{kind:"Field",name:{kind:"Name",value:"square_image"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"StrapiImageFields"}}]}},{kind:"Field",name:{kind:"Name",value:"brand"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"documentId"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"slug"}},{kind:"Field",name:{kind:"Name",value:"logo"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"StrapiImageFields"}}]}}]}}]}}]};function D({image:e,alt:i,sizes:t,loading:l="lazy",decoding:d="async",...r}){return e!=null&&e.url?a.jsx("img",{src:e.url,srcSet:g(e),sizes:t,alt:i??e.alt??"",loading:l,decoding:d,...r}):null}function O({title:e,className:i,...t}){return a.jsxs("svg",{viewBox:"0 0 72 72",xmlns:"http://www.w3.org/2000/svg",fill:"none",className:i,"aria-label":e,...t,children:[a.jsx("circle",{cx:"36",cy:"36",r:"35",stroke:"currentColor",strokeWidth:"1"}),a.jsx("path",{fillRule:"evenodd",d:"M36 8a28 28 0 1 0 0 56 28 28 0 0 0 0-56Zm-6 14.5L50.5 36 30 49.5v-27Z",fill:"currentColor"})]})}function L({close:e,source_mode:i,src:t}){return f(!0),v.useEffect(()=>{function l(d){d.key==="Escape"&&e()}return document.addEventListener("keydown",l),()=>document.removeEventListener("keydown",l)},[e]),a.jsx("section",{className:"fixed w-dvw h-dvh bg-dark-trans
1parent-70 backdrop-blur-xl z-[200] top-0 left-0 overflow-hidden",children:a.jsxs("div",{className:"h-full flex flex-col max-w-7xl mx-auto",children:[a.jsxs("header",{className:"flex justify-between items-center px-4 h-16 xl:h-17.25 shrink-0",children:[a.jsx(h,{}),a.jsx(y,{title:"Close video modal",className:"text-white h-5.5 w-auto hover:cursor-pointer xl:hover:opacity-80",onClick:()=>e()})]}),a.jsx("div",{className:"flex-1 flex items-center justify-center px-4 pb-8",children:a.jsxs("div",{className:"relative w-full max-w-5xl",children:[a.jsx("div",{className:"absolute -inset-4 rounded-2xl opacity-50 blur-xl [background-image:var(--gradient-violet-shades)] pointer-events-none"}),a.jsxs("div",{className:"relative rounded-2xl border-4 border-white-transparent-20 overflow-hidden z-10",children:[i==="video"&&a.jsx("video",{className:"w-full aspect-video bg-black",src:t,autoPlay:!0,controls:!0,playsInline:!0}),i==="url"&&a.jsx("iframe",{className:"w-full aspect-video bg-black",src:t,title:"Video player",allow:"autoplay; encrypted-media",allowFullScreen:!0})]})]})})]})})}function q({source_mode:e,video:i,url:t,thumbnail:l,video_radius:d="rounded-tl-[100px] rounded-br-[100px] rounded-tr-2xl rounded-bl-2xl",offset_radius:r="rounded-tl-[108px] rounded-br-[108px] rounded-tr-2xl rounded-bl-2xl",offset_position:x="-top-2 -left-2",show_offset:p=!0}){var k;const[o,u]=v.useState(null),n=(k=w())==null?void 0:k.cookieConsentSetting,{categories:m,openPreferences:b}=j(),s=e==="video"?i==null?void 0:i.url:t,c=e==="url",N=!!s&&(!c||m.marketing);return a.jsxs(a.Fragment,{children:[o&&a.jsx(L,{close:()=>u(null),source_mode:e,src:o}),a.jsxs("div",{className:"relative block w-full",children:[p&&a.jsx("div",{className:`hidden lg:block absolute ${x} w-full h-full ${r} bg-blue-2 z-0`}),a.jsxs("div",{className:`relative aspect-video ${d} bg-light-grey-bg-2 overflow-hidden group/video z-10`,children:[l&&a.jsx(D,{image:l,sizes:"(min-width: 1024px) 896px, calc(100vw - 32px)",className:"absolute inset-0 w-full h-full object-cover"}),a.jsx("div",{className:`absolute inset-0 bg-black/40 transition-opacity duration-300 group-hover/video:opacity-0 ${d}`}),c&&!m.marketing&&a.jsx("div",{className:`absolute inset-0 z-20 flex items-center justify-center bg-dark-transparent-70 px-6 text-center backdrop-blur-sm ${d}`,children:a.jsxs("div",{className:"mx-auto flex max-w-md flex-col items-center gap-3 text-white",children:[(n==null?void 0:n.blocked_video_title)&&a.jsx("strong",{className:"h5",children:n.blocked_video_title}),(n==null?void 0:n.blocked_video_content)&&a.jsx("div",{className:"block-content text-sm text-white/80 [&_a]:text-white [&_a]:underline",dangerouslySetInnerHTML:{__html:S(n.blocked_video_content)}}),(n==null?void 0:n.blocked_video_button_label)&&a.jsx("button",{type:"button",onClick:b,className:"mt-5 text-sm text-white underline hover:no-underline appearance-none border-0 bg-transparent p-0 cursor-pointer",children:n.blocked_video_button_label})]})}),N&&s&&a.jsx("button",{type:"button",className:"absolute inset-0 flex w-full appearance-none items-center justify-center border-0 bg-transparent p-0 text-left cursor-pointer disabled:cursor-default",onClick:()=>u(s),children:a.jsx(O,{title:"Play video",className:"h-20 w-20 block text-white/70 group-hover/video:text-white/95 transition-colors duration-300 drop-shadow-lg play-button-pulse group-hover/video:[animation-play-state:paused]"})})]})]})]})}export{z as E,D as R,q as V,V as a,B as b,F as c,T as d,C as e,I as f};

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.