1import{_ as L}from"./D-O8IPkc.js";import{a as U,_ as O}from"./BaVtkI4d.js";import{_ as j}from"./BWjzj715.js";import R from"./DIiV_SD_.js";import{_ as q}from"./B6eEeLcO.js";import{aO as S,aZ as A,aS as r,a$ as g,b2 as m,bz as G,b1 as e,bI as N,b7 as i,bd as I,b8 as b,bg as D,bb as B,aM as k,b5 as M,bj as h,bi as Z,bh as H}from"./usJkKO7w.js";import{c as J,a as K,d as P,b as Q}from"./Cm_sUHna.js";import{u as W}from"./CWr3t3hw.js";import"./B3I0mlxT.js";import"./DwG9rr4v.js";import"./SbY25hyO.js";import"./BeNe5jDe.js";try{let n=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},u=new n.Error().stack;u&&(n._sentryDebugIds=n._sentryDebugIds||{},n._sentryDebugIds[u]="5eaccfa7-2647-4bef-a986-da846c333b5f",n._sentryDebugIdIdentifier="sentry-dbid-5eaccfa7-2647-4bef-a986-da846c333b5f")}catch{}const X=S({__name:"VMediaCard",props:{document:{type:Object,required:!0},sizes:{type:String},theme:[String,Boolean]},emits:["click"],setup(n,{emit:u}){const a=n,{t:d}=A(),_=u,c=r(()=>J(a.document)?"video":K(a.document)?"pdf":P(a.document)?"audio":Q(a.document)?"image":"unknown"),f=r(()=>{switch(c.value){case"video":return"Play";case"pdf":return"Download";case"audio":return"SoundOn";default:return"FullScreen"}}),C=r(()=>{switch(c.value){case"video":return d("media_cart_icon_label.video");case"pdf":return d("media_cart_icon_label.pdf");case"audio":return d("media_cart_icon_label.audio");default:return d("media_cart_icon_label.image")}}),v=r(()=>c.value==="pdf"),p=D(),l=r(()=>[p.root,p[`root--type-${c.value}`]]);function V(o){c.value!=="pdf"&&_("click",o)}return(o,t)=>{const y=R,$=q;return m(),g(G(e(v)?e(N):"div"),{class:i(e(l)),document:e(v)?n.document:void 0,onClick:V},{default:I(()=>[e(c)==="audio"?(m(),g(y,{key:0,document:n.document,sizes:"xs:100vw md:55vw lg:30vw hd:30vw"},null,8,["document"])):(m(),g(y,{key:1,document:n.document,sizes:n.sizes},null,8,["document","sizes"])),b($,{"icon-name":e(f),"aria-label":e(C),class:i(e(p).button),theme:n.theme},null,8,["icon-name","aria-label","class","theme"])]),_:1},8,["class","document"])}}}),Y="_root_1n8is_5",ee="_placeholder_1n8is_11",ne="_button_1n8is_17",oe={root:Y,placeholder:ee,button:ne},te={$style:oe},se=B(X,[["__cssModules",te]]),ae={key:0},x="dark",le=S({__name:"VMediaGallery",props:{title:{},hideTitle:{type:Boolean},medias:{},seasonSlug:{}},setup(n){const u=n,a=k(0),d=k(u.medias.length||1),_=k(!1),c=r(()=>u.medias.filter(o=>o.type!=="pdf")),f=r(()=>!!c.value.length),C=r(()=>u.medias.length===1),{open:v}=W();function p(o,t){v(c.value,o)}const l=D(),V=r(()=>[l.root,f.value&&l["root--viewer-enabled"]]);return(o,t)=>{const y=L,$=U,T=j,z=se,E=O;return m(),M("section",{class:i(e(V))},[b(y,{class:i(e(l).pattern),season:o.seasonSlug||void 0},null,8,["class","season"]),b(T,{title:o.hideTitle?void 0:o.title,class:i([o.$attrs.class])},{default:I(s=>[b($,{modelValue:e(a),"onUpdate:modelValue":t[0]||(t[0]=w=>h(a)?a.value=w:null),"snap-length":e(d),class:i([e(l).controls,e(_)&&e(l)["controls--enabled"],s]),theme:x},null,8,["modelValue","snap-length","class"])]),_:1},8,["title","class"]),e(C)?(m(),M("div",ae,[b(z,{document:o.medias[0],class:i(e(l)["solo-media"]),theme:x,onClick:t[1]||(t[1]=s=>e(f)&&p(0))},null,8,["document","class"])])):(m(),g(E,{key:1,index:e(a),"onUpdate:index":t[2]||(t[2]=s=>h(a)?a.value=s:null),"snap-length":e(d),"onUpdate:snapLength":t[3]||(t[3]=s=>h(d)?d.value=s:null),enabled:e(_),"onUpdate:enabled":t[4]||(t[4]=s=>h(_)?_.value=s:null),class:i(e(l).carousel)},{default:I(s=>[(m(!0),M(Z,null,H(o.medias,(w,F)=>(m(),g(z,{key:w["@id"],document:w,class:i([s==null?void 0:s.slideClass,e(l).media]),theme:x,onClick:pe=>e(f)&&p(F)},null,8,["document","class","onClick"]))),128))]),_:1},8,["index","snap-length","enabled","class"]))],2)}}}),de="_root_1ggdm_6",ce="_pattern_1ggdm_31",ie="_controls_1ggdm_49",re="_carousel_1ggdm_56",ue="_media_1ggdm_72",me={root:de,pattern:ce,controls:ie,"controls--enabled":"_controls--enabled_1ggdm_52",carousel:re,media:ue,"root--viewer-enabled":"_root--viewer-enabled_1ggdm_83","solo-media":"_solo-media_1ggdm_87"},_e={$style:me},xe=B(le,[["__cssModules",_e]]);export{xe 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.