import { c as h, p as b, f as B, b as q, d as y, u as w, h as z } from "./AssetItem-BxjLUzNd.js";
import { t as x, p as E, z as H, r as C, l as I, J as v, I as J, L as R, E as T, V } from "./index-BBXAtvZr.js";
import { C as j } from "./App-BwT5MYkN.js";
import { C as A } from "./ContentHeader-CNIXuMji.js";
import { B as D } from "./Button-CqLZSfSk.js";
var F = B("<!> <!>", 1);
function k(s, i) {
  if (new.target) return h({ component: k, ...s });
  x(i, !1);
  let r = b(i, "options", 12), { title: c, description: p, onClick: d } = r();
  var g = {
    get options() {
      return r();
    },
    set options(t) {
      r(t), I();
    },
    $set: w,
    $on: (t, e) => y(i, t, e)
  }, l = F(), o = E(l);
  A(o, {
    get text() {
      return c;
    },
    get description() {
      return p;
    }
  });
  var a = H(o, 2);
  return j(a, {
    children: (t, e) => {
      D(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 L(n) {
        try {
          m(e.next(n));
        } catch (_) {
          f(_);
        }
      }
      function $(n) {
        try {
          m(e.throw(n));
        } catch (_) {
          f(_);
        }
      }
      function m(n) {
        n.done ? u(n.value) : S(n.value).then(L, $);
      }
      m((e = e.apply(o, a || [])).next());
    });
  };
  const c = v(J), { logout: p, close: d } = v(R), 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 = V(() => ({
      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 T(o);
      }
    });
  }
  return C(l);
}
export {
  G as default
};
//# sourceMappingURL=Logout-bcNOPutU.js.map
