import { c as h, p as b, f as B, b as q, d as y, u as w, h as A } from "./AssetItem-CFsdMEwW.js";
import { v as x, r as H, A as I, t as C, n as M, M as _, L as O, O as R, I as T, Y } from "./index-BxjwuJ6T.js";
import { C as j } from "./App-pmcYlKkW.js";
import { C as z } from "./ContentHeader-IUWmor6Y.js";
import { B as D } from "./Button-S2OwL6nP.js";
var E = 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), M();
    },
    $set: w,
    $on: (t, e) => y(i, t, e)
  }, l = E(), o = H(l);
  z(o, {
    get text() {
      return c;
    },
    get description() {
      return p;
    }
  });
  var a = I(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 F(s, i) {
  if (new.target) return h({ component: F, ...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 (v) {
          f(v);
        }
      }
      function $(n) {
        try {
          m(e.throw(n));
        } catch (v) {
          f(v);
        }
      }
      function m(n) {
        n.done ? u(n.value) : S(n.value).then(L, $);
      }
      m((e = e.apply(o, a || [])).next());
    });
  };
  const c = _(O), { logout: p, close: d } = _(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)
  };
  A();
  {
    let o = Y(() => ({
      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 {
  F as default
};
//# sourceMappingURL=Logout-CizMgB_e.js.map
