import"./jsx-runtime-Ba-TVyvO.js";import"./user.context-C-9VEOkj.js";import{g as l}from"./image.util-CV4yiA8d.js";const f={images_packshots:"packshot_1",images_ambience:"sfeer_1"},u=(e,r="images_packshots")=>{var n,c;const i=((n=e.assets)==null?void 0:n.filter(a=>a.family===r))??[],t=((c=e.assets)==null?void 0:c.find(a=>a.values&&a.values.some(m=>Array.isArray(m.value)&&m.value.includes(f[r]))))??i[0];return t==null?void 0:t.media},s=(e,r)=>{if(e&&e.length>0){const i=e.find(t=>t.family===r);if(i&&i.media)return i.media}return"9/8/3/8/98381d6dd3fd27e861768eaca72ebfc7fe5c70ff_Placeholder.jpg"},h=(e,r)=>!e||(e==null?void 0:e.length)===0?[]:e.filter(i=>i.family===r),p=e=>{var r;return l({slug:(r=e==null?void 0:e.find(i=>(i==null?void 0:i.family)==="images_packshots"))==null?void 0:r.media})},y=e=>{var i;const r=(i=e.assets)==null?void 0:i.filter(t=>t.family==="images_technical");return!r||r.length===0?[]:r.map(t=>({src:l({slug:t.media}),alt:t.family}))};export{u as a,s as b,y as c,h as d,p as g};