1import{_ as V}from"./nuxt-img.DjBIARNP.js";import{_ as A}from"./UiPhotoCredit.vue.DRor7R4P.js";import{_ as I}from"./UiCorner.vue.DldYtHjC.js";import{u as N}from"./useViewport.BFeU8WSx.js";import{E as S}from"./animations.BNBwyUZT.js";import{i as U}from"./in-view.es.DhIB0Lch.js";import{a as j}from"./animate.es.CzQxnQKr.js";import{d as Q,r as x,A as X,l as $,Q as M,b as v,f as n,g as e,m as P,e as _,n as h,R as q,o as l}from"./entry.SA0OsS3s.js";const D={key:0,class:"image-overlay","aria-hidden":"true"},Z=Q({__name:"UiImage",props:{image:{default:void 0},width:{default:"auto"},height:{default:"auto"},preset:{default:void 0},loading:{default:"lazy"},preload:{type:Boolean,default:!1},addOverlay:{type:Boolean,default:!1},sizes:{default:void 0},cutCorner:{default:void 0},cornerSize:{}},setup(u){const s=x(null),g=u,{preset:o,sizes:y,image:r,cutCorner:p,addOverlay:w,height:z,loading:C,preload:b,width:k}=X(g),c=x(!1),O=$(()=>{switch(o.value){case"narrow":case"card":return` 2 xxs:290px 3 xs:464px 4 sm:562px 5 md:422px 6 lg:318px 7 xl:338px 8 `;case"drawer":return` 9 xs:100vw 10 sm:100vw 11 md:560px 12 lg:560px 13 xl:560px 14 xxl:560px 15 2xl:560px 16 `;default:return y.value}}),d=q("inCarousel",!1);M(()=>
16{if(d){const a=s.value;a&&(c.value=N(a),c.value?m(a):a==null||a.classList.remove("opacity-0"))}});const B=a=>{if(d){const t=s.value;a.type==="load"&&t&&m(t)}},m=a=>{c.value&&U(a,({isIntersecting:t})=>{t&&j(s.value,{opacity:[0,1],transformOrigin:"bottom"},{duration:1.7,easing:S}).finished.then(()=>{var i;(i=s.value)==null||i.classList.remove("opacity-0")})})};return(a,t)=>{var f;const i=V,E=A,L=I;return(f=e(r))!=null&&f.src?(l(),v("div",{key:0,ref_key:"cardRef",ref:s,class:h(["ui-image relative block overflow-hidden",{"aspect-5-7":e(o)==="card","aspect-5-3":e(o)==="narrow","aspect-4-3":e(o)==="drawer","opacity-0":e(d)}])},[P(i,{src:e(r).src,alt:e(r).alt,width:e(k),height:e(z),preload:e(b),sizes:e(O),preset:e(o),loading:e(C),provider:"cloudinary",class:h({"absolute object-cover w-full h-full":!e(o)}),onLoad:t[0]||(t[0]=R=>B(R))},null,8,["src","alt","width","height","preload","sizes","preset","loading","class"]),e(w)?(l(),v("span",D)):n("",!0),e(r).photoCredit?(l(),_(E,{key:1,credit:e(r).photoCredit,class:"absolute right-0 bottom-0"},null,8,["credit"])):n("",!0),e(p)?(l(),_(L,{key:2,position:e(p),"size-based-on":u.cornerSize},null,8,["position","size-based-on"])):n("",!0)],2)):n("",!0)}}});export{Z as _};
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.