PageSourceSearch

https://hawa.ch/_nuxt/CyyL8Wg9.js

js hawa.ch collected 2026-09-26 13:36:25 UTC 2,621 bytes, 1 lines download raw bytes

1import{u as x}from"./B-Vf6eiJ.js";import"./wPNx5fiq.js";import{d as w,t as h,q as o,i as b,m as $,a5 as S,k as l,a6 as _,l as m,n as c,p as y,F as M,B as k}from"./ddoXRBB7.js";import"./C1QXhq23.js";import"./DLpf63fI.js";import"./DqUgnPJh.js";import"./CsS8sBvC.js";import"./BG1lo1UI.js";import"./BGaxQGXC.js";import"./BMOpn1D4.js";import"./DDHQ_-7n.js";import"./DyoigUif.js";import"./C6o0Dokj.js";const B=["srcset","media"],I=w({__name:"StoryblokImage.client",props:{image:{},ratio:{},lightbox:{type:Boolean},lightboxContrast:{},border:{type:Boolean},caption:{},lightboxHeadline:{},description:{},imageSlot:{},customSourceSet:{},componentName:{}},setup(p){const t=p,n=h(),u=h(!1);x(n,e=>{e.forEach(i=>{i.type==="attributes"&&i.attributeName==="open"&&n.value&&(u.value=n.value.hasAttribute("open"))})},{attributes:!0,attributeFilter:["open"],attributeOldValue:!0});const d=o(()=>u.value?t.lightboxHeadline:t.caption),s=o(()=>!(t!=null&&t.ratio)||t.ratio==="svg"?{x:1,y:1}:{x:parseInt(t.ratio.split(":")[0]),y:parseInt(t.ratio.split(":")[1])}),a=o(()=>{const e=parseInt(t.image.filename.split("/")[5].split("x")[0]),i=parseInt(t.image.filename.split("/")[5].split("x")[1]);if(t.ratio==="svg")return{width:e,height:i};const r=Math.max(e,i);return e>=i?{width:r,height:Math.round(r*s.value.y/s.value.x)}:{width:Math.round(r*s.value.x/s.value.y),height:r}}),g=o(()=>`${t.image.filename}/m/${a.value.width}x${a.value.height}/smart`),v=o(()=>t.customSourceSet&&t.customSourceSet.length?t.customSourceSet.map(e=>({...e,src:`${t.image.filename}/m/${e.width}x${e.height}/smart`})).sort((e,i)=>i.viewport-e.viewport):[{viewport:0,width:a.value.width,height:a.value.height,src:`${t.image.filename}/m/${Math.round(a.value.width/3)}x${Math.round(a.value.height/3)}/smart 3x`},{viewport:400,width:a.value.width*2,height:a.value.height*2,src:`${t.image.filename}/m/${Math.round(a.value.width/2)}x${Math.round(a.value.height/2)}/smart 3x`},{viewport:639,width:a.value.width*3,height:a.value.height*3,src:`${t.image.filename}/m/${a.value.width}x${a.value.height}/smart 3x`}]);return(e,i)=>(m(),b(_(t.componentName||"c4d-image"),S({ref_key:"imageRef",ref:n,slot:t.imageSlot,alt:e.image.alt,heading:l(d),copy:e.description,"default-src":l(g),"lightbox-contrast":e.lightboxContrast||"light"},{...e.lightbox?{lightbox:!0}:{},...e.border?{border:!0}:{}}),{default:$(()=>[(m(!0),c(M,null,y(l(v),(r,f)=>(m(),c("c4d-image-item",{key:f,srcset:r.src,media:`(min-width:${r.viewport}px)`},null,8,B))),128))]),_:1},16,["slot","alt","heading","copy","default-src","lightbox-contrast"]))}}),j=k(I,[["__scopeId","data-v-c69f2d76"]]);export{j 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.