1import{_ as de}from"./Ty0STikc.js";import{_ as me}from"./CWcgGPZi.js";import{_ as pe}from"./XnNGS9zF.js";import{u as ue,_ as he}from"./sDTeiqBx.js";import{g as f}from"./CVLVhzRH.js";import{N as ge,W,ag as ve,a0 as fe,P as be,a6 as b,a8 as o,ak as m,af as s,a9 as k,ai as G,aj as H,ah as n,at as w,au as _,a7 as l,av as i,ab as J,ap as K,ay as ke}from"./Cc1FFHbL.js";import{u as y}from"./CD0xSsDw.js";import{e as we}from"./Dyq4LZfc.js";import{u as _e}from"./C1WT1-gB.js";import{_ as ye}from"./DlAUqK2U.js";import"./BIMK04SE.js";const Se={class:"pt-spacing-4 grid max-xl:pb-4 xl:grid-cols-3 xl:pt-36"},Te={class:"pt-spacing-8 pb-spacing-5 px-spacing-margin flex items-end"},Fe={class:"bg-theme-background hidden grid-cols-8 items-end xl:col-span-2 xl:grid"},xe={class:"overflow-hidden"},Be={class:"aspect-square pb-4"},je={class:"xl:hidden"},Ce=["aria-label"],Ne={class:"embla__container flex"},Oe={class:"overflow-hidden"},Pe={class:"aspect-square pb-4"},ze=ge({inheritAttrs:!1,__name:"FeaturedExhibitions",props:{data:{}},setup(Q){const S=Q,[U,X]=we({loop:!1,align:"start",containScroll:"trimSnaps",inViewThreshold:.7,watchFocus:!1,breakpoints:{"(min-width: 1280px)":{active:!1}}}),{selectedIndex:Y,slideCount:T,canScrollPrev:Z,canScrollNext:ee,scrollPrev:se,scrollNext:ae,isSlideInert:oe,statusLabel:te}=ue({api:X,count:()=>S.data.entries.length}),le=W(()=>Object.fromEntries(Object.entries(ke()).filter(([e])=>!["class"].includes(e)))),g=ve(),re=fe(),{isFamily:r}=_e(),F=W(()=>r("kronborg")||r("krigsmuseet")?"flex h-full w-full items-center justify-center":""),c=be([...Array(S.data.entries.length).keys()]);function ne(e,v){const p=e[v];typeof p=="number"&&(e.splice(v,1),e.splice(0,0,p))}function ie(e){ne(c.value,c.value.indexOf(e))}return(e,v)=>{var j,C,N,O,P,z,I,$,A,E,V,L,R,M,q,D;const p=de,x=me,B=pe,ce=he;return l(),b("div",_({style:("getThemeStyles"in e?e.getThemeStyles:s(f))({impactForeground:((C=(j=e.data)==null?void 0:j.theme)==null?void 0:C.impactForeground)||((O=(N=s(g))==null?void 0:N.theme)==null?void 0:O.primaryForeground)||"var(--primary-color-1)",impactBackgroun
1d:((z=(P=e.data)==null?void 0:P.theme)==null?void 0:z.impactForeground)||(($=(I=s(g))==null?void 0:I.theme)==null?void 0:$.primaryBackground)||"var(--primary-color-2)",primaryBackground:((E=(A=e.data)==null?void 0:A.theme)==null?void 0:E.primaryBackground)||((L=(V=s(g))==null?void 0:V.theme)==null?void 0:L.impactBackground)||"var(--primary-color-3)",primaryForeground:((M=(R=e.data)==null?void 0:R.theme)==null?void 0:M.primaryForeground)||((D=(q=s(g))==null?void 0:q.theme)==null?void 0:D.impactForeground)||"var(--primary-color-4)"}),class:("cn"in e?e.cn:s(i))("bg-theme-background text-theme-text w-full overflow-hidden",e.$attrs.class||"")},s(le)),[o("div",Se,[o("div",Te,[o("h2",{class:m(("cn"in e?e.cn:s(i))(("useTypography"in e?e.useTypography:s(y))("h3")))},k(e.data.title),3)]),o("div",Fe,[(l(!0),b(G,null,H(e.data.entries,(a,t)=>{var u;return l(),n(B,{to:((u=a.cta)==null?void 0:u.url)||"#",key:a.id,class:m(["relative row-start-1 grid shrink-0 snap-center bg-[var(--theme-background)] p-4 transition-all max-xl:max-w-[85vw]",("cn"in e?e.cn:s(i))({"xl:brightness-95":s(c).indexOf(t)===1,"xl:brightness-90":s(c).indexOf(t)===2},{"mr-spacing-margin col-span-5 col-end-9":e.data.entries.length===1&&t===0},{"col-span-3 col-start-3":e.data.entries.length===2&&t===0,"col-span-4 col-end-9":e.data.entries.length===2&&t===1},{"col-span-3 col-start-1":e.data.entries.length===3&&t===0,"col-span-4 col-start-3":e.data.entries.length===3&&t===1,"col-span-3 col-end-9":e.data.entries.length===3&&t===2})]),style:K({...("getThemeStyles"in e?e.getThemeStyles:s(f))(a.theme),"z-index":s(c).length-s(c).indexOf(t)}),onMouseover:d=>ie(t)},{default:J(()=>{var d,h;return[o("div",xe,[o("div",Be,[a.media.type==="image"?(l(),n(p,{key:0,src:a.media.src,alt:a.media.alt,crop:(d=a==null?void 0:a.media)==null?void 0:d.crop,hotspot:(h=a==null?void 0:a.media)==null?void 0:h.hotspot,sizes:"xs:100vw sm:100vw md:100vw lg:50vw xl:50vw 2xl:50vw",class:"h-full w-full object-cover"},null,8,["src","alt","crop","hotspot"])):a.media.type==="video"?(l(),n(x,_({key:1,ref_for:!0},a.media,{muted:"",autoplay:"",loop:"",class:"pointer-events-none h-full w-full object-cover",controls:!1}),null,16)):w("",!0)])]),o("div",{class:m(("cn"in e?e.cn:s(i))("text-theme-text overflow-x-hidden pb-0.5",s(F)))},[o("div",{class:m(["overflow-hidden hyphens-auto text-balance",("cn"in e?e.cn:s(i))(("useTypography"in e?e.useTypography:s(y))(s(r)("kronborg")?"h2s":a.style),{"text-center":s(r)("kronborg")||s(r)("krigsmuseet")})])},k(a.title),3)],2)]}),_:2},1032,["to","style","onMouseover","class"])}),128))]),o("div",je,[o("div",{class:"embla overflow-hidden",ref_key:"emblaRef",ref:U,role:"region","aria-roledescription":"carousel","aria-label":e.data.title},[o("div",Ne,[(l(!0),b(G,null,H(e.data.entries,(a,t)=>{var u;return l(),n(B,{to:((u=a.cta)==null?void 0:u.url)||"#",key:a.id,class:"embla__slide relative self-end","aria-label":`${e.$t("general.link to")} ${a.title}`,inert:s(oe)(t)||void 0},{default:J(()=>{var d,h;return[o("div",{class:"relative grid bg-[var(--theme-background)] p-4",style:K(("getThemeStyles"in e?e.getThemeStyles:s(f))(a.theme))},[o("div",Oe,[o("div",Pe,[a.media.type==="image"?(l(),n(p,{key:0,src:a.media.src,alt:a.media.alt,crop:(d=a==null?void 0:a.media)==null?void 0:d.crop,hotspot:(h=a==null?void 0:a.media)==null?void 0:h.hotspot,sizes:"xs:100vw sm:100vw md:100vw lg:50vw xl:50vw 2xl:50vw",class:"h-full w-full object-cover"},null,8,["src","alt","crop","hotspot"])):a.media.type==="video"?(l(),n(x,_({key:1,ref_for:!0},a.media,{muted:"",autoplay:"",loop:"",class:"h-full w-full object-cover",controls:!1}),null,16)):w("",!0)])]),o("div",{class:m(("cn"in e?e.cn:s(i))("text-theme-text overflow-x-hidden pb-0.5",s(F)))},[o("div",{class:m(["overflow-hidden hyphens-auto text-balance",("cn"in e?e.cn:s(i))(("useTypography"in e?e.useTypography:s(y))(s(re)=="kronborg"?"h2s":a.style),{"text-center":s(r)("kronborg")||s(r)("krigsmuseet")})])},k(a.title),3)],2)],4)]}),_:2},1032,["to","aria-label","inert"])}),128))])],8,Ce),s(T)>1?(l(),n(ce,{key:0,class:"featured-controls px-spacing-margin mt-3","can-scroll-prev":s(Z),"can-scroll-next":s(ee),"selected-index":s(Y),"slide-count":s(T),"position-label":s(te),onPrev:s(se),onNext:s(ae)},null,8,["can-scroll-prev","can-scroll-next","selected-index","slide-count","position-label","onPrev","onNext"])):w("",!0)])])],16)}}}),Ge=Object.assign(ye(ze,[["__scopeId","data-v-b7263b38"]]),{__name:"BlocksFeaturedExhibitions"});export{Ge 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.