import { c as l } from "./capitalize.CNStXZBq.js";
const i = window.location.origin.includes("localhost:") ? "https://local.orangelogic.com" : window.location.origin;
function B(a, o, n, d = i) {
  const e = new URL(d + "/" + a);
  return Array.isArray(n) ? n.forEach((t) => {
    t[1] && e.searchParams.append(t[0], t[1]);
  }) : n && Object.keys(n).forEach((t) => {
    n[t] && e.searchParams.append(t, n[t]);
  }), fetch(e, o);
}
var C = /* @__PURE__ */ ((a) => (a.Desktop = "desktop", a.Mobile = "mobile", a.Tablet = "tablet", a))(C || {});
const c = {
  canvasWidth: "",
  height: "",
  id: "desktop",
  maxWidth: "",
  name: l(
    "desktop"
    /* Desktop */
  )
}, h = {
  canvasWidth: "770px",
  height: "",
  id: "tablet",
  maxWidth: "1280px",
  name: l(
    "tablet"
    /* Tablet */
  )
}, u = {
  canvasWidth: "320px",
  height: "",
  id: "mobile",
  maxWidth: "480px",
  name: l(
    "mobile"
    /* Mobile */
  )
}, L = [c, h, u];
var A = /* @__PURE__ */ ((a) => (a.All = "ALL", a.CanDelete = "CanDelete", a.CanDownload = "CanDownload", a.CanFind = "CanFind", a.CanManageRights = "CanManageRights", a.CanMove = "CanMove", a.CanRead = "CanRead", a.CanReadAll = "CanReadAll", a.CanReadAndWrite = "CanReadAndWrite", a.CanReadLarge = "CanReadLarge", a.CanReadMedium = "CanReadMedium", a.CanReadOriginal = "CanReadOriginal", a.CanShare = "CanShare", a.CanUpload = "CanUpload", a.CanWrite = "CanWrite", a.None = "NONE", a))(A || {}), g = /* @__PURE__ */ ((a) => (a.All = "all", a.Audio = "audio", a.Image = "image", a.Other = "other", a.Video = "video", a))(g || {}), R = /* @__PURE__ */ ((a) => (a.Content = "content", a.Template = "template", a))(R || {}), b = /* @__PURE__ */ ((a) => (a.Administrator = "Administrator", a.Designer = "Designer", a.Editor = "Editor", a))(b || {}), r = /* @__PURE__ */ ((a) => (a.Accordion = "BlockAccordion", a.Analytics = "BlockAnalytics", a.Button = "BlockButton", a.Carousel = "BlockCarousel", a.ColorSwatches = "BlockColorSwatches", a.Column = "BlockCell", a.ColumnGroup = "BlockColumns", a.Divider = "BlockDivider", a.FontKit = "BlockFontKit", a.Gallery = "BlockGallery", a.Header = "BlockHeader", a.Image = "BlockImage", a.RichText = "BlockRichText", a.SearchBox = "BlockSearchBox", a.TabGroup = "BlockTabs", a.Text = "BlockText", a.Timeline = "BlockTimeline", a.Video = "BlockVideo", a))(r || {});
const f = Object.values(r).filter(
  (a) => a !== "BlockCell"
  /* Column */
);
var s = /* @__PURE__ */ ((a) => (a.Carousel = "carousel", a.Gallery = "gallery", a))(s || {}), v = /* @__PURE__ */ ((a) => (a.Templates = "TEMPLATES", a.TranslatableAttributes = "TRANSLATABLE_ATTRIBUTES", a.TranslatableTexts = "TRANSLATABLE_TEXTS", a))(v || {});
export {
  g as A,
  r as B,
  C as D,
  R as E,
  A as P,
  b as T,
  s as a,
  v as b,
  f as c,
  L as d,
  B as f
};
