const q = [
  { label: "Inline Value", value: "inline" },
  { label: "Responsive - 21x9", value: "21x9" },
  { label: "Responsive - 16x9", value: "16x9" },
  { label: "Responsive - 4x3", value: "4x3" },
  { label: "Responsive - 1x1", value: "1x1" }
], p = '[data-theme="dark"], .dark, .editora-theme-dark';
let c = null;
const y = /* @__PURE__ */ new WeakMap(), d = (e) => (y.has(e) || y.set(e, {
  dialogElement: null,
  escapeHandler: null,
  savedRange: null,
  activeTab: "general",
  formData: {
    src: "",
    selectedSize: "inline",
    width: "100%",
    height: "400px",
    constrainProportions: !0,
    name: "",
    title: "",
    longDescription: "",
    descriptionUrl: "",
    showBorder: !0,
    enableScrollbar: !0
  }
}), y.get(e));
function A(e) {
  if (e != null && e.matches(p) || e != null && e.closest(p))
    return !0;
  const t = document.activeElement;
  return t != null && t.closest(p) ? !0 : document.body.matches(p) || document.documentElement.matches(p);
}
function T(e) {
  return e ? e.nodeType === Node.ELEMENT_NODE ? e : e.parentElement : null;
}
function M(e) {
  const t = e == null ? void 0 : e.editorElement;
  if (t instanceof HTMLElement) return t;
  const r = e == null ? void 0 : e.contentElement;
  if (r instanceof HTMLElement) {
    const i = r.closest("[data-editora-editor], .rte-editor, .editora-editor, editora-editor");
    return i instanceof HTMLElement ? i : r;
  }
  const o = window.__editoraCommandEditorRoot;
  if (o instanceof HTMLElement) return o;
  const n = window.getSelection();
  if (n && n.rangeCount > 0) {
    const i = T(n.getRangeAt(0).startContainer), l = i == null ? void 0 : i.closest("[data-editora-editor], .rte-editor, .editora-editor, editora-editor");
    if (l instanceof HTMLElement) return l;
  }
  const a = document.activeElement;
  if (a instanceof HTMLElement) {
    const i = a.closest("[data-editora-editor], .rte-editor, .editora-editor, editora-editor");
    if (i instanceof HTMLElement) return i;
  }
  return document.querySelector("[data-editora-editor], .rte-editor, .editora-editor, editora-editor");
}
function I(e) {
  return e.getAttribute("contenteditable") === "true" ? e : e.querySelector('.rte-content, .editora-content, [contenteditable="true"]');
}
function v(e) {
  const t = T(e);
  return t == null ? void 0 : t.closest('.rte-content, .editora-content, [contenteditable="true"]');
}
function j(e) {
  const t = window.getSelection();
  if (!t || t.rangeCount === 0) return null;
  const r = t.getRangeAt(0);
  return !e.contains(r.startContainer) || !e.contains(r.endContainer) ? null : r.cloneRange();
}
function H(e, t, r) {
  if (t !== r) {
    if (typeof window.execEditorCommand == "function") {
      window.execEditorCommand("recordDomTransaction", e, t, r);
      return;
    }
    if (typeof window.executeEditorCommand == "function")
      try {
        window.executeEditorCommand("recordDomTransaction", { editor: e, beforeHTML: t, afterHTML: r });
      } catch (o) {
      }
  }
}
function z(e, t) {
  let r = t;
  for (; r && r.parentNode && r.parentNode !== e; )
    r = r.parentNode;
  return r && r.parentNode === e ? r : null;
}
function L(e, t) {
  return e.tagName !== "P" ? !1 : Array.from(e.childNodes).every((r) => {
    var o;
    return r === t ? !0 : r.nodeType === Node.ELEMENT_NODE ? r.tagName === "BR" : r.nodeType === Node.TEXT_NODE && !((o = r.textContent) != null && o.trim());
  });
}
function P(e) {
  if (!(e instanceof Element)) return null;
  const t = e.closest("iframe");
  if (t instanceof HTMLIFrameElement) {
    const a = v(t);
    if (!a) return null;
    const i = t.parentElement;
    return i && i.parentElement === a && L(i, t) ? i : t;
  }
  const r = e.closest("p");
  if (!(r instanceof HTMLElement)) return null;
  const o = v(r);
  if (!o || r.parentElement !== o) return null;
  const n = Array.from(r.children).find(
    (a) => a instanceof HTMLIFrameElement
  );
  return n && L(r, n) ? r : null;
}
function b() {
  var e;
  c && (c.classList.remove("rte-selected-embed-object"), (e = c.querySelector("iframe")) == null || e.removeAttribute("data-rte-selected-object"), c instanceof HTMLIFrameElement && c.removeAttribute("data-rte-selected-object"), c = null);
}
function O(e) {
  if (c === e) return;
  b(), c = e, e.classList.add("rte-selected-embed-object");
  const t = e instanceof HTMLIFrameElement ? e : e.querySelector("iframe");
  t == null || t.setAttribute("data-rte-selected-object", "true");
  const r = window.getSelection();
  if (!r) return;
  const o = document.createRange();
  o.selectNode(e), r.removeAllRanges(), r.addRange(o);
}
function B(e, t) {
  const r = window.getSelection();
  if (!r) return;
  const o = document.createRange();
  t && t.parentNode === e ? o.setStartBefore(t) : (o.selectNodeContents(e), o.collapse(!1)), o.collapse(!0), r.removeAllRanges(), r.addRange(o);
}
function U(e) {
  if (e.childNodes.length > 0) return;
  const t = document.createElement("p");
  t.appendChild(document.createElement("br")), e.appendChild(t);
}
function _() {
  if (!c || !c.isConnected)
    return b(), !1;
  const e = c, t = v(e);
  if (!t)
    return b(), !1;
  const r = t.innerHTML, o = e.nextSibling;
  e.remove(), U(t), b(), B(t, o);
  const n = t.innerHTML;
  return H(t, r, n), t.dispatchEvent(new window.Event("input", { bubbles: !0 })), r !== n;
}
function N() {
  if (document.getElementById("embed-iframe-object-selection-styles")) return;
  const e = document.createElement("style");
  e.id = "embed-iframe-object-selection-styles", e.textContent = `
    .rte-selected-embed-object {
      outline: 2px solid #2563eb;
      outline-offset: 3px;
      border-radius: 4px;
    }

    .rte-content iframe,
    .editora-content iframe,
    [contenteditable="true"] iframe {
      pointer-events: none;
    }

    .rte-selected-embed-object iframe,
    iframe.rte-selected-embed-object {
      box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.28);
    }
  `, document.head.appendChild(e);
}
function $() {
  typeof window == "undefined" || window.__embedIframeObjectSelectionInitialized || (window.__embedIframeObjectSelectionInitialized = !0, N(), document.addEventListener("pointerdown", (e) => {
    var r, o;
    const t = P(e.target);
    if (!t) {
      const n = e.target;
      (r = n == null ? void 0 : n.closest) != null && r.call(n, ".rte-embed-iframe-overlay") || b();
      return;
    }
    e.preventDefault(), (o = v(t)) == null || o.focus(), O(t);
  }, !0), document.addEventListener("keydown", (e) => {
    if (c) {
      if (e.key === "Escape") {
        b();
        return;
      }
      e.key !== "Backspace" && e.key !== "Delete" || (e.preventDefault(), e.stopPropagation(), _());
    }
  }, !0));
}
function F(e) {
  try {
    const t = new URL(e), r = t.hostname.replace(/^www\./, "");
    if (r === "youtu.be") {
      const o = t.pathname.split("/").filter(Boolean)[0];
      if (o) return `https://www.youtube.com/embed/${encodeURIComponent(o)}`;
    }
    if (r === "youtube.com" || r === "m.youtube.com") {
      const o = t.searchParams.get("v");
      if (o) return `https://www.youtube.com/embed/${encodeURIComponent(o)}`;
      const n = t.pathname.match(/^\/embed\/([^/]+)/);
      if (n != null && n[1]) return `https://www.youtube.com/embed/${encodeURIComponent(n[1])}`;
    }
    if (r === "vimeo.com") {
      const o = t.pathname.split("/").filter(Boolean)[0];
      if (o && /^\d+$/.test(o)) return `https://player.vimeo.com/video/${o}`;
    }
    return e;
  } catch (t) {
    return e;
  }
}
const te = () => ({
  name: "embedIframe",
  init: $,
  toolbar: [
    {
      label: "Embed Content",
      command: "openEmbedIframeDialog",
      icon: '<svg width="24" height="24" focusable="false"><path d="M19 6V5H5v14h2A13 13 0 0 1 19 6Zm0 1.4c-.8.8-1.6 2.4-2.2 4.6H19V7.4Zm0 5.6h-2.4c-.4 1.8-.6 3.8-.6 6h3v-6Zm-4 6c0-2.2.2-4.2.6-6H13c-.7 1.8-1.1 3.8-1.1 6h3Zm-4 0c0-2.2.4-4.2 1-6H9.6A12 12 0 0 0 8 19h3ZM4 3h16c.6 0 1 .4 1 1v16c0 .6-.4 1-1 1H4a1 1 0 0 1-1-1V4c0-.6.4-1 1-1Zm11.8 9c.4-1.9 1-3.4 1.8-4.5a9.2 9.2 0 0 0-4 4.5h2.2Zm-3.4 0a12 12 0 0 1 2.8-4 12 12 0 0 0-5 4h2.2Z" fill-rule="nonzero"></path></svg>',
      shortcut: "Mod-Shift-e",
      type: "button"
    }
  ],
  commands: {
    openEmbedIframeDialog: (e, t) => (Z(M(t) || void 0), !0)
  },
  keymap: {
    "Mod-Shift-e": "openEmbedIframeDialog"
  }
});
function Z(e) {
  if (!e) {
    const a = document.activeElement;
    a && a.closest("[data-editora-editor]") && (e = a.closest("[data-editora-editor]"));
  }
  if (e || (e = document.querySelector("[data-editora-editor]")), !e) {
    console.warn("Editor element not found");
    return;
  }
  const t = d(e), r = I(e);
  t.savedRange = r ? j(r) : null, t.formData = {
    src: "",
    selectedSize: "inline",
    width: "100%",
    height: "400px",
    constrainProportions: !0,
    name: "",
    title: "",
    longDescription: "",
    descriptionUrl: "",
    showBorder: !0,
    enableScrollbar: !0
  }, t.activeTab = "general";
  const o = document.createElement("div");
  o.className = "rte-dialog-overlay rte-embed-iframe-overlay", A(e) && o.classList.add("rte-theme-dark"), o.onclick = () => h(e);
  const n = document.createElement("div");
  n.className = "rte-dialog-content embed-iframe-dialog", n.onclick = (a) => a.stopPropagation(), n.innerHTML = `
    <div class="rte-dialog-header">
      <h3>Embed Iframe</h3>
      <button class="rte-dialog-close">×</button>
    </div>
    <div class="rte-dialog-body">
      <div class="rte-vertical-tabs">
        <div class="rte-tab-buttons">
          <button class="rte-tab-button active" data-tab="general">General</button>
          <button class="rte-tab-button" data-tab="advanced">Advanced</button>
        </div>
        <div class="rte-tab-content">
          <div class="rte-tab-panel" data-panel="general" style="display: block;">
            <div class="rte-form-group">
              <label class="rte-form-label">Source</label>
              <input type="url" class="rte-form-input" id="iframe-src" placeholder="https://example.com" required />
            </div>
            <div class="rte-form-group">
              <label class="rte-form-label">Size</label>
              <select class="rte-form-select" id="iframe-size">
                ${q.map((a) => `<option value="${a.value}">${a.label}</option>`).join("")}
              </select>
            </div>
            <div class="rte-form-row" id="dimensions-row">
              <div class="rte-form-group">
                <label class="rte-form-label">Width</label>
                <input type="text" class="rte-form-input" id="iframe-width" placeholder="100%" value="100%" />
              </div>
              <div class="rte-form-group">
                <label class="rte-form-label">Height</label>
                <input type="text" class="rte-form-input" id="iframe-height" placeholder="400px" value="400px" />
              </div>
              <div class="rte-form-group constrain-group">
                <button type="button" class="rte-constrain-btn locked" id="constrain-btn" title="Unlock proportions">🔒</button>
              </div>
            </div>
          </div>
          <div class="rte-tab-panel" data-panel="advanced" style="display: none;">
            <div class="rte-form-group">
              <label class="rte-form-label">Name</label>
              <input type="text" class="rte-form-input" id="iframe-name" placeholder="Iframe name" />
            </div>
            <div class="rte-form-group">
              <label class="rte-form-label">Title</label>
              <input type="text" class="rte-form-input" id="iframe-title" placeholder="Iframe title" />
            </div>
            <div class="rte-form-group">
              <label class="rte-form-label">Long Description</label>
              <textarea class="rte-form-textarea" id="iframe-longdesc" placeholder="Detailed description of the iframe content" rows="3"></textarea>
            </div>
            <div class="rte-form-group">
              <label class="rte-form-label">Description URL</label>
              <input type="url" class="rte-form-input" id="iframe-desc-url" placeholder="https://example.com/description" />
            </div>
            <div class="rte-form-group">
              <label class="rte-checkbox-label">
                <input type="checkbox" id="iframe-border" checked />
                Show iframe border
              </label>
            </div>
            <div class="rte-form-group">
              <label class="rte-checkbox-label">
                <input type="checkbox" id="iframe-scrollbar" checked />
                Enable scrollbar
              </label>
            </div>
          </div>
        </div>
      </div>
    </div>
    <div class="rte-dialog-footer">
      <button type="button" class="rte-btn rte-btn-secondary" id="cancel-btn">Cancel</button>
      <button type="submit" class="rte-btn rte-btn-primary" id="save-btn">Save</button>
    </div>
  `, o.appendChild(n), document.body.appendChild(o), t.dialogElement = o, t.escapeHandler = (a) => {
    a.key === "Escape" && (a.preventDefault(), a.stopPropagation(), h(e));
  }, document.addEventListener("keydown", t.escapeHandler, !0), V(n, e), ee(), setTimeout(() => {
    var a;
    (a = n.querySelector("#iframe-src")) == null || a.focus();
  }, 100);
}
function V(e, t) {
  var a, i, l, u;
  d(t), (a = e.querySelector(".rte-dialog-close")) == null || a.addEventListener("click", () => h(t)), e.querySelectorAll(".rte-tab-button").forEach((s) => {
    s.addEventListener("click", (f) => {
      const m = f.target.getAttribute("data-tab");
      m && W(e, m, t);
    });
  });
  const r = e.querySelector("#iframe-size");
  r == null || r.addEventListener("change", (s) => G(e, s.target.value, t));
  const o = e.querySelector("#iframe-width"), n = e.querySelector("#iframe-height");
  o == null || o.addEventListener("input", (s) => K(e, s.target.value, t)), n == null || n.addEventListener("input", (s) => X(e, s.target.value, t)), (i = e.querySelector("#constrain-btn")) == null || i.addEventListener("click", () => J(e, t)), (l = e.querySelector("#cancel-btn")) == null || l.addEventListener("click", () => h(t)), (u = e.querySelector("#save-btn")) == null || u.addEventListener("click", () => Q(e, t));
}
function W(e, t, r) {
  const o = d(r);
  o.activeTab = t, e.querySelectorAll(".rte-tab-button").forEach((n) => {
    n.classList.toggle("active", n.getAttribute("data-tab") === t);
  }), e.querySelectorAll(".rte-tab-panel").forEach((n) => {
    n.style.display = n.getAttribute("data-panel") === t ? "block" : "none";
  });
}
function G(e, t, r) {
  const o = d(r);
  o.formData.selectedSize = t;
  const n = e.querySelector("#dimensions-row"), a = e.querySelector("#iframe-width"), i = e.querySelector("#iframe-height");
  t === "inline" ? (n.style.display = "flex", a.value = "100%", i.value = "400px", o.formData.width = "100%", o.formData.height = "400px") : (n.style.display = "none", o.formData.width = "100%", o.formData.height = "auto");
}
function K(e, t, r) {
  const o = d(r);
  if (o.formData.width = t, o.formData.constrainProportions && o.formData.selectedSize === "inline") {
    const n = parseFloat(t);
    if (!isNaN(n)) {
      const a = n * 9 / 16;
      o.formData.height = `${a}px`;
      const i = e.querySelector("#iframe-height");
      i && (i.value = o.formData.height);
    }
  }
}
function X(e, t, r) {
  const o = d(r);
  if (o.formData.height = t, o.formData.constrainProportions && o.formData.selectedSize === "inline") {
    const n = parseFloat(t);
    if (!isNaN(n)) {
      const a = n * 16 / 9;
      o.formData.width = `${a}px`;
      const i = e.querySelector("#iframe-width");
      i && (i.value = o.formData.width);
    }
  }
}
function J(e, t) {
  const r = d(t);
  r.formData.constrainProportions = !r.formData.constrainProportions;
  const o = e.querySelector("#constrain-btn");
  o && (o.textContent = r.formData.constrainProportions ? "🔒" : "🔓", o.className = `rte-constrain-btn ${r.formData.constrainProportions ? "locked" : "unlocked"}`, o.title = r.formData.constrainProportions ? "Unlock proportions" : "Lock proportions");
}
function Q(e, t) {
  var g, x, w, k, S, E, D, C, R;
  const r = d(t), o = (g = e.querySelector("#iframe-src")) == null ? void 0 : g.value.trim();
  if (!o) {
    alert("Please enter a source URL");
    return;
  }
  if (!o.startsWith("https://") && !o.startsWith("http://")) {
    alert("Please enter a valid URL starting with https:// or http://");
    return;
  }
  const n = (x = e.querySelector("#iframe-name")) == null ? void 0 : x.value.trim(), a = (w = e.querySelector("#iframe-title")) == null ? void 0 : w.value.trim(), i = (k = e.querySelector("#iframe-longdesc")) == null ? void 0 : k.value.trim(), l = (S = e.querySelector("#iframe-desc-url")) == null ? void 0 : S.value.trim(), u = (D = (E = e.querySelector("#iframe-border")) == null ? void 0 : E.checked) != null ? D : !0, s = (R = (C = e.querySelector("#iframe-scrollbar")) == null ? void 0 : C.checked) != null ? R : !0;
  let f = r.formData.width, m = r.formData.height;
  r.formData.selectedSize !== "inline" && (f = "100%", m = "auto"), Y(t, {
    src: o,
    width: f,
    height: m,
    aspectRatio: r.formData.selectedSize,
    name: n || void 0,
    title: a || void 0,
    longDescription: i || void 0,
    descriptionUrl: l || void 0,
    showBorder: u,
    enableScrollbar: s
  }), h(t);
}
function Y(e, t) {
  const r = d(e), o = I(e);
  if (!o) return;
  const n = o.innerHTML, a = document.createElement("iframe");
  a.src = F(t.src), a.width = t.width, a.height = t.height, a.allowFullscreen = !0, a.setAttribute("frameborder", t.showBorder ? "1" : "0"), a.setAttribute("scrolling", t.enableScrollbar ? "auto" : "no"), a.setAttribute("data-aspect-ratio", t.aspectRatio), t.aspectRatio !== "inline" && a.classList.add(`rte-iframe-${t.aspectRatio}`), t.name && (a.name = t.name), t.title && (a.title = t.title), t.longDescription && a.setAttribute("data-long-description", t.longDescription), t.descriptionUrl && a.setAttribute("longdesc", t.descriptionUrl);
  const i = document.createElement("p");
  i.appendChild(a), i.appendChild(document.createElement("br"));
  const l = r.savedRange && o.contains(r.savedRange.commonAncestorContainer) ? r.savedRange : document.createRange();
  (!r.savedRange || !o.contains(r.savedRange.commonAncestorContainer)) && (l.selectNodeContents(o), l.collapse(!1));
  const u = z(o, l.startContainer), s = u ? u.nextSibling : null;
  o.insertBefore(i, s);
  const f = document.createRange();
  f.setStartAfter(i), f.collapse(!0);
  const m = window.getSelection();
  m && (m.removeAllRanges(), m.addRange(f)), r.savedRange = null;
  const g = o.innerHTML;
  H(o, n, g), o.dispatchEvent(new window.Event("input", { bubbles: !0 }));
}
function h(e) {
  const t = d(e);
  t.savedRange = null, t.escapeHandler && (document.removeEventListener("keydown", t.escapeHandler, !0), t.escapeHandler = null), t.dialogElement && (t.dialogElement.remove(), t.dialogElement = null);
}
function ee() {
  if (N(), document.getElementById("embed-iframe-dialog-styles")) return;
  const e = document.createElement("style");
  e.id = "embed-iframe-dialog-styles", e.textContent = `
    /* Embed Iframe Dialog Styles */
    .embed-iframe-dialog {
      max-width: 600px;
      width: 100%;
    }

    .rte-vertical-tabs {
      display: flex;
      gap: 20px;
      min-height: 400px;
    }

    .rte-tab-buttons {
      display: flex;
      flex-direction: column;
      width: 120px;
      border-right: 1px solid #e1e5e9;
    }

    .rte-tab-button {
      padding: 12px 16px;
      border: none;
      background: none;
      text-align: left;
      cursor: pointer;
      font-size: 14px;
      font-weight: 500;
      color: #666;
      border-right: 3px solid transparent;
      transition: all 0.2s ease;
    }

    .rte-tab-button:hover {
      background-color: #f8f9fa;
      color: #333;
    }

    .rte-tab-button.active {
      background-color: #e3f2fd;
      color: #1976d2;
      border-right-color: #1976d2;
      font-weight: 600;
    }

    .rte-tab-content {
      flex: 1;
      padding: 0 0 0 20px;
    }

    .rte-tab-panel {
      padding: 0;
    }

    .rte-form-group {
      margin-bottom: 16px;
    }

    .rte-form-label {
      display: block;
      margin-bottom: 6px;
      font-size: 14px;
      font-weight: 500;
      color: #333;
    }

    .rte-form-textarea,
    .rte-form-input,
    .rte-form-select {
      width: 100%;
      padding: 8px 12px;
      border: 1px solid #ccc;
      border-radius: 4px;
      font-size: 14px;
      transition: border-color 0.2s ease;
      box-sizing: border-box;
    }

    .rte-form-textarea:focus,
    .rte-form-input:focus,
    .rte-form-select:focus {
      outline: none;
      border-color: #0066cc;
      box-shadow: 0 0 0 2px rgba(0, 102, 204, 0.2);
    }

    .rte-form-textarea {
      resize: vertical;
      min-height: 80px;
      font-family: inherit;
    }

    .rte-form-row {
      display: flex;
      gap: 12px;
      align-items: flex-end;
    }

    .rte-form-row .rte-form-group {
      flex: 1;
    }

    .rte-form-row .constrain-group {
      flex: 0 0 auto;
      margin-bottom: 0;
    }

    .rte-constrain-btn {
      padding: 8px 12px;
      border: 1px solid #ddd;
      background: white;
      border-radius: 4px;
      cursor: pointer;
      font-size: 18px;
      transition: all 0.2s ease;
      height: 38px;
      width: 48px;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .rte-constrain-btn:hover {
      background-color: #f5f5f5;
      border-color: #1976d2;
    }

    .rte-constrain-btn.locked {
      background-color: #e3f2fd;
      border-color: #1976d2;
    }

    .rte-checkbox-label {
      display: flex;
      align-items: center;
      gap: 8px;
      font-size: 14px;
      color: #333;
      cursor: pointer;
      padding: 4px 0;
    }

    .rte-checkbox-label input[type="checkbox"] {
      width: 18px;
      height: 18px;
      cursor: pointer;
      accent-color: #0066cc;
    }

    .rte-checkbox-label:hover {
      color: #000;
    }

    .rte-embed-iframe-overlay.rte-theme-dark .rte-dialog-content {
      background: #1f2937;
      border: 1px solid #4b5563;
      color: #e2e8f0;
      box-shadow: 0 18px 45px rgba(0, 0, 0, 0.6);
    }

    .rte-embed-iframe-overlay.rte-theme-dark .rte-dialog-header,
    .rte-embed-iframe-overlay.rte-theme-dark .rte-dialog-footer {
      background: #222d3a;
      border-color: #3b4657;
    }

    .rte-embed-iframe-overlay.rte-theme-dark .rte-dialog-header h3,
    .rte-embed-iframe-overlay.rte-theme-dark .rte-form-label,
    .rte-embed-iframe-overlay.rte-theme-dark .rte-checkbox-label {
      color: #e2e8f0;
    }

    .rte-embed-iframe-overlay.rte-theme-dark .rte-tab-buttons {
      border-right-color: #3b4657;
    }

    .rte-embed-iframe-overlay.rte-theme-dark .rte-tab-button {
      color: #a8b5c8;
    }

    .rte-embed-iframe-overlay.rte-theme-dark .rte-tab-button:hover {
      background: #334155;
      color: #f8fafc;
    }

    .rte-embed-iframe-overlay.rte-theme-dark .rte-tab-button.active {
      background: rgba(88, 166, 255, 0.18);
      color: #8cc6ff;
      border-right-color: #58a6ff;
    }

    .rte-embed-iframe-overlay.rte-theme-dark .rte-form-input,
    .rte-embed-iframe-overlay.rte-theme-dark .rte-form-select,
    .rte-embed-iframe-overlay.rte-theme-dark .rte-form-textarea {
      background: #111827;
      border-color: #4b5563;
      color: #e2e8f0;
    }

    .rte-embed-iframe-overlay.rte-theme-dark .rte-form-input::placeholder,
    .rte-embed-iframe-overlay.rte-theme-dark .rte-form-textarea::placeholder {
      color: #94a3b8;
    }

    .rte-embed-iframe-overlay.rte-theme-dark .rte-form-input:focus,
    .rte-embed-iframe-overlay.rte-theme-dark .rte-form-select:focus,
    .rte-embed-iframe-overlay.rte-theme-dark .rte-form-textarea:focus {
      border-color: #58a6ff;
      box-shadow: 0 0 0 2px rgba(88, 166, 255, 0.28);
    }

    .rte-embed-iframe-overlay.rte-theme-dark .rte-constrain-btn {
      background: #111827;
      border-color: #4b5563;
      color: #e2e8f0;
    }

    .rte-embed-iframe-overlay.rte-theme-dark .rte-constrain-btn:hover {
      background: #334155;
      border-color: #58a6ff;
    }

    .rte-embed-iframe-overlay.rte-theme-dark .rte-constrain-btn.locked {
      background: rgba(88, 166, 255, 0.22);
      border-color: #58a6ff;
      color: #d9ecff;
    }

    .rte-embed-iframe-overlay.rte-theme-dark .rte-btn-secondary {
      background: #334155;
      border-color: #4b5563;
      color: #e2e8f0;
    }

    .rte-embed-iframe-overlay.rte-theme-dark .rte-btn-secondary:hover {
      background: #475569;
      border-color: #64748b;
    }

    .rte-embed-iframe-overlay.rte-theme-dark .rte-btn-primary {
      background: #3b82f6;
      color: #fff;
    }

    .rte-embed-iframe-overlay.rte-theme-dark .rte-btn-primary:hover {
      background: #2563eb;
    }

    /* Responsive iframe classes */
    .rte-iframe-21x9,
    .rte-iframe-16x9,
    .rte-iframe-4x3,
    .rte-iframe-1x1 {
      position: relative;
      width: 100%;
      padding-bottom: 56.25%;
      height: 0;
      overflow: hidden;
    }

    .rte-iframe-21x9 {
      padding-bottom: 42.857%;
    }

    .rte-iframe-16x9 {
      padding-bottom: 56.25%;
    }

    .rte-iframe-4x3 {
      padding-bottom: 75%;
    }

    .rte-iframe-1x1 {
      padding-bottom: 100%;
    }

    .rte-iframe-21x9 iframe,
    .rte-iframe-16x9 iframe,
    .rte-iframe-4x3 iframe,
    .rte-iframe-1x1 iframe {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
    }
  `, document.head.appendChild(e);
}
export {
  te as EmbedIframePlugin
};
//# sourceMappingURL=EmbedIframePlugin.native-BF_-LjTq.mjs.map
