1import{d as $,l as j,aY as z,m as x,af as H,i as t,g as s,h as S,x as D,t as n,G as P,A,P as Y,E as i,aZ as Z,r as G}from"./DZ3-0Met.js";import{u as K}from"./Dj7_hQJo.js";import{u as O}from"./DmNarljn.js";const R=["src","type"],q=["src","srcset"],J=["innerHTML"],Q={key:3,class:"ai-notice"},W=10,se=$({__name:"CmsElementImage",props:{content:{}},setup(B){const l=B,{getUrlPrefix:I}=O(),{containerStyle:T,displayMode:a,imageContainerAttrs:U,imageAttrs:o,imageLink:L,isVideoElement:M,mimeType:F}=K(l.content),c=j(null),{width:m,height:u}=z(c);function d(e){return e?Math.ceil(e/100)*100:W}const N=x(()=>{const e=m.value>u.value?`width=${d(m.value)}`:`height=${d(u.value)}`;return`${o.value.src}?${e}&fit=crop,smart`}),V=x(()=>{const e=Object.assign({},U.value);return e!=null&&e.href&&(e.href=H(e.href,I()).path),e});return(e,r)=>t(o).src?(s(),S(G(t(L).url?"a":"div"),Z({key:0,class:"cms-element-image relative w-full",style:t(T)},V.value),{default:D(()=>{var g,h,p,v,f,_,y,k,w,C,E,b;return[t(M)?(s(),n("video",{key:0,controls:"",class:P(["h-full w-full",{"absolute inset-0":["cover","stretch"].includes(t(a)),"object-cover":t(a)==="cover"}])},[A("source",{src:t(o).src,type:t(F)},null,8,R),r[0]||(r[0]=Y(" Your browser does not support the video tag. "))],2)):(s(),n("img",{key:1,ref_key:"imageElement",ref:c,loading:"lazy",class:P(["w-full",[{"absolute inset-0":["cover","stretch"].includes(t(a)),"object-cover":t(a)==="cover"},(p=(h=(g=l.content)==null?void 0:g.config)==null?void 0:h.verticalAlign)==null?void 0:p.value]]),src:N.value,srcset:t(o).srcset},null,10,q)),(_=(f=(v=e.content.data)==null?void 0:v.media)==null?void 0:f.customFields)!=null&&_.custom_media_slidertext?(s(),n("div",{key:2,class:"custom-text",innerHTML:(w=(k=(y=e.content.data)==null?void 0:y.media)==null?void 0:k.customFields)==null?void 0:w.custom_media_slidertext},null,8,J)):i("",!0),(b=(E=(C=e.content.data)==null?void 0:C.media)==null?void 0:E.customFields)!=null&&b.custom_media_ai?(s(),n("div",Q,r[1]||(r[1]=[A("img",{src:"https://media.mobile-wohnspass.de/CIP/mediadelivery/rendition/102_7658/",alt:"KI-generiertes Bild",width:"45",height:"45",style:{height:"auto","max-width":"none",margin:"0 0 0 10px",padding:"0"},"data-da-style":"true"},null,-1)]))):i("",!0)]}),_:1},16,["style"])):i("",!0)}});export{se 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.