import { c as h, p as L, f as B, b as q, d as y, u as w, h as z } from "./AssetItem-ufNA-vj9.js";
import { t as x, p as E, z as F, r as C, l as H, I as v, W as I, K, E as R, F as T } from "./index-DRgrWhNH.js";
import { C as W } from "./App-C7TSmMh1.js";
import { C as j } from "./ContentHeader-B8i-EqEU.js";
import { B as A } from "./Button-Dvas4qfY.js";
var D = B("<!> <!>", 1);
function k(s, i) {
  if (new.target) return h({ component: k, ...s });
  x(i, !1);
  let r = L(i, "options", 12), { title: c, description: p, onClick: d } = r();
  var g = {
    get options() {
      return r();
    },
    set options(t) {
      r(t), H();
    },
    $set: w,
    $on: (t, e) => y(i, t, e)
  }, l = D(), o = E(l);
  j(o, {
    get text() {
      return c;
    },
    get description() {
      return p;
    }
  });
  var a = F(o, 2);
  return W(a, {
    children: (t, e) => {
      A(t, {
        text: "Sign out now",
        get onClick() {
          return d;
        }
      });
    },
    $$slots: { default: !0 }
  }), q(s, l), C(g);
}
function G(s, i) {
  if (new.target) return h({ component: G, ...s });
  x(i, !1);
  var r = this && this.__awaiter || function(o, a, t, e) {
    function S(u) {
      return u instanceof t ? u : new t(function(f) {
        f(u);
      });
    }
    return new (t || (t = Promise))(function(u, f) {
      function $(n) {
        try {
          m(e.next(n));
        } catch (_) {
          f(_);
        }
      }
      function b(n) {
        try {
          m(e.throw(n));
        } catch (_) {
          f(_);
        }
      }
      function m(n) {
        n.done ? u(n.value) : S(n.value).then($, b);
      }
      m((e = e.apply(o, a || [])).next());
    });
  };
  const c = v(I), { logout: p, close: d } = v(K), g = () => r(void 0, void 0, void 0, function* () {
    p({ shouldRevokeSession: !0 }), d();
  });
  var l = {
    $set: w,
    $on: (o, a) => y(i, o, a)
  };
  z();
  {
    let o = T(() => ({
      title: c.content?.logout?.title || "Sign out",
      description: c.content?.logout?.description || "This will sign you out and you will be asked to verify your identity next time you sign in.",
      onClick: g
    }));
    k(s, {
      get options() {
        return R(o);
      }
    });
  }
  return C(l);
}
export {
  G as default
};
//# sourceMappingURL=Logout-DrpTQwN9.js.map
