import { at as d, al as m, ak as n } from "./index-162fd1aa.mjs";
const u = Object.freeze({
  heroBanner: "hero-banner",
  featured: "featured",
  screenshot: "screenshot",
  productCover: "product-cover",
  productBanner: "product-banner"
}), t = class {
  static getScreenshotImages(e) {
    return e.filter((r) => r.as === u.screenshot);
  }
};
let f = t;
f.getMedia = (e, r) => {
  if (r && r.medias && r.medias.length > 0)
    return r.medias;
  if (e != null && e.images) {
    const a = [];
    return t.getScreenshotImages(e.images).forEach((o) => {
      const [s, c] = d.fromRaw(o);
      !c && s && a.push(s);
    }), [...a.filter(m.is), ...a.filter(n.is)];
  }
  return null;
};
export {
  f as I,
  u as a
};
