UNPKG

visionary-url

Version:

A lightweight library for generating image URLs with baked-in blurhash placeholders.

34 lines (33 loc) 869 B
var t = /* @__PURE__ */ ((s) => (s.AUTO = "auto", s.AVIF = "avif", s.JPEG = "jpeg", s.WEBP = "webp", s))(t || {}), l = /* @__PURE__ */ ((s) => (s.xs = "xs", s.sm = "sm", s.md = "md", s.lg = "lg", s.xl = "xl", s.xxl = "xxl", s["4k"] = "4k", s["5k"] = "5k", s.full = "full", s))(l || {}), O = /* @__PURE__ */ ((s) => (s.DEBUG = "debug", s.DOWNLOAD = "download", s.FOLLOW = "follow", s))(O || {}); const A = 4, r = "https://link.visionary.cloud", d = { debug: !1, format: t.AUTO, size: l.lg }, c = { [l.xs]: 160, [l.sm]: 320, [l.md]: 640, [l.lg]: 1280, [l.xl]: 1920, [l.xxl]: 2560, [l["4k"]]: 3840, [l["5k"]]: 5120, [l.full]: 0 }, D = Object.keys(c).reduce( (s, x) => { const u = x, E = c[u]; return E && (s[E] = u), s; }, {} ), _ = "!"; export { A as B, r as D, t as I, O as U, _ as V, l as a, d as b, c, D as d };