1import{_ as k}from"./Cna0AS5q.js";import{_ as y}from"./JEjKMtI4.js";import w from"./BPt9a8ku.js";import{s as _,p as j,q as p,o as a,c as s,h as u,a as t,i,j as d,y as C,b as l,T as z,w as f,x as N,d as T,t as I}from"./CcxssuL2.js";import{Y as V}from"./DMAMxXUr.js";import"./Bx2EM-6T.js";const q={class:"modal-video w-full max-w-6xl p-4"},B={class:"game-card-image"},S={class:"mask-wrapper"},$={key:0,class:"link-icon absolute top-0 right-0 p-5 text-main-200 z-30"},D={class:"logo relative z-10 block h-full max-w-48 lg:max-w-72 max-h-14 lg:max-h-40"},M={class:"game-card-content w-full flex items-center justify-start gap-10"},G={class:"game-title flex-shrink-0"},L={class:"relative stores flex items-center justify-start w-full gap-8"},F={__name:"GameCard",props:{game:{required:!0,type:Object}},setup(e){const n=_(!1),g=b=>{n.value=!0},c=()=>{n.value=!1},h=()=>{youtube.value.playVideo()};return(b,o)=>{const r=k,m=y,x=w,v=p("editable");return j((a(),s("article",{ref:"section",class:N(["game-card",{"has-link":e.game.content.websiteUrl}])},[(a(),u(z,{to:"body"},[d(n)?(a(),s("div",{key:0,onClick:C(c,["self"]),class:"fixed inset-0 bg-black/[.8] backdrop-blur z-[200] flex items-center justify-center"},[t("button",{class:"absolute top-5 right-5 text-white text-3xl",onClick:c}," Ã "),t("div",q,[l(d(V),{src:e.game.content.gameTrailer,onReady:h,ref:"youtube",width:"100%",height:"auto",class:"aspect-video"},null,8,["src"])])])):i("",!0)])),t("div",B,[l(m,{to:`/${e.game.full_slug}`},{default:f(()=>[t("div",S,[e.game.content.websiteUrl?(a(),s("div",$,o[0]||(o[0]=[t("i",{class:"fa-solid fa-link"},null,-1)]))):i("",!0),t("div",D,[l(r,{provider:"storyblok",width:"1920",height:"1080",fit:"in",quality:80,class:"relative z-10 w-full h-full object-contain object-center",src:e.game.content.logoImage.filename,alt:e.game.content.logoImage.alt},null,8,["src","alt"])]),l(r,{provider:"storyblok",width:"1920",height:"1080",fit:"in",quality:80,class:"image absolute z-0 top-0 left-0 w-full h-full object-cover object-center",src:e.game.content.featureImage.filename,alt:e.game.content.featureImage.alt},null,8,["src","alt"])])]),_:1},8,["to"])]),t("div",M,[t("h1",G,[l(m,{to:`/${e.game.full_slug}`},{default:f(()=>[T(I(e.game.name),1)]),_:1},8,["to"])]),t("div",L,[e.game.content.gameStores?(a(),u(x,{key:0,"field-data":e.game.content.gameStores},null,8,["field-data"])):i("",!0),e.game.content.gameTrailer?(a(),s("button",{key:1,onClick:g,class:"trailer-link text-3xl hover:scale-125 duration-200 ml-auto block relative"},o[1]||(o[1]=[t("i",{class:"fa-brands fa-youtube"},null,-1)]))):i("",!0)])])],2)),[[v,e.game]])}}};export{F as default};
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.