1import{D as e,E as t,Gt as i,J as a,Lt as l,M as s,N as r,Nt as o,St as n,T as m,Tt as c,_ as g,hn as d,it as h,st as u,w as p}from"./B8XHxhss.js";import{_ as f}from"#entry";import{t as _}from"./DXNx4Ry-.js";import{t as k}from"./tKPW4sCS.js";import{t as x}from"./CglaHkEh.js";import{t as v}from"./B9MurUDX.js";import{t as y}from"./BEDGnSvs.js";import{t as b}from"./DnR683cS2.js";import{t as j}from"./IQ2a-Far.js";var w=["id"],A=["innerHTML"],E={class:"grid gap-4xs >=960:gap-2xs grid-cols-4 overflow-hidden print:!hidden"},L=["aria-label","data-lightbox-image","onClick"],T={key:0,class:"flex justify-center mt-md"},z=Object.assign({inheritAttrs:!1},{__name:"BlockListBlocksBlockListImageGallery",props:{id:String,context:String,title:String,label:String,settings:Object,items:Array},setup(z){const I=l(z.items?.length<=12),G=l(-1);return n(G,()=>{G.value>=12&&(I.value=!0)}),(l,n)=>{const S=y,N=x,V=_,M=v,B=b,O=j;return h(),e("div",a({id:z.id,class:"c-block-list-image-gallery"},("useAttrsSome"in l?l.useAttrsSome:i(k))(["style","class","data-n-ids"],l.$attrs)),[z.title?(h(),m(S,{key:0,overline:z.label,"long-read-id":z.settings?.includeInToc&&z.id,"long-read-title":z.settings?.includeInToc&&z.title},{default:c(()=>
1[p("span",{innerHTML:z.title},null,8,A)]),_:1},8,["overline","long-read-id","long-read-title"])):t("",!0),z.items?.length?(h(),m(B,{key:1,modelValue:i(G),"onUpdate:modelValue":n[1]||(n[1]=e=>o(G)?G.value=e:null),items:z.items},{default:c(({openAtIndex:a})=>[p("div",E,[(h(!0),e(g,null,u(i(I)?z.items:z.items.slice(0,12),(s,o)=>(h(),e("button",{key:s.key,class:"rounded-mediaSm overflow-hidden aspect-ratio-1/1 >=960:aspect-ratio-16/9","aria-label":[("localize"in l?l.localize:i(f))("OPEN_GALLERY_IN_LARGE_VIEW_AT_IMAGE_X",{capitalize:!0,populate:[o+1]}),s.image.altText&&`${("localize"in l?l.localize:i(f))("IMAGE")}: ${s.image.altText}`].filter(Boolean).join(" "),"data-lightbox-image":o,onClick:()=>a(o)},[s.image?.cropUrl||s.image?.url?(h(),e(g,{key:0},[r(N,{class:"c-block-list-image-gallery__image <960:hidden !w-full !h-full",fit:"cover",sizes:"212px >=960:25vw >=1920:500px",src:s.image.cropUrl||s.image.url,width:s.image.width,height:s.image.height,alt:s.image.altText,ratio:16/9},null,8,["src","width","height","alt"]),r(N,{class:"c-block-list-image-gallery__image >=960:hidden",fit:"cover",sizes:"25vw >=960:212px",src:s.image.cropUrl||s.image.url,width:s.image.width,height:s.image.height,alt:s.image.altText,ratio:1},null,8,["src","width","height","alt"])],64)):t("",!0)],8,L))),128))]),i(I)?t("",!0):(h(),e("footer",T,[r(M,{onClick:n[0]||(n[0]=e=>I.value=!0)},{icon:c(()=>[r(V,{name:"expand-more",class:"flex-shrink-0"})]),default:c(()=>[s(d(("localize"in l?l.localize:i(f))("OPEN_GALLERY_IN_LARGE_VIEW",{capitalize:!0}))+" ("+d(z.items.length-12)+") ",1)]),_:1})]))]),_:1},8,["modelValue","items"])):t("",!0),z.items?.length?(h(),m(O,{key:2,items:z.items},null,8,["items"])):t("",!0)],16,w)}}});export{z 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.